Changeset 10052 in genesis for tools


Ignore:
Timestamp:
Mar 7, 2012, 6:33:35 PM (13 years ago)
Author:
rick
Message:

Whoops clashing keys namespace.

Related-To ticket:117

Location:
tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/getrange.py

    r10051 r10052  
    5151
    5252    add_ip(datadump['masterip'])
    53     for key in datadump['iface_keys']:
     53    for key in datadump['autogen_iface_keys']:
    5454      add_ip(datadump[key]['ip'])
    5555
  • tools/gformat.py

    r10051 r10052  
    365365  f = open(gfile, 'r')
    366366  datadump = yaml.load(f,Loader=Loader)
    367   datadump['iface_keys'] = get_interface_keys(datadump)
     367  datadump['autogen_iface_keys'] = get_interface_keys(datadump)
    368368  f.close()
    369369
     
    375375
    376376  f = open(gfile, 'w')
    377   del datadump['iface_keys']
     377  del datadump['autogen_iface_keys']
    378378  f.write(generate_wleiden_yaml(datadump))
    379379  f.close()
Note: See TracChangeset for help on using the changeset viewer.