Changeset 10255 in genesis
- Timestamp:
- Mar 20, 2012, 12:20:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/get-node.py
r10252 r10255 7 7 def list_ips(ip): 8 8 addr, mask = ip.split('/')[0], ip.split('/')[1] 9 10 if int(mask) >= 29: return []11 9 12 10 mask = 2 ** (32 - int(mask)) … … 32 30 ifaces = gformat.get_yaml(node)['interfaces'].split(',') 33 31 for iface in ifaces: 32 if gformat.get_yaml(node)['iface_%s' % iface]['dhcp'] == "no" : 33 continue 34 if gformat.get_yaml(node)['iface_%s' % iface]['dhcp'] == "False" : 35 continue 36 ip = gformat.get_yaml(node)['iface_%s' % iface]['ip'] 34 37 ip = gformat.get_yaml(node)['iface_%s' % iface]['ip'] 35 38 node_short = node.replace('CNode', '').lower()
Note:
See TracChangeset
for help on using the changeset viewer.