Guest User

Untitled

a guest
Feb 13th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  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
  4. @@ -70,6 +70,10 @@
  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()
  14. )
Advertisement
Add Comment
Please, Sign In to add comment