Set network_device_mtu as integer
Fixes bug 1175060 Change-Id: Ibce28db0575dd6d6f1f998a7b8d6603f3d6dba63
This commit is contained in:
parent
b1b89da57f
commit
2c62e14a0e
@ -39,7 +39,7 @@ OPTS = [
|
||||
cfg.BoolOpt('ovs_use_veth',
|
||||
default=False,
|
||||
help=_('Uses veth for an interface or not')),
|
||||
cfg.StrOpt('network_device_mtu',
|
||||
cfg.IntOpt('network_device_mtu',
|
||||
help=_('MTU setting for device.')),
|
||||
cfg.StrOpt('meta_flavor_driver_mappings',
|
||||
help=_('Mapping between flavor and LinuxInterfaceDriver')),
|
||||
|
@ -152,6 +152,11 @@ class TestOVSInterfaceDriver(TestBase):
|
||||
|
||||
self.ip.assert_has_calls(expected)
|
||||
|
||||
def test_mtu_int(self):
|
||||
self.assertIsNone(self.conf.network_device_mtu)
|
||||
self.conf.set_override('network_device_mtu', 9000)
|
||||
self.assertEqual(self.conf.network_device_mtu, 9000)
|
||||
|
||||
def test_plug_mtu(self):
|
||||
self.conf.set_override('network_device_mtu', 9000)
|
||||
self._test_plug([mock.call().device().link.set_mtu(9000)])
|
||||
|
Loading…
Reference in New Issue
Block a user