SHOW:
|
|
- or go back to the newest paste.
| 1 | diff -r f7f891b6f31f sa/profiles/Cisco/IOS/get_inventory.py | |
| 2 | --- a/sa/profiles/Cisco/IOS/get_inventory.py Thu Feb 13 14:36:01 2014 +0400 | |
| 3 | - | +++ b/sa/profiles/Cisco/IOS/get_inventory.py Thu Feb 13 17:11:05 2014 +0400 |
| 3 | + | +++ b/sa/profiles/Cisco/IOS/get_inventory.py Thu Feb 13 17:14:06 2014 +0400 |
| 4 | - | @@ -70,6 +70,10 @@ |
| 4 | + | @@ -70,8 +70,12 @@ |
| 5 | if not part_no: | |
| 6 | if "XCVR" in type: | |
| 7 | # Last chance to get idprom | |
| 8 | + if match.group("name").startswith("Transceiver"):
| |
| 9 | + int = match.group("name").split()[1]
| |
| 10 | + else: | |
| 11 | + int = match.group("name")
| |
| 12 | vendor, t_sn, t_rev, part_no = self.get_idprom( | |
| 13 | - | match.group("name"), match.group("descr").upper()
|
| 13 | + | - match.group("name"), match.group("descr").upper()
|
| 14 | - | ) |
| 14 | + | + int, match.group("descr").upper()
|
| 15 | ) | |
| 16 | if not serial: | |
| 17 | serial = t_sn |