diff options
author | Christian Breunig <christian@breunig.cc> | 2023-10-22 18:40:23 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-22 16:44:28 +0000 |
commit | 48da0f4fc96cd0a3a72c714b7b8fd5d57a57c15d (patch) | |
tree | b212a4376449ca8062977bf6b631afe392c089f1 /src/conf_mode/interfaces-vxlan.py | |
parent | 162bd820d6cb88091618be83369feb591fc30306 (diff) | |
download | vyos-1x-48da0f4fc96cd0a3a72c714b7b8fd5d57a57c15d.tar.gz vyos-1x-48da0f4fc96cd0a3a72c714b7b8fd5d57a57c15d.zip |
vxlan: T5671: warn about changed default port number
(cherry picked from commit 719a3622f35a0596ffd8a0bd28c071fdaf930153)
Diffstat (limited to 'src/conf_mode/interfaces-vxlan.py')
-rwxr-xr-x | src/conf_mode/interfaces-vxlan.py | 7 |
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): |