Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
135
noc
Commits
26db488c
Commit
26db488c
authored
Mar 16, 2020
by
Andrey Vertiprahov
Browse files
Merge branch 'cherry-pick-
981c9ee4
' into 'release-19.4'
release-19.1:Backport!3300 See merge request
noc/noc!3302
parents
877bc2cf
a55e5c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/H3C/VRP/get_version.py
View file @
26db488c
...
...
@@ -26,7 +26,7 @@ class Script(BaseScript):
)
rx_ver1
=
re
.
compile
(
r
"^\s*Comware\sSoftware,\s(\\|)Version\s(?P<version>.+?),\s"
r
"(Release)?(?P<release>\w+(\s)?\w+).*(H3C )(?P<platform>[a-zA-Z0-9\-]+) uptime is"
,
r
"(Release)?(?P<release>\w+(\s)?\w+).*(H3C )
.*?
(?P<platform>[a-zA-Z0-9\-]+) uptime is"
,
re
.
MULTILINE
|
re
.
DOTALL
|
re
.
IGNORECASE
,
)
rx_hw
=
re
.
compile
(
r
"Hardware Version is (?P<hardware>\S+)"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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