Changeset 9589 in genesis
- Timestamp:
- Aug 28, 2011, 11:33:05 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r9514 r9589 687 687 \tdns [outputdir] = Generate BIND compliant zone files in dns. 688 688 \tstandalone = Run configurator webserver [default port=8000] 689 \twind-export = Generate SQL import scripts for WIND database 690 \tfull-export = Generate yaml export script for heatmap. 689 691 \tstatic = Generate all config files and store on disk 690 692 \t with format ./static/%%NODE%%/%%FILE%% … … 781 783 '%(ssid)s', 'IEEE 802.11b', %(channel)s, 'active');""" % ifacedump 782 784 print sql 785 elif sys.argv[1] == "full-export": 786 hosts = {} 787 for node in get_hostlist(): 788 datadump = get_yaml(node) 789 hosts[datadump['nodename']] = datadump 790 print yaml.dump(hosts) 791 783 792 elif sys.argv[1] == "dns": 784 793 make_dns(sys.argv[2] if len(sys.argv) > 2 else 'dns')
Note:
See TracChangeset
for help on using the changeset viewer.