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

H3C.VRP.get_version. Fix regex for S3100-8TP-EI model.

parent de1263ef
......@@ -26,7 +26,7 @@ class Script(BaseScript):
)
rx_ver1 = re.compile(
r"^\s*Comware\sSoftware,\s(\\|)Version\s(?P<version>.+?),\s"
r"(Release)?(?P<release>\w+(\s)?\w+).*(H3C )(?P<platform>[a-zA-Z0-9\-]+) uptime is",
r"(Release)?(?P<release>\w+(\s)?\w+).*(H3C ).*?(?P<platform>[a-zA-Z0-9\-]+) uptime is",
re.MULTILINE | re.DOTALL | re.IGNORECASE,
)
rx_hw = re.compile(r"Hardware Version is (?P<hardware>\S+)")
......
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