diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-02 22:58:56 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-02 22:58:56 +0200 |
commit | 8f161eaae78769e5a1d573e43f00a0f439aadc28 (patch) | |
tree | e971cea59727e9a7c60bbcd4550c740d722a17db | |
parent | 1dba4d088eba86854d8db8536eba36a5830e62c4 (diff) | |
download | vyos-1x-8f161eaae78769e5a1d573e43f00a0f439aadc28.tar.gz vyos-1x-8f161eaae78769e5a1d573e43f00a0f439aadc28.zip |
vxlan: T5429: source-interface is not honored and throws config error
cpo@leaf-02# show interfaces vxlan
+vxlan vxlan1 {
+ mtu 1500
+ parameters {
+ nolearning
+ }
+ port 4789
+ source-interface dum1
+ vni 100
+}
cpo@leaf-02# commit
[ interfaces vxlan vxlan1 ]
Group, remote or source-address must be configured
[[interfaces vxlan vxlan1]] failed
Extend verify() check to also honor source-interface definition.
-rwxr-xr-x | src/conf_mode/interfaces-vxlan.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-vxlan.py b/src/conf_mode/interfaces-vxlan.py index b1536148c..a3b0867e0 100755 --- a/src/conf_mode/interfaces-vxlan.py +++ b/src/conf_mode/interfaces-vxlan.py @@ -87,8 +87,8 @@ def verify(vxlan): raise ConfigError('Multicast VXLAN requires an underlaying interface') verify_source_interface(vxlan) - if not any(tmp in ['group', 'remote', 'source_address'] for tmp in vxlan): - raise ConfigError('Group, remote or source-address must be configured') + if not any(tmp in ['group', 'remote', 'source_address', 'source_interface'] for tmp in vxlan): + raise ConfigError('Group, remote, source-address or source-interface must be configured') if 'vni' not in vxlan and 'external' not in vxlan: raise ConfigError( |