Merge "Fix handling of dstport option for VXLANs"

This commit is contained in:
Zuul 2018-04-19 10:54:04 +00:00 committed by Gerrit Code Review
commit 4749941f88
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ class IPWrapper(SubProcessBase):
else:
raise n_exc.NetworkVxlanPortRangeError(vxlan_range=srcport)
if dstport:
kwargs['vxlan_port'] = str(dstport)
kwargs['vxlan_port'] = dstport
privileged.create_interface(name, self.namespace, "vxlan", **kwargs)
return (IPDevice(name, namespace=self.namespace))

View File

@ -512,7 +512,7 @@ class TestIpWrapper(base.BaseTestCase):
'vxlan_local': 'local0',
'vxlan_proxy': True,
'vxlan_port_range': ('1', '2'),
'vxlan_port': '4789'}
'vxlan_port': 4789}
retval = ip_lib.IPWrapper().add_vxlan('vxlan0', 'vni0',
group='group0',