Advertisement
Guest User

Untitled

a guest
Feb 25th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from noc.inv.models import *
  2. @pyrule
  3. def rule(managed_object, config):
  4. good = ['service password-encryption']
  5.  
  6. for gline in good:
  7. if gline not in config:
  8. diff += [gline]
  9.  
  10. if len(diff) > 0:
  11. result = ["\nConfig not valid, fix it:\n\n" + "\n".join(diff)]
  12. return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement