Skip to content

Commit 1a32dba

Browse files
committed
nokia isam check_config_mode improvement
1 parent f88faba commit 1a32dba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

netmiko/nokia/nokia_isam.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ def cleanup(self, command: str = "logout") -> None:
4444

4545
def check_config_mode(
4646
self,
47-
check_string: str = "configure#",
48-
pattern: str = "",
47+
check_string: str = ">configure",
48+
pattern: str = "#",
4949
force_regex: bool = False,
5050
) -> bool:
5151
"""Use equivalent enable method."""
52-
return super().check_config_mode(check_string=check_string)
52+
return super().check_config_mode(
53+
check_string=check_string, pattern=pattern, force_regex=force_regex
54+
)
5355

5456
def config_mode(
5557
self, config_command: str = "configure", pattern: str = "", re_flags: int = 0

0 commit comments

Comments
 (0)