Changeset 13279 in genesis
- Timestamp:
- Jun 13, 2015, 7:48:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13278 r13279 174 174 'autogen_revision' : 'NOTFOUND', 175 175 'autogen_gfile' : gfile, 176 'service_proxy_ileiden' : False, 176 177 } 177 178 f = open(gfile, 'r') … … 184 185 defaults = { 185 186 'service_proxy_normal' : False, 186 'service_proxy_ileiden' : False,187 187 'service_accesspoint' : True, 188 188 'service_incoming_rdr' : False, … … 2027 2027 elif sys.argv[1] == "list": 2028 2028 use_fqdn = False 2029 if len(sys.argv) < 4 or not sys.argv[2] in ["up", "down", "planned", "all"]:2029 if len(sys.argv) < 4: 2030 2030 usage() 2031 if sys.argv[3] == "nodes": 2032 systems = get_nodelist() 2033 elif sys.argv[3] == "proxies": 2034 systems = get_proxylist() 2035 elif sys.argv[3] == "systems": 2036 systems = get_hostlist() 2037 else: 2031 if not sys.argv[2] in ["up", "down", "planned", "all"]: 2038 2032 usage() 2033 if not sys.argv[3] in ["nodes","proxies","systems"]: 2034 usage() 2035 2039 2036 if len(sys.argv) > 4: 2040 2037 if sys.argv[4] == "fqdn": … … 2043 2040 usage() 2044 2041 2045 for system in systems:2042 for system in get_hostlist(): 2046 2043 datadump = get_yaml(system) 2044 if sys.argv[3] == 'proxies' and not datadump['service_proxy_ileiden']: 2045 continue 2047 2046 2048 2047 output = datadump['autogen_fqdn'] if use_fqdn else system
Note:
See TracChangeset
for help on using the changeset viewer.