aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/tests/test_impl_eni.py
diff options
context:
space:
mode:
authorIan Pilcher <arequipeno@gmail.com>2016-02-03 16:06:56 -0600
committerBen Nemec <bnemec@redhat.com>2016-02-15 17:55:56 +0000
commit047294481fc4a2161e8ef637ad3a2706b85bce26 (patch)
treeed527cae1be6c3ee32e61a4cb1c1b5b94333a82a /os_net_config/tests/test_impl_eni.py
parentf00d545041b75b5d3e215bf435689e933dbb4f62 (diff)
Allow setting MTU to 1500
There are times when it is desirable to set the MTU of an "interface" to 1500 -- when the external network and the storage network are different VLANs on the same physical interface, for example. Change-Id: Ic5ea6ad05118fd57c26c898a460c19969de4109d Closes-Bug: #1539821
Diffstat (limited to 'os_net_config/tests/test_impl_eni.py')
-rw-r--r--os_net_config/tests/test_impl_eni.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/os_net_config/tests/test_impl_eni.py b/os_net_config/tests/test_impl_eni.py
index e0e009d..7f909ff 100644
--- a/os_net_config/tests/test_impl_eni.py
+++ b/os_net_config/tests/test_impl_eni.py
@@ -221,6 +221,12 @@ class TestENINetConfig(base.TestCase):
self.provider.add_vlan(vlan)
self.assertEqual(_VLAN_NO_IP, self.get_interface_config('vlan5'))
+ def test_vlan_mtu_1500(self):
+ vlan = objects.Vlan('eth0', 5, mtu=1500)
+ self.provider.add_vlan(vlan)
+ expected = _VLAN_NO_IP + ' mtu 1500\n'
+ self.assertEqual(expected, self.get_interface_config('vlan5'))
+
def test_vlan_ovs_bridge_int_port(self):
vlan = objects.Vlan('eth0', 5)
bridge = objects.OvsBridge('br0', use_dhcp=True,