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

Merge branch 'snr_interface' into 'master'

Fix NAG.SNR.get_interfaces script

See merge request !5445
parents 5c46d1c3 8f28b5f3
Pipeline #32160 passed with stages
in 95 minutes and 39 seconds
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# NAG.SNR.get_interfaces # NAG.SNR.get_interfaces
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project # Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details # See LICENSE for details
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
...@@ -30,7 +30,7 @@ class Script(BaseScript): ...@@ -30,7 +30,7 @@ class Script(BaseScript):
re.MULTILINE, re.MULTILINE,
) )
rx_hw = re.compile( rx_hw = re.compile(
r"^\s+Hardware is (?P<hw_type>\S+)(, active is \S+)?" r"^\s+Hardware is (?P<hw_type>\S+)(\(card not installed\))?(, active is \S+)?"
r"(,\s+address is (?P<mac>\S+))?\s*\n", r"(,\s+address is (?P<mac>\S+))?\s*\n",
re.MULTILINE, re.MULTILINE,
) )
......
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