Commit 6e176e04 authored by bee26's avatar bee26
Browse files

Merge branch 'eltex_mes5448_config' into 'master'

Fix Eltex.MES5448.get_config script

See merge request noc/noc!2290

(cherry picked from commit 3ba160a0)

0603fc2a Fix Eltex.MES5448.get_config script
parent e66523f9
......@@ -15,7 +15,11 @@ class Script(BaseScript):
name = "Eltex.MES5448.get_config"
interface = IGetConfig
def execute_cli(self, **kwargs):
config = self.cli("show running-config")
def execute_cli(self, policy="r"):
assert policy in ("r", "s")
if policy == "s":
config = self.cli("show startup-config")
config = self.cli("show running-config")
config = self.strip_first_lines(config, 10)
return self.cleaned_config(config)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment