Advertisement
Guest User

Untitled

a guest
Oct 16th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. diff -r 987a7df9cd59 sa/profiles/Cisco/IOSXR/get_version.py
  2. --- a/sa/profiles/Cisco/IOSXR/get_version.py Wed Oct 10 14:56:14 2012 +0400
  3. +++ b/sa/profiles/Cisco/IOSXR/get_version.py Tue Oct 16 16:26:10 2012 +0300
  4. @@ -20,7 +20,7 @@
  5. implements = [IGetVersion]
  6.  
  7. rx_ver = re.compile(r"^Cisco IOS XR Software, Version\s+(?P<version>\S+\[\d+\]).+cisco\s+(?P<platform>\d+)/PRP", re.MULTILINE | re.DOTALL)
  8. - rx_snmp_ver = re.compile(r"Cisco IOS XR Software \(Cisco (?P<platform>\S+/PRP)\),\s+Version\s+(?P<version>\S+\[\d+\])")
  9. + rx_snmp_ver = re.compile(r"Cisco IOS XR Software \(Cisco (?P<platform>\S+)\s+\w+\).+\s+Version\s+(?P<version>\S+)\[\S+\]")
  10.  
  11. def execute(self):
  12. if self.snmp and self.access_profile.snmp_ro:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement