summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-28 10:29:30 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-28 18:10:08 +0100
commit458e71dd7b1af3354a7643a0d26e651a9e7ccfcf (patch)
treed7dbf463a28bec9f4465783741244150da08fdd8 /python
parent5574bd672825a87b1983cc135ae2e0bdabbe751b (diff)
downloadvyos-1x-458e71dd7b1af3354a7643a0d26e651a9e7ccfcf.tar.gz
vyos-1x-458e71dd7b1af3354a7643a0d26e651a9e7ccfcf.zip
vxlan: T1513: add dont-fragment CLI option
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/vxlan.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/python/vyos/ifconfig/vxlan.py b/python/vyos/ifconfig/vxlan.py
index 291332a77..e17643aca 100644
--- a/python/vyos/ifconfig/vxlan.py
+++ b/python/vyos/ifconfig/vxlan.py
@@ -54,14 +54,15 @@ class VXLANIf(Interface):
# arguments used by iproute2. For more information please refer to:
# - https://man7.org/linux/man-pages/man8/ip-link.8.html
mapping = {
- 'source_address' : 'local',
- 'source_interface' : 'dev',
- 'remote' : 'remote',
- 'group' : 'group',
- 'parameters.ip.tos' : 'tos',
- 'parameters.ip.ttl' : 'ttl',
- 'parameters.ipv6.flowlabel' : 'flowlabel',
- 'parameters.nolearning' : 'nolearning',
+ 'source_address' : 'local',
+ 'source_interface' : 'dev',
+ 'remote' : 'remote',
+ 'group' : 'group',
+ 'parameters.ip.dont_fragment': 'df set',
+ 'parameters.ip.tos' : 'tos',
+ 'parameters.ip.ttl' : 'ttl',
+ 'parameters.ipv6.flowlabel' : 'flowlabel',
+ 'parameters.nolearning' : 'nolearning',
}
cmd = 'ip link add {ifname} type {type} id {vni} dstport {port}'