Changeset 10611 in genesis
- Timestamp:
- Apr 29, 2012, 5:49:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10599 r10611 1276 1276 store_yaml(datadump) 1277 1277 elif sys.argv[1] == "list": 1278 use_fqdn = False 1278 1279 if len(sys.argv) < 4 or not sys.argv[2] in ["up", "down", "planned", "all"]: 1279 1280 usage() … … 1286 1287 else: 1287 1288 usage() 1289 if len(sys.argv) > 4: 1290 if sys.argv[4] == "fqdn": 1291 use_fqdn = True 1292 else: 1293 usage() 1294 1288 1295 for system in systems: 1289 1296 datadump = get_yaml(system) 1297 1298 output = datadump['autogen_fqdn'] if use_fqdn else system 1290 1299 if sys.argv[2] == "all": 1291 print system1300 print output 1292 1301 elif datadump['status'] == sys.argv[2]: 1293 print system1302 print output 1294 1303 elif sys.argv[1] == "create": 1295 1304 if sys.argv[2] == "network.kml":
Note:
See TracChangeset
for help on using the changeset viewer.