mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
Fix setting_types() to properly handle routing_rules as a list type
This commit is contained in:
parent
b4336659f6
commit
7aa8db42fd
2 changed files with 3 additions and 0 deletions
|
|
@ -2372,6 +2372,7 @@ class Nmcli:
|
|||
"ipv6.dns-search",
|
||||
"ipv6.dns-options",
|
||||
"ipv6.routes",
|
||||
"ipv6.routing-rules",
|
||||
"802-11-wireless-security.group",
|
||||
"802-11-wireless-security.leap-password-flags",
|
||||
"802-11-wireless-security.pairwise",
|
||||
|
|
|
|||
|
|
@ -2260,6 +2260,8 @@ def test_generic_connection_modify_routing_rules6(mocked_generic_connection_crea
|
|||
args, kwargs = arg_list[0]
|
||||
|
||||
assert "ipv6.routing-rules" in args[0]
|
||||
idx = args[0].index("ipv6.routing-rules")
|
||||
assert args[0][idx + 1] == "priority 5 from fd00::/24 table 5000,priority 10 from fd01::/24 table 5001"
|
||||
|
||||
out, err = capfd.readouterr()
|
||||
results = json.loads(out)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue