summaryrefslogtreecommitdiff
path: root/python/vyos/configverify.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-24 11:19:32 +0200
committerGitHub <noreply@github.com>2023-06-24 11:19:32 +0200
commitce37b953771ac5c1f81c437160e1d49a39c1dd37 (patch)
treed8ce25d1270aff3a6a1f073d94ea45815c3c58f1 /python/vyos/configverify.py
parentefc19e7898c800700788f9633d9086b07ce4c3b7 (diff)
parent0a32e4443c4c8b068ae512f2bf6f509275a5a610 (diff)
downloadvyos-1x-ce37b953771ac5c1f81c437160e1d49a39c1dd37.tar.gz
vyos-1x-ce37b953771ac5c1f81c437160e1d49a39c1dd37.zip
Merge pull request #2052 from jestabro/revise-interface-dict
vyos.configdict: T5308: Remove workarounds for incorrect defaults in get_interface_dict
Diffstat (limited to 'python/vyos/configverify.py')
-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)