diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-28 10:29:30 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-28 18:10:08 +0100 |
commit | 458e71dd7b1af3354a7643a0d26e651a9e7ccfcf (patch) | |
tree | d7dbf463a28bec9f4465783741244150da08fdd8 /python/vyos | |
parent | 5574bd672825a87b1983cc135ae2e0bdabbe751b (diff) | |
download | vyos-1x-458e71dd7b1af3354a7643a0d26e651a9e7ccfcf.tar.gz vyos-1x-458e71dd7b1af3354a7643a0d26e651a9e7ccfcf.zip |
vxlan: T1513: add dont-fragment CLI option
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig/vxlan.py | 17 |
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}' |