diff options
-rw-r--r-- | python/vyos/configverify.py | 4 |
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]] |