Skip to content

Commit

Permalink
Extending amount of time that IOS commit_config is allowed (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Oct 14, 2022
1 parent d9f9f0d commit 7ecb9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ def _commit_handler(self, cmd):
# Handle special username removal pattern
pattern2 = r".*all username.*confirm"
patterns = rf"(?:{pattern1}|{pattern2})"
output = self.device.send_command(cmd, expect_string=patterns)
output = self.device.send_command(cmd, expect_string=patterns, read_timeout=90)
loop_count = 50
new_output = output
for i in range(loop_count):
for _ in range(loop_count):
if re.search(pattern2, new_output):
# Send confirmation if username removal
new_output = self.device.send_command_timing(
Expand Down

0 comments on commit 7ecb9b9

Please sign in to comment.