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

fix HP.Comware get_interfaces for Release 2209Pxx

parent 8447b574
......@@ -108,6 +108,16 @@ class Script(BaseScript):
else:
yield b
def to_reuse_cli_session(self):
if self.is_bad_release:
return False
return self.reuse_cli_session
def to_keep_cli_session(self):
if self.is_bad_release:
return False
return self.keep_cli_session
def execute_cli(self, **kwargs):
isis = self.get_isis_interfaces()
......
......@@ -28,7 +28,7 @@ class Profile(BaseProfile):
spaces_rx = re.compile(r"^\s{42}|^\s{16}", re.DOTALL | re.MULTILINE)
matchers = {
"is_bad_release": {"version": {"$regex": r"2209P13"}},
"is_bad_release": {"version": {"$regex": r"2209P"}},
}
def clean_spaces(self, 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