summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelogs/fragments/l3_interfaces.yaml3
-rw-r--r--plugins/module_utils/network/vyos/facts/l3_interfaces/l3_interfaces.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/changelogs/fragments/l3_interfaces.yaml b/changelogs/fragments/l3_interfaces.yaml
new file mode 100644
index 0000000..0d18bbd
--- /dev/null
+++ b/changelogs/fragments/l3_interfaces.yaml
@@ -0,0 +1,3 @@
+---
+bugfixes:
+ - vyos-l3_interface_facts - fixed error when using no-default-link-local option. (https://github.com/ansible-collections/vyos.vyos/issues/295)
diff --git a/plugins/module_utils/network/vyos/facts/l3_interfaces/l3_interfaces.py b/plugins/module_utils/network/vyos/facts/l3_interfaces/l3_interfaces.py
index ea4cf69..ebfab03 100644
--- a/plugins/module_utils/network/vyos/facts/l3_interfaces/l3_interfaces.py
+++ b/plugins/module_utils/network/vyos/facts/l3_interfaces/l3_interfaces.py
@@ -126,6 +126,10 @@ class L3_interfacesFacts(object):
config["ipv4"].append({"address": item})
elif item == "dhcpv6":
config["ipv6"].append({"address": item})
+ elif item == "no-default-link-local":
+ config["ipv6"].append({"address": item})
+ elif item == "autoconf":
+ config["ipv6"].append({"address": item})
else:
ip_version = get_ip_address_version(item.split("/")[0])
if ip_version == 4: