Skip to content

Commit

Permalink
Tplink read issue in session_preparation() (#3215)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominique Rousseau <d.rousseau@nnx.com>
  • Loading branch information
ktbyers and drousseau authored May 19, 2023
1 parent e07b787 commit 47820f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions netmiko/tplink/tplink_jetstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ def __init__(self, **kwargs: Any) -> None:
return super().__init__(**kwargs)

def session_preparation(self) -> None:
"""
Prepare the session after the connection has been established.
"""
delay_factor = self.select_delay_factor(delay_factor=0)
time.sleep(0.3 * delay_factor)
self.clear_buffer()
self._test_channel_read(pattern=r"[>#]")
self.set_base_prompt()
self.enable()
self.set_base_prompt()
self.disable_paging()
# Clear the read buffer
time.sleep(0.3 * self.global_delay_factor)
Expand Down

0 comments on commit 47820f7

Please sign in to comment.