1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vxlan: support ToS and udpcsum

This commit is contained in:
Sam Osterkil
2021-04-29 12:19:22 -06:00
parent c1d01549a1
commit e521508b41
4 changed files with 88 additions and 3 deletions

View File

@@ -306,7 +306,7 @@ class IPRoute2(Cache, Requirements):
self.__update_cache_after_link_creation(ifname, "vxlan")
def link_create_vxlan(self, name, vxlanid, localtunnelip=None, svcnodeip=None,
remoteips=None, learning='on', ageing=None, ttl=None, physdev=None):
remoteips=None, learning='on', ageing=None, ttl=None, physdev=None, udp_csum='on', tos = None):
if svcnodeip and remoteips:
raise Exception("svcnodeip and remoteip are mutually exclusive")
@@ -333,9 +333,15 @@ class IPRoute2(Cache, Requirements):
if learning == 'off':
cmd.append("nolearning")
if udp_csum == 'off':
cmd.append("noudpcsum")
if ttl is not None:
cmd.append("ttl %s" % ttl)
if tos is not None:
cmd.append("tos %s" % tos)
if physdev:
cmd.append("dev %s" % physdev)