- Timestamp:
- May 16, 2012, 6:55:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10872 r10880 424 424 if not datadump[iface_key].has_key('comment'): 425 425 datadump[iface_key]['comment'] = None 426 dhcp_out[ifname].append(" ## %(interface)s - %( desc)s - %(comment)s\n" % datadump[iface_key])426 dhcp_out[ifname].append(" ## %(interface)s - %(comment)s\n" % datadump[iface_key]) 427 427 428 428 (addr, mask) = datadump[iface_key]['ip'].split('/') … … 473 473 if not datadump[iface_key].has_key('comment'): 474 474 datadump[iface_key]['comment'] = None 475 output += "## %(interface)s - %( desc)s - %(comment)s\n" % datadump[iface_key]475 output += "## %(interface)s - %(comment)s\n" % datadump[iface_key] 476 476 477 477 try: … … 679 679 680 680 # Add interface IP to list 681 item = (ifacedump['ip'], ifacedump[' desc'])681 item = (ifacedump['ip'], ifacedump['comment']) 682 682 if addrs_list.has_key(ifname): 683 683 addrs_list[ifname].append(item) … … 930 930 output += "\n\n" 931 931 932 key_order = [ 'comment', 'interface', 'ip', ' desc', 'sdesc', 'mode', 'type',932 key_order = [ 'comment', 'interface', 'ip', 'sdesc', 'mode', 'type', 933 933 'extra_type', 'channel', 'ssid', 'dhcp' ] 934 934 … … 1467 1467 if datadump[iface_key].has_key('ns_ip') and not datadump[iface_key].has_key('mode'): 1468 1468 datadump[iface_key]['mode'] = 'autogen-FIXME' 1469 if not datadump[iface_key].has_key(' desc'):1470 datadump[iface_key][' desc'] = 'autogen-FIXME'1469 if not datadump[iface_key].has_key('comment'): 1470 datadump[iface_key]['comment'] = 'autogen-FIXME' 1471 1471 # Set the compass value based on the angle between the poels 1472 1472 if datadump[iface_key].has_key('ns_ip'):
Note:
See TracChangeset
for help on using the changeset viewer.