Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from noc.inv.models import *
- @pyrule
- def rule(managed_object, config):
- good = ['service password-encryption']
- for gline in good:
- if gline not in config:
- diff += [gline]
- if len(diff) > 0:
- result = ["\nConfig not valid, fix it:\n\n" + "\n".join(diff)]
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement