Commit e6f0259b authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix regexp for compare Cisco.IOS version

--HG--
branch : feature/microservices
parent d13bf904
......@@ -36,7 +36,7 @@ class Profile(BaseProfile):
rx_cable_if = re.compile(r"Cable\s*(?P<pr_if>\d+/\d+) U(pstream)?\s*(?P<sub_if>\d+)", re.IGNORECASE)
default_parser = "noc.cm.parsers.Cisco.IOS.base.BaseIOSParser"
rx_ver = re.compile(r"(\d+)\.(\d+)\((\d+)\)\S*")
rx_ver = re.compile(r"(\d+)\.(\d+)[\(.](\d+)[\).]\S*")
def cmp_version(self, x, y):
"""12(25)SEC2"""
......
......@@ -130,8 +130,6 @@ class Script(BaseScript):
Returns a set of normalized VTP interface names
:return:
"""
if self.match_version(version__lte="12.2(25)"):
return set()
try:
v = self.cli("show vtp status")
except self.CLISyntaxError:
......
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