summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.de>2004-05-26 17:30:39 +0000
committerKarsten Hopp <karsten@redhat.de>2004-05-26 17:30:39 +0000
commitaedfcabda59592ce049c53efc8dcdb0c6efde88e (patch)
treebfd24978a22c94b12faee2d6587fd04b5bff1794 /network.py
parent7027c523ea6c5e0e8a23663fdb7964fe81292dbf (diff)
downloadanaconda-aedfcabda59592ce049c53efc8dcdb0c6efde88e.tar.gz
anaconda-aedfcabda59592ce049c53efc8dcdb0c6efde88e.tar.xz
anaconda-aedfcabda59592ce049c53efc8dcdb0c6efde88e.zip
add support for LCS and ccwgroup devices, fix traceback
Diffstat (limited to 'network.py')
-rw-r--r--network.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/network.py b/network.py
index 34751b541..62fd79472 100644
--- a/network.py
+++ b/network.py
@@ -138,6 +138,8 @@ class NetworkDevice(SimpleConfigFile):
self.info["TYPE"] = "IUCV"
elif dev.startswith('escon'):
self.info["TYPE"] = "ESCON"
+ elif dev.startswith('lcs'):
+ self.info["TYPE"] = "LCS"
elif dev.startswith('tr'):
self.info["TYPE"] = "\"Token Ring\""
else:
@@ -172,12 +174,16 @@ class Network:
self.isConfigured = 1
for line in lines:
netinf = string.splitfields(line, '=')
- info [netinf[0]] = string.strip(netinf[1])
+ if len(netinf) >= 2:
+ info [netinf[0]] = string.strip(netinf[1])
self.netdevices [info["DEVICE"]] = NetworkDevice(info["DEVICE"])
for key in ("IPADDR", "NETMASK", "BOOTPROTO", "ONBOOT", "MTU",
- "REMIP"):
+ "REMIP", "QETH", "SUBCHANNELS", "PORTNAME"):
if info.has_key(key):
self.netdevices [info["DEVICE"]].set((key, info[key]))
+ # KH: Hack for special case qeth devices which show up as ethX:
+ if info.has_key("QETH"):
+ self.netdevices [info["DEVICE"]].info["TYPE"] = "QETH";
if info.has_key("GATEWAY"):
self.gateway = info["GATEWAY"]
if info.has_key("DOMAIN"):