Menu

#2 devices without IP address or many addresses crash DHCPDman

open-accepted
nobody
None
5
2004-12-11
2004-12-03
No

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.

Discussion

  • Kevin M. Gill

    Kevin M. Gill - 2004-12-11
    • status: open --> open-accepted
     
  • Kevin M. Gill

    Kevin M. Gill - 2004-12-11

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.