Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r df433cf7169a sa/profiles/Cisco/IOS/get_inventory.py
- --- a/sa/profiles/Cisco/IOS/get_inventory.py Tue Nov 19 12:39:43 2013 +0400
- +++ b/sa/profiles/Cisco/IOS/get_inventory.py Wed Nov 20 11:23:56 2013 +0400
- @@ -92,12 +92,18 @@
- except ValueError:
- number = None
- return "CHASSIS", number, pid
- - elif name.startswith("module "):
- + elif name.startswith("module ") or pid.startswith("WS-X"):
- # Linecards or supervisors
- - if pid.startswith("RSP"):
- + if pid.startswith("RSP") or "-SUP" in pid:
- return "SUP", name[7:], pid
- else:
- return "LINECARD", name[7:], pid
- + elif "-MSFC" in pid:
- + # MSFC subcard
- + return "MSFC", None, pid
- + elif "-PFC" in pid:
- + # PFC subcard
- + return "PFC", None, pid
- elif "-DFC" in pid:
- # DFC subcard
- return "DFC", None, pid
- @@ -116,4 +122,4 @@
- match = self.rx_trans.search(descr)
- if match:
- return self.TRANS_MAP.get(match.group(1).upper())
- - return None
- \ No newline at end of file
- + return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement