summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-15 20:45:04 +0000
committerChris Lumens <clumens@redhat.com>2006-05-15 20:45:04 +0000
commit2682ce3d14b574af1c82558b5e3d0d61e33b2968 (patch)
treef1f5fefab997f4920695cae1a5a24ca592812d95 /network.py
parente790ab88373501cf069023550912b8dcbdd390a0 (diff)
downloadanaconda-2682ce3d14b574af1c82558b5e3d0d61e33b2968.tar.gz
anaconda-2682ce3d14b574af1c82558b5e3d0d61e33b2968.tar.xz
anaconda-2682ce3d14b574af1c82558b5e3d0d61e33b2968.zip
Allow MTU to be specified in a kickstart file as well as on the command
line (#191328).
Diffstat (limited to 'network.py')
-rw-r--r--network.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/network.py b/network.py
index 7a9f6570e..f5feef041 100644
--- a/network.py
+++ b/network.py
@@ -381,6 +381,10 @@ class Network:
if dev.get('bootproto') == 'dhcp' or dev.get('ipaddr'):
f.write("network --device %s" % dev.get('device'))
+
+ if dev.get('MTU') and dev.get('MTU') != 0:
+ f.write(" --mtu=%s" % dev.get('MTU'))
+
onboot = dev.get("onboot")
if onboot and onboot == "no":
f.write(" --onboot no")
@@ -432,6 +436,9 @@ class Network:
if dev.get('dhcpclass'):
f.write("DHCP_CLASSID=%s\n" % dev.get('dhcpclass'))
+ if dev.get('MTU') and dev.get('MTU') != 0:
+ f.write("MTU=%s\n" % dev.get('MTU'))
+
f.close()
if dev.get("key"):