summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-29 17:03:46 +0100
committerGitHub <noreply@github.com>2021-01-29 17:03:46 +0100
commit612f86f93583496d5f388e961d2fa983920cdd5a (patch)
treec6760387f60b821502c03d467b1f0cc8f10e420d
parent17413578a56d3a151fe6527c2dd606d7c1f93580 (diff)
parentb8cddcdae36903feb84ee1807d6adb27337cf582 (diff)
downloadvyos-1x-612f86f93583496d5f388e961d2fa983920cdd5a.tar.gz
vyos-1x-612f86f93583496d5f388e961d2fa983920cdd5a.zip
Merge pull request #710 from bstepler/T3269
vif-c: verify: T3269: fix configuration verification
-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 abd91583d..a888791ba 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):
"""