Commit e2426949 authored by bee26's avatar bee26
Browse files

Merge branch 'cherry-pick-3ba160a0' into 'release-19.2'


See merge request noc/noc!2303
parents e66523f9 6e176e04
......@@ -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