summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces_vxlan.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-03-25 20:15:35 +0100
committerGitHub <noreply@github.com>2026-03-25 20:15:35 +0100
commit210547f31ef45e6bb42b44bdaa8a8864179a8bbc (patch)
tree062c31be54266e4b72c525a6c7a527468618b7c6 /src/conf_mode/interfaces_vxlan.py
parentd41069f213eaaf0f63b99a1373c06d50bbe4831d (diff)
parentbb2aee1e58c1cd30087b935798060e6bf3c698c8 (diff)
downloadvyos-1x-210547f31ef45e6bb42b44bdaa8a8864179a8bbc.tar.gz
vyos-1x-210547f31ef45e6bb42b44bdaa8a8864179a8bbc.zip
Merge pull request #5082 from sever-sever/T8410
T8410: Fix typos and mistakes for operational and configuration commands
Diffstat (limited to 'src/conf_mode/interfaces_vxlan.py')
-rwxr-xr-xsrc/conf_mode/interfaces_vxlan.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/interfaces_vxlan.py b/src/conf_mode/interfaces_vxlan.py
index 968214354..819920009 100755
--- a/src/conf_mode/interfaces_vxlan.py
+++ b/src/conf_mode/interfaces_vxlan.py
@@ -42,7 +42,7 @@ airbag.enable()
def get_config(config=None):
"""
- Retrive CLI config as dictionary. Dictionary can never be empty, as at least
+ Retrieve CLI config as dictionary. Dictionary can never be empty, as at least
the interface name will be added or a deleted flag
"""
if config:
@@ -101,7 +101,7 @@ def verify(vxlan):
if 'group' in vxlan:
if 'source_interface' not in vxlan:
- raise ConfigError('Multicast VXLAN requires an underlaying interface')
+ raise ConfigError('Multicast VXLAN requires an underlying interface')
if 'remote' in vxlan:
raise ConfigError('Both group and remote cannot be specified')
verify_source_interface(vxlan)
@@ -125,7 +125,7 @@ def verify(vxlan):
if dict_search('parameters.vni_filter', tunnel_config) != None:
other_vni_filter = True
break
- # eqivalent of the C foo ? 'a' : 'b' statement
+ # equivalent of the C foo ? 'a' : 'b' statement
vni_filter = True and (dict_search('parameters.vni_filter', vxlan) != None) or False
# If either one is enabled, so must be the other. Both can be off and both can be on
if (vni_filter and not other_vni_filter) or (not vni_filter and other_vni_filter):
@@ -144,7 +144,7 @@ def verify(vxlan):
if 'source_interface' in vxlan:
# VXLAN adds at least an overhead of 50 byte - we need to check the
- # underlaying device if our VXLAN package is not going to be fragmented!
+ # underlying device if our VXLAN package is not going to be fragmented!
vxlan_overhead = 50
if 'source_address' in vxlan and is_ipv6(vxlan['source_address']):
# IPv6 adds an extra 20 bytes overhead because the IPv6 header is 20