From 657daf3216d7c3563d2827f052c0ff86cecbe091 Mon Sep 17 00:00:00 2001 From: Andrey Vertiprahov Date: Fri, 11 Jun 2021 16:52:54 +0000 Subject: [PATCH] Merge branch 'snr_interface' into 'master' Fix NAG.SNR.get_interfaces script See merge request noc/noc!5445 (cherry picked from commit b4f8dc2dce13a9a9aaeb3bf46b32c972e9d1fb65) 8f28b5f3 Fix NAG.SNR.get_interfaces script --- sa/profiles/NAG/SNR/get_interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sa/profiles/NAG/SNR/get_interfaces.py b/sa/profiles/NAG/SNR/get_interfaces.py index 36f15ad3d0..c05e47a282 100644 --- a/sa/profiles/NAG/SNR/get_interfaces.py +++ b/sa/profiles/NAG/SNR/get_interfaces.py @@ -1,7 +1,7 @@ # --------------------------------------------------------------------- # NAG.SNR.get_interfaces # --------------------------------------------------------------------- -# Copyright (C) 2007-2020 The NOC Project +# Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- @@ -30,7 +30,7 @@ class Script(BaseScript): re.MULTILINE, ) rx_hw = re.compile( - r"^\s+Hardware is (?P\S+)(, active is \S+)?" + r"^\s+Hardware is (?P\S+)(\(card not installed\))?(, active is \S+)?" r"(,\s+address is (?P\S+))?\s*\n", re.MULTILINE, ) -- GitLab