Changeset 10880 in genesis for tools


Ignore:
Timestamp:
May 16, 2012, 6:55:25 PM (13 years ago)
Author:
rick
Message:

Tot ziens 'desc' veld.

Related-To: beheer:ticket:218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10872 r10880  
    424424    if not datadump[iface_key].has_key('comment'):
    425425      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])
    427427
    428428    (addr, mask) = datadump[iface_key]['ip'].split('/')
     
    473473    if not datadump[iface_key].has_key('comment'):
    474474      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]
    476476
    477477    try:
     
    679679
    680680    # Add interface IP to list
    681     item = (ifacedump['ip'], ifacedump['desc'])
     681    item = (ifacedump['ip'], ifacedump['comment'])
    682682    if addrs_list.has_key(ifname):
    683683      addrs_list[ifname].append(item)
     
    930930  output += "\n\n"
    931931
    932   key_order = [ 'comment', 'interface', 'ip', 'desc', 'sdesc', 'mode', 'type',
     932  key_order = [ 'comment', 'interface', 'ip', 'sdesc', 'mode', 'type',
    933933    'extra_type', 'channel', 'ssid', 'dhcp' ]
    934934
     
    14671467          if datadump[iface_key].has_key('ns_ip') and not datadump[iface_key].has_key('mode'):
    14681468            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'
    14711471          # Set the compass value based on the angle between the poels
    14721472          if datadump[iface_key].has_key('ns_ip'):
Note: See TracChangeset for help on using the changeset viewer.