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
noc
noc
Commits
68b5ac30
Commit
68b5ac30
authored
Jun 16, 2021
by
bee26
Browse files
Merge branch 'cherry-pick-
2fe56067
' into 'release-20.4'
release-20.4:Backport!5451 See merge request
!5457
parents
804916c3
d9c90db1
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/SKS/SKS/get_config.py
View file @
68b5ac30
# ---------------------------------------------------------------------
# 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
:
...
...
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