summaryrefslogtreecommitdiff
path: root/python/vyos/configverify.py
diff options
context:
space:
mode:
authorBrandon Stepler <brandon@stepler.net>2021-01-29 10:10:00 -0500
committerChristian Poessinger <christian@poessinger.com>2021-01-29 17:03:59 +0100
commitd78b4e39ad6834b50ab6f6be4e6540828e92beb0 (patch)
tree379ce75bdeaec940be12f895a652ccf5090a96d8 /python/vyos/configverify.py
parent5f521fb3b47b6264796cbd8437152b848149cd76 (diff)
downloadvyos-1x-d78b4e39ad6834b50ab6f6be4e6540828e92beb0.tar.gz
vyos-1x-d78b4e39ad6834b50ab6f6be4e6540828e92beb0.zip
vif-c: verify: T3269: fix configuration verification
(cherry picked from commit b8cddcdae36903feb84ee1807d6adb27337cf582)
Diffstat (limited to 'python/vyos/configverify.py')
-rw-r--r--python/vyos/configverify.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index bcaec55be..e54552335 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -217,17 +217,17 @@ def verify_vlan_config(config):
verify_vrf(vlan)
# 802.1ad (Q-in-Q) VLANs
- for vlan in config.get('vif_s', {}):
- vlan = config['vif_s'][vlan]
- verify_dhcpv6(vlan)
- verify_address(vlan)
- verify_vrf(vlan)
-
- for vlan in config.get('vif_s', {}).get('vif_c', {}):
- vlan = config['vif_c'][vlan]
- verify_dhcpv6(vlan)
- verify_address(vlan)
- verify_vrf(vlan)
+ for s_vlan in config.get('vif_s', {}):
+ s_vlan = config['vif_s'][s_vlan]
+ verify_dhcpv6(s_vlan)
+ verify_address(s_vlan)
+ verify_vrf(s_vlan)
+
+ for c_vlan in s_vlan.get('vif_c', {}):
+ c_vlan = s_vlan['vif_c'][c_vlan]
+ verify_dhcpv6(c_vlan)
+ verify_address(c_vlan)
+ verify_vrf(c_vlan)
def verify_accel_ppp_base_service(config):
"""