diff --git a/neutron/agent/linux/ip_lib.py b/neutron/agent/linux/ip_lib.py index 937dcb5caff..6dbeab76eaa 100644 --- a/neutron/agent/linux/ip_lib.py +++ b/neutron/agent/linux/ip_lib.py @@ -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)) diff --git a/neutron/tests/unit/agent/linux/test_ip_lib.py b/neutron/tests/unit/agent/linux/test_ip_lib.py index d9e0ba42465..27112500696 100644 --- a/neutron/tests/unit/agent/linux/test_ip_lib.py +++ b/neutron/tests/unit/agent/linux/test_ip_lib.py @@ -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',