Changeset 10660 in genesis
- Timestamp:
- May 3, 2012, 5:52:28 AM (13 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dns/staticDNS.yaml
r10658 r10660 111 111 # WL Servers: 112 112 - sunfire: 172.19.128.68 113 - sunny : 172.16.4.46113 - sunny : { 'reverse' : True, 'a' : 172.16.4.46 } 114 114 - dyndns : 172.16.4.46 115 115 - wlconfig : sunny -
tools/gformat.py
r10659 r10660 1092 1092 1093 1093 for line in dns_list: 1094 reverse = False 1094 1095 k, items = line.items()[0] 1095 items = [items] if type(items) == str else items 1096 if type(items) == dict: 1097 if items.has_key('reverse'): 1098 reverse = items['reverse'] 1099 items = items['a'] 1100 else: 1101 items = items['cname'] 1102 items = [items] if type(items) != list else items 1096 1103 for item in items: 1097 1104 if item.startswith('IN '): 1098 1105 wleiden_raw[k] = item 1099 1106 elif valid_addr(item): 1100 wleiden_zone[k].append((item, False))1107 wleiden_zone[k].append((item, reverse)) 1101 1108 else: 1102 1109 wleiden_cname[k] = item
Note:
See TracChangeset
for help on using the changeset viewer.