Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Oct 18, 2023
2 parents f1d5fcb + a7dc248 commit 99d2ade
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions netmiko/huawei/huawei.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ def special_login_handler(self, delay_factor: float = 1.0) -> None:
self.write_channel("N" + self.RETURN)
self.read_until_pattern(pattern=self.prompt_pattern)

# Huawei prompts for secure the configuration before displaying the initial base prompt.
if re.search(
r"security\srisks\sin\sthe\sconfiguration\sfile.*\[y\/n\]", data, flags=re.I
):
self.send_command("Y", expect_string=r"(?i)continue.*\[y\/n\]")
self.send_command(
"Y", expect_string=r"saved\ssuccessfully", read_timeout=60
)
self.read_until_pattern(pattern=self.prompt_pattern)


class HuaweiTelnet(HuaweiBase):
"""Huawei Telnet driver."""
Expand Down

0 comments on commit 99d2ade

Please sign in to comment.