Commit 72a73080 authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Merge branch 'SA_Huawei_get_version' into 'microservices'

add RE for Huawei get_version

See merge request !234
parents 24f50f16 eb6e56d1
Pipeline #2855 passed with stage
in 52 seconds
......@@ -55,12 +55,18 @@ class Script(BaseScript):
re.MULTILINE | re.DOTALL | re.IGNORECASE
)
rx_ver_snmp6 = re.compile(
r"Huawei Versatile Routing Platform .* \((?P<platform>[A-Z0-9]+) (?P<version>\S+)\) .*?",
re.MULTILINE | re.DOTALL | re.IGNORECASE
)
BAD_PLATFORM = ["", "Quidway S5600-HI"]
def execute(self):
v = ""
match_re_list = [
self.rx_ver,
self.rx_ver_snmp6,
self.rx_ver_snmp,
self.rx_ver_snmp2,
self.rx_ver_snmp3,
......
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