Skip to content
Discussion options

You must be logged in to vote

Probably something like:

# Clear out any data in the SSH channel
net_connect.read_channel()
# Set read_timeout to be long enough for the commit to complete plus some buffer
net_connect.send_command("commit", expect_string=r"switch11#", read_timeout=180)

Let me know if that works or if you are still seeing issues.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tmcclure-labs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants