Merge "Fix handling of dstport option for VXLANs"
This commit is contained in:
commit
4749941f88
|
@ -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))
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue