diff options
author | Christian Breunig <christian@breunig.cc> | 2023-10-31 07:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 07:32:08 +0100 |
commit | 4766fc5aae39ccc9c7619c89f0fc974bb9309d89 (patch) | |
tree | 91fc367354555b5faa9d784e5683230370ac80fa /src | |
parent | c937ef1b220b5d25834b3dd41ae9128b136d7b05 (diff) | |
parent | 2e85b7ccef45924f1aae03513e116b9087c7ef69 (diff) | |
download | vyos-1x-4766fc5aae39ccc9c7619c89f0fc974bb9309d89.tar.gz vyos-1x-4766fc5aae39ccc9c7619c89f0fc974bb9309d89.zip |
Merge pull request #2419 from vyos/mergify/bp/sagitta/pr-2413
vxlan: T5668: add CLI knob to enable ARP/ND suppression (backport #2413)
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-vxlan.py | 5 |
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) |