Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry SSH command on IOError (Cisco IOS specific) #326

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

jerryaldrichiii
Copy link
Contributor

Cisco IOS occasionally closes the SSH stream prematurely while we are running commands to detect if we need to switch to the Cisco IOS transport.

This retries the SSH command if this is the case.

@jerryaldrichiii jerryaldrichiii force-pushed the ja/cisco-ios-race-condition branch 2 times, most recently from 08f7981 to a74b468 Compare July 26, 2018 00:52
Cisco IOS occasionally closes the SSH stream prematurely while we are
running commands to detect if we need to switch to the Cisco IOS
transport.

This retries the SSH command if this is the case.

Signed-off-by: Jerry Aldrich <[email protected]>
@jerryaldrichiii jerryaldrichiii force-pushed the ja/cisco-ios-race-condition branch from a74b468 to 5eb0f68 Compare July 26, 2018 00:57
Copy link
Contributor

@jquick jquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jerryaldrichiii. We should probably add a test for this but we can do that in another PR due to the rush on it.

@jquick jquick merged commit ee7311d into master Jul 26, 2018
@jquick jquick deleted the ja/cisco-ios-race-condition branch July 26, 2018 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants