summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-vxlan.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-22 18:44:01 +0200
committerGitHub <noreply@github.com>2023-10-22 18:44:01 +0200
commitde02d7815be4c28f1e98e486c2c7c54e934db335 (patch)
tree31747b1164773fb069d4961da94ba3977ef1df1a /src/conf_mode/interfaces-vxlan.py
parent5163cc9e48a8b46ebf80e0e3b270564f7157375a (diff)
parent719a3622f35a0596ffd8a0bd28c071fdaf930153 (diff)
downloadvyos-1x-de02d7815be4c28f1e98e486c2c7c54e934db335.tar.gz
vyos-1x-de02d7815be4c28f1e98e486c2c7c54e934db335.zip
Merge pull request #2386 from c-po/vxlan-t5671
vxlan: T5671: change port to IANA assigned default port
Diffstat (limited to 'src/conf_mode/interfaces-vxlan.py')
-rwxr-xr-xsrc/conf_mode/interfaces-vxlan.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-vxlan.py b/src/conf_mode/interfaces-vxlan.py
index 05f68112a..ff8144e74 100755
--- a/src/conf_mode/interfaces-vxlan.py
+++ b/src/conf_mode/interfaces-vxlan.py
@@ -168,6 +168,13 @@ def verify(vxlan):
verify_address(vxlan)
verify_bond_bridge_member(vxlan)
verify_mirror_redirect(vxlan)
+
+ # We use a defaultValue for port, thus it's always safe to use
+ if vxlan['port'] == '8472':
+ Warning('Starting from VyOS 1.4, the default port for VXLAN '\
+ 'has been changed to 4789. This matches the IANA assigned '\
+ 'standard port number!')
+
return None
def generate(vxlan):