devices without IP address or many addresses crash DHCPDman
Status: Beta
Brought to you by:
kmg_usmc
get_ifcfg.py crashes:
--- cut ---
Traceback (most recent call last):
File "./get_ifcfg.py", line 63, in ?
print netcfg[i]["device"], netcfg[i]["addr"],
netcfg[i]["Mask"]
KeyError: 'addr'
--- cut ---
if any ethernet is up but is not assigned any IP
addresses (in case you bridged it for example). I guess
multiple IP addresses + networks for one device are not
handled correctly too.
Logged In: YES
user_id=476522
The script (get_ifcfg.py) is pretty simple minded. It's
meant to be easly replaced on customized or advanced
systems. If you don't mind supplying the output of your
ifconfig, I'll see if I can extend it to support your
config, though.
-- Kevin