diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-15 20:45:04 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-15 20:45:04 +0000 |
commit | 2682ce3d14b574af1c82558b5e3d0d61e33b2968 (patch) | |
tree | f1f5fefab997f4920695cae1a5a24ca592812d95 /network.py | |
parent | e790ab88373501cf069023550912b8dcbdd390a0 (diff) | |
download | anaconda-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.py | 7 |
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"): |