diff options
author | Karsten Hopp <karsten@redhat.de> | 2004-05-26 17:30:39 +0000 |
---|---|---|
committer | Karsten Hopp <karsten@redhat.de> | 2004-05-26 17:30:39 +0000 |
commit | aedfcabda59592ce049c53efc8dcdb0c6efde88e (patch) | |
tree | bfd24978a22c94b12faee2d6587fd04b5bff1794 | |
parent | 7027c523ea6c5e0e8a23663fdb7964fe81292dbf (diff) | |
download | anaconda-aedfcabda59592ce049c53efc8dcdb0c6efde88e.tar.gz anaconda-aedfcabda59592ce049c53efc8dcdb0c6efde88e.tar.xz anaconda-aedfcabda59592ce049c53efc8dcdb0c6efde88e.zip |
add support for LCS and ccwgroup devices, fix traceback
-rw-r--r-- | network.py | 10 |
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"): |