Changeset 8686 in genesis


Ignore:
Timestamp:
Nov 30, 2010, 10:26:31 PM (14 years ago)
Author:
richardvm
Message:

only allow nodes that are status=up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/yaml2nag.py

    r8644 r8686  
    8484    return 1
    8585
     86def is_up(node):
     87  """ Is node Up?"""
     88  if node['status'] == 'up':
     89    return 1
     90  else:
     91    return 0
     92
    8693def get_hostname(node):
    8794  return node['nodename']   
     
    105112
    106113  for k,v in allconfigs.iteritems():
    107     if is_iris(v):
     114    if is_iris(v) and is_up(v):
    108115      ileiden = is_ileiden(v)
    109116      interfaces  = get_up_interfaces(v, 'iface-')
Note: See TracChangeset for help on using the changeset viewer.