Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. diff -r 5d51070aa16e sa/profiles/Cisco/IOS/get_inventory.py
  2. --- a/sa/profiles/Cisco/IOS/get_inventory.py Sun Mar 23 10:59:06 2014 +0400
  3. +++ b/sa/profiles/Cisco/IOS/get_inventory.py Sun Mar 23 16:15:26 2014 +0400
  4. @@ -306,6 +306,9 @@
  5. or pid.startswith("EVM-") or pid.startswith("EM-")):
  6. # Network Module
  7. return "NM", name[-1], pid
  8. + elif "-NM-" in pid:
  9. + # Network module 2
  10. + return "NM", name.split()[5], pid
  11. elif (pid.startswith("WIC-") or pid.startswith("HWIC-")
  12. or pid.startswith("VWIC-") or pid.startswith("VIC2-")
  13. or pid.startswith("VIC3-")):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement