summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-06-22 14:37:35 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-06-22 21:13:01 -0500
commit0a32e4443c4c8b068ae512f2bf6f509275a5a610 (patch)
tree1632f5aa55ffa6e01df03b4bab212f34b7430247 /python/vyos
parent2a04aba096228531f50ceb0771738bcf1d54c692 (diff)
downloadvyos-1x-0a32e4443c4c8b068ae512f2bf6f509275a5a610.tar.gz
vyos-1x-0a32e4443c4c8b068ae512f2bf6f509275a5a610.zip
vyos.configverify: T5308: fix typo revealed by tagnode aware defaults
The original implementation of defaults, and workaround required, would leave an entry {'dhcpv6_options': {'pd': {}}} in the interface_dict.
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configverify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index 8fddd91d0..94dcdf4d9 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -322,7 +322,7 @@ def verify_dhcpv6(config):
# It is not allowed to have duplicate SLA-IDs as those identify an
# assigned IPv6 subnet from a delegated prefix
- for pd in dict_search('dhcpv6_options.pd', config):
+ for pd in (dict_search('dhcpv6_options.pd', config) or []):
sla_ids = []
interfaces = dict_search(f'dhcpv6_options.pd.{pd}.interface', config)