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:
Ted W.
2026-03-23 14:58:47 -04:00
committed by GitHub
parent 4dad53abac
commit 3c21ac961b
3 changed files with 5 additions and 0 deletions

View File

@@ -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)