Changeset 10998 in genesis for tools


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

Quirk for getting all IPs from the hosts only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10986 r10998  
    16591659      if sys.argv[2] == "network.kml":
    16601660        print make_network_kml.make_graph()
     1661      elif sys.argv[2] == "host-ips.txt":
     1662        for system in get_hostlist():
     1663          datadump = get_yaml(system)
     1664          ips = [datadump['masterip']]
     1665          for ifkey in datadump['autogen_iface_keys']:
     1666            ips.append(datadump[ifkey]['ip'].split('/')[0])
     1667          print system, ' '.join(ips)
    16611668      else:
    1662        usage()
     1669        usage()
     1670    else:
    16631671      usage()
    16641672  else:
Note: See TracChangeset for help on using the changeset viewer.