Changeset 9953 in genesis for tools/yaml2nag.py


Ignore:
Timestamp:
Feb 13, 2012, 8:40:31 PM (13 years ago)
Author:
richardvm
Message:

changed the way an ap/interlink is detected. Hopefully a little less errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/yaml2nag.py

    r8913 r9953  
    7777def is_ap(node):
    7878  try:
    79     if node['mode'] == 'ap-wds':
     79    if node['dhcp'] == 'no':
     80      return 1
     81    else:
    8082      return 0
    81     else:
    82       return 1
    8383  except:
    84     return 1
     84    return 0
    8585
    8686def is_up(node):
Note: See TracChangeset for help on using the changeset viewer.