Changeset 10255 in genesis


Ignore:
Timestamp:
Mar 20, 2012, 12:20:16 PM (13 years ago)
Author:
richardvm
Message:

change the way a access point in recognized from ip mast to dhcp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/get-node.py

    r10252 r10255  
    77def list_ips(ip):
    88  addr, mask = ip.split('/')[0], ip.split('/')[1]
    9 
    10   if int(mask) >= 29: return []
    119
    1210  mask = 2 ** (32 - int(mask))
     
    3230  ifaces = gformat.get_yaml(node)['interfaces'].split(',')
    3331  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']
    3437    ip = gformat.get_yaml(node)['iface_%s' % iface]['ip']
    3538    node_short = node.replace('CNode', '').lower()
Note: See TracChangeset for help on using the changeset viewer.