Changeset 10999 in genesis for tools


Ignore:
Timestamp:
May 24, 2012, 10:55:33 AM (13 years ago)
Author:
rick
Message:

Should make an API for this kind of stuff...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10998 r10999  
    16661666            ips.append(datadump[ifkey]['ip'].split('/')[0])
    16671667          print system, ' '.join(ips)
     1668      elif sys.argv[2] == "host-pos.txt":
     1669        for system in get_hostlist():
     1670          datadump = get_yaml(system)
     1671          print system, datadump['rdnap_x'], datadump['rdnap_y']
    16681672      else:
    16691673        usage()
Note: See TracChangeset for help on using the changeset viewer.