Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
8f28b5f3
Commit
8f28b5f3
authored
Jun 09, 2021
by
Dmitry Lukhtionov
Browse files
Fix NAG.SNR.get_interfaces script
parent
07177c35
Pipeline
#32141
passed with stages
in 17 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/NAG/SNR/get_interfaces.py
View file @
8f28b5f3
# ---------------------------------------------------------------------
# NAG.SNR.get_interfaces
# ---------------------------------------------------------------------
# Copyright (C) 2007-202
0
The NOC Project
# Copyright (C) 2007-202
1
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<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"
,
re
.
MULTILINE
,
)
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
657daf32
·
Jun 11, 2021
mentioned in commit
657daf32
mentioned in commit 657daf3216d7c3563d2827f052c0ff86cecbe091
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!5452 (merged)
·
Jun 11, 2021
mentioned in merge request
!5452 (merged)
mentioned in merge request !5452
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment