mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
nmcli: fix setting_types() to properly handle routing_rules as a list type (#11635)
* Fix setting_types() to properly handle routing_rules as a list type * Add changelog fragment for ipv6.routing-rules bugfix * Update changelogs/fragments/11630-nmcli-ipv6-routing-rules.yml Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Add PR URL to changelog fragment --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user