Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc:/opt/noc/sa/profiles/Cisco/IOS # hg diff
- diff -r 4afa39ee7cd6 sa/profiles/Cisco/IOS/get_inventory.py
- --- a/sa/profiles/Cisco/IOS/get_inventory.py Wed Nov 13 12:42:41 2013 +0400
- +++ b/sa/profiles/Cisco/IOS/get_inventory.py Wed Nov 13 12:48:52 2013 +0400
- @@ -39,6 +39,10 @@
- match.group("name"), match.group("pid"),
- match.group("descr")
- )
- + if len(objects)==0:
- + type = "CHASSIS"
- + number = None
- + part_no = match.group("pid")
- if not part_no:
- print "!!! UNKNOWN: ", match.groupdict()
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement