summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorBrandon Stepler <brandon@stepler.net>2021-01-06 23:44:00 -0500
committerBrandon Stepler <brandon@stepler.net>2021-01-06 23:44:00 -0500
commit0a1c218d010df4568d4c35ee9cf68c9affe24498 (patch)
tree771e2fb378f626d06a5d6245a572a994e01082ab /python/vyos
parent903f4a3deee33c5836d67e3ada962887dc8bf945 (diff)
downloadvyos-1x-0a1c218d010df4568d4c35ee9cf68c9affe24498.tar.gz
vyos-1x-0a1c218d010df4568d4c35ee9cf68c9affe24498.zip
dhcpv6-pd: verify: T3193: allow multiple auto-assigned SLA-IDs
"data/templates/dhcp-client/ipv6.tmpl" handles the auto-assigning of SLA-IDs on lines 39, 46, and 52.
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configverify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index bbaf5e861..48c858ba4 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -194,8 +194,8 @@ def verify_dhcpv6(config):
'the delegated prefix!')
for interface in interfaces:
- sla_id = interfaces[interface].get('sla_id', None)
- sla_ids.append(sla_id)
+ if 'sla_id' in interfaces[interface]:
+ sla_ids.append(interfaces[interface]['sla_id'])
# Check for duplicates
duplicates = [x for n, x in enumerate(sla_ids) if x in sla_ids[:n]]