Commit 5990d3a1 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Cisco.IOS.get_version. Fix ASR1006 SNMP version regex for 15.2(20150718) format.

parent f7d389d2
......@@ -28,7 +28,7 @@ class Script(BaseScript):
)
rx_snmp_ver = re.compile(
r"^(?:Cisco IOS Software( \[(?:Gibraltar|Fuji|Everest|Denali|Amsterdam)\])?,.*?|IOS \(tm\)) (?P<platform>.+?) "
r"Software \((?P<image>[^)]+)\), (Experimental )?Version (?P<version>[^,]+),",
r"Software \((?P<image>[^)]+)\), (Experimental )?Version (?P<version>[^\s,]+)",
re.MULTILINE | re.DOTALL,
)
rx_platform = re.compile(
......
......@@ -51,7 +51,7 @@ class Profile(BaseProfile):
("hints", "protocols", "ntp", "version", "3"),
# ("hints", "protocols", "loop-detect", "status", False),
]
rx_ver = re.compile(r"(\d+)\.(\d+)[\(.](\d+)\w*[\).]\S*")
rx_ver = re.compile(r"(\d+)\.(\d+)[\(.](\d+):?(\d+)?\w*[\).]\S*")
matchers = {
"is_platform_7200": {"platform": {"$regex": r"720[0146]|730[14]"}},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment