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
Vladimir
noc
Commits
4a4fb150
Commit
4a4fb150
authored
Dec 04, 2015
by
Dmitry Volodin
Browse files
Merged in feniks_619452/noc/develop (pull request #119)
Harmonic.ProStream1000. Small fixes --HG-- branch : develop
parents
6366a757
fcf840c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Harmonic/ProStream1000/get_config.py
View file @
4a4fb150
...
...
@@ -22,6 +22,7 @@ class Script(noc.sa.script.Script):
implements
=
[
IGetConfig
]
data
=
'<AFRICA><Platform ID=
\"
1
\"
Action=
\"
GET_TREE
\"
/></AFRICA>'
rx_sub
=
re
.
compile
(
'
\n\t
+
\n
+'
,
re
.
MULTILINE
|
re
.
DOTALL
)
def
execute
(
self
):
url
=
'http://'
+
self
.
access_profile
.
address
+
'/BrowseConfig'
...
...
@@ -44,4 +45,4 @@ class Script(noc.sa.script.Script):
config
=
self
.
rx_sub
.
sub
(
'
\n
'
,
config
)
config
=
config
.
replace
(
">
\n
</"
,
"></"
)
return
self
.
cleaned_config
(
config
)
\ No newline at end of file
return
config
\ No newline at end of file
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