Commit 8447b574 authored by Kirill's avatar Kirill Committed by Белоус Кирилл Сергеевич
Browse files

fix HP.Comware get_config for Release 2209P13

parent 578329c6
......@@ -15,6 +15,11 @@ class Script(BaseScript):
name = "HP.Comware.get_config"
interface = IGetConfig
def to_reuse_cli_session(self):
if self.is_bad_release:
return False
return self.reuse_cli_session
def execute_cli(self, policy="r"):
assert policy in ("r", "s")
self.cli("undo terminal monitor")
......@@ -27,6 +27,10 @@ class Profile(BaseProfile):
spaces_rx = re.compile(r"^\s{42}|^\s{16}", re.DOTALL | re.MULTILINE)
matchers = {
"is_bad_release": {"version": {"$regex": r"2209P13"}},
def clean_spaces(self, config):
config = self.spaces_rx.sub("", config)
return 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