aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.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/impl_ifcfg.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/impl_ifcfg.py')
-rw-r--r--os_net_config/impl_ifcfg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py
index 70f5065..2e99f98 100644
--- a/os_net_config/impl_ifcfg.py
+++ b/os_net_config/impl_ifcfg.py
@@ -164,11 +164,11 @@ class IfcfgNetConfig(os_net_config.NetConfig):
data += "BOOTPROTO=dhcp\n"
elif not base_opt.addresses:
data += "BOOTPROTO=none\n"
- if base_opt.mtu != 1500:
+ if base_opt.mtu:
data += "MTU=%i\n" % base_opt.mtu
if base_opt.use_dhcpv6 or base_opt.v6_addresses():
data += "IPV6INIT=yes\n"
- if base_opt.mtu != 1500:
+ if base_opt.mtu:
data += "IPV6_MTU=%i\n" % base_opt.mtu
if base_opt.use_dhcpv6:
data += "DHCPV6C=yes\n"