summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-31 06:59:28 +0100
committerGitHub <noreply@github.com>2023-10-31 06:59:28 +0100
commit82a0067ca2d40456545befbbaa84b2a52a81ada2 (patch)
tree1afbe05cde0e7efe2590c991d53a0ced8e3aff37 /src/conf_mode
parent18a0accde0cb6887449be2ced3f092cce77b3d3e (diff)
parentec9a95502daa88b9632af12524e7cefebf86bab6 (diff)
downloadvyos-1x-82a0067ca2d40456545befbbaa84b2a52a81ada2.tar.gz
vyos-1x-82a0067ca2d40456545befbbaa84b2a52a81ada2.zip
Merge pull request #2413 from c-po/t5668-vxlan
vxlan: T5668: add CLI knob to enable ARP/ND suppression
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-vxlan.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-vxlan.py b/src/conf_mode/interfaces-vxlan.py
index 16cc96c63..6bf3227d5 100755
--- a/src/conf_mode/interfaces-vxlan.py
+++ b/src/conf_mode/interfaces-vxlan.py
@@ -165,6 +165,11 @@ def verify(vxlan):
raise ConfigError(f'VNI "{vni}" is already assigned to a different VLAN!')
vnis_used.append(vni)
+ if dict_search('parameters.neighbor_suppress', vxlan):
+ if 'is_bridge_member' not in vxlan:
+ raise ConfigError('Neighbor suppression requires that VXLAN interface '\
+ 'is member of a bridge interface!')
+
verify_mtu_ipv6(vxlan)
verify_address(vxlan)
verify_bond_bridge_member(vxlan)