mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 03:37:01 +00:00
[PR #11413/4b0aeede backport][stable-12] feat(nmcli): Add support for IPv6 routing rules (#11432)
feat(nmcli): Add support for IPv6 routing rules (#11413)
* feat(nmcli): Add support for IPv6 routing rules
Closes #7094
* Add changelog fragment
* Fixing doc
* Add issue link to changelog fragment
* Fix version
---------
(cherry picked from commit 4b0aeede69)
Signed-off-by: Rémy Jacquin <remy@remyj.fr>
Co-authored-by: Rémy Jacquin <1536771+remyj38@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
5b571fd53f
commit
ca805badc0
3 changed files with 48 additions and 2 deletions
|
|
@ -226,6 +226,12 @@ options:
|
|||
type: list
|
||||
elements: str
|
||||
version_added: 3.3.0
|
||||
routing_rules6:
|
||||
description:
|
||||
- Is the same as in an C(ip rule add) command, except always requires specifying a priority.
|
||||
type: list
|
||||
elements: str
|
||||
version_added: 12.3.0
|
||||
never_default4:
|
||||
description:
|
||||
- Set as default route.
|
||||
|
|
@ -1765,6 +1771,7 @@ class Nmcli:
|
|||
self.routes6 = module.params["routes6"]
|
||||
self.routes6_extended = module.params["routes6_extended"]
|
||||
self.route_metric6 = module.params["route_metric6"]
|
||||
self.routing_rules6 = module.params["routing_rules6"]
|
||||
self.dns6 = module.params["dns6"]
|
||||
self.dns6_search = module.params["dns6_search"]
|
||||
self.dns6_options = module.params["dns6_options"]
|
||||
|
|
@ -1902,6 +1909,7 @@ class Nmcli:
|
|||
"ipv6.ignore-auto-routes": self.gw6_ignore_auto,
|
||||
"ipv6.routes": self.enforce_routes_format(self.routes6, self.routes6_extended),
|
||||
"ipv6.route-metric": self.route_metric6,
|
||||
"ipv6.routing-rules": self.routing_rules6,
|
||||
"ipv6.method": self.ipv6_method,
|
||||
"ipv6.ip6-privacy": self.ip_privacy6,
|
||||
"ipv6.addr-gen-mode": self.addr_gen_mode6,
|
||||
|
|
@ -2788,6 +2796,7 @@ def create_module() -> AnsibleModule:
|
|||
),
|
||||
),
|
||||
route_metric6=dict(type="int"),
|
||||
routing_rules6=dict(type="list", elements="str"),
|
||||
method6=dict(type="str", choices=["ignore", "auto", "dhcp", "link-local", "manual", "shared", "disabled"]),
|
||||
ip_privacy6=dict(type="str", choices=["disabled", "prefer-public-addr", "prefer-temp-addr", "unknown"]),
|
||||
addr_gen_mode6=dict(type="str", choices=["default", "default-or-eui64", "eui64", "stable-privacy"]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue