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
0e1f6a7c
Commit
0e1f6a7c
authored
Jun 11, 2021
by
Dmitry Lukhtionov
Browse files
Fix SKS.SKS.get_config script
parent
5c46d1c3
Pipeline
#32155
passed with stages
in 15 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/SKS/SKS/get_config.py
View file @
0e1f6a7c
# ---------------------------------------------------------------------
# SKS.SKS.get_config
# ---------------------------------------------------------------------
# Copyright (C) 2007-201
9
The NOC Project
# Copyright (C) 2007-20
2
1 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
...
...
@@ -17,7 +17,10 @@ class Script(BaseScript):
def
execute_cli
(
self
,
policy
=
"r"
):
assert
policy
in
(
"r"
,
"s"
)
if
policy
==
"s"
:
config
=
self
.
cli
(
"show startup-config"
)
try
:
config
=
self
.
cli
(
"show startup-config"
)
except
self
.
CLISyntaxError
:
config
=
self
.
cli
(
"show configuration"
)
else
:
config
=
self
.
cli
(
"show running-config"
)
try
:
...
...
bee26
@bee26
mentioned in commit
d9c90db1
·
Jun 15, 2021
mentioned in commit
d9c90db1
mentioned in commit d9c90db16c541bab7ba6b201cee8f8941b5ac16f
Toggle commit list
bee26
@bee26
mentioned in merge request
!5457 (merged)
·
Jun 15, 2021
mentioned in merge request
!5457 (merged)
mentioned in merge request !5457
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