Commit 657daf32 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 noc/noc!5445

(cherry picked from commit b4f8dc2d)

8f28b5f3 Fix NAG.SNR.get_interfaces script
parent 804916c3
Pipeline #32161 passed with stages
in 26 minutes and 56 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