summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorsrividya0208 <a.srividya@vyos.io>2025-04-10 10:34:02 -0400
committersrividya0208 <a.srividya@vyos.io>2025-04-10 10:34:02 -0400
commit85c34d9f520e0221c5c476474781632693738154 (patch)
tree2be48799dc13ba9e9d8c1b5767da9b3d95b6d199 /python
parentd25fa39b1c055e3f44c70504e89455b496a775ce (diff)
downloadvyos-1x-85c34d9f520e0221c5c476474781632693738154.tar.gz
vyos-1x-85c34d9f520e0221c5c476474781632693738154.zip
mtu_value: T7316:commit validation for interfaces when mtu configured <1200
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configverify.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index 4084425b1..e2c00577a 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -356,6 +356,7 @@ def verify_vlan_config(config):
verify_vrf(vlan)
verify_mirror_redirect(vlan)
verify_mtu_parent(vlan, config)
+ verify_mtu_ipv6(vlan)
# 802.1ad (Q-in-Q) VLANs
for s_vlan_id in config.get('vif_s', {}):
@@ -367,6 +368,7 @@ def verify_vlan_config(config):
verify_vrf(s_vlan)
verify_mirror_redirect(s_vlan)
verify_mtu_parent(s_vlan, config)
+ verify_mtu_ipv6(s_vlan)
for c_vlan_id in s_vlan.get('vif_c', {}):
c_vlan = s_vlan['vif_c'][c_vlan_id]
@@ -378,6 +380,7 @@ def verify_vlan_config(config):
verify_mirror_redirect(c_vlan)
verify_mtu_parent(c_vlan, config)
verify_mtu_parent(c_vlan, s_vlan)
+ verify_mtu_ipv6(c_vlan)
def verify_diffie_hellman_length(file, min_keysize):