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

Cisco nxos proxy prompt fix #48378

merged 3 commits into from Jun 30, 2018

Cisco nxos proxy prompt fix #48378

merged 3 commits into from Jun 30, 2018


Copy link

@cro cro commented Jun 29, 2018

What does this PR do?

Makes it easier to execute commands that don't return a standard prompt--for example, firmware upgrades will ask for confirmation. The current setup just looks for <hostname>#.

What issues does this PR fix or reference?


Previous Behavior

The proxy would not recognize prompts other than <hostname>#

New Behavior

A new config option for this proxy was added called prompt_regex. This will be used in place of prompt_name if present. This is treated as a Python regular expression, and thus allows description of any prompt that can take the form of a regexp.

This new parameter is documented in the header docstring.

Tests written?


Commits signed with GPG?


Copy link

@cro looks like pylint doesn't like the \ in the docstring

probably just needs to make it a raw string with r

@rallytime rallytime merged commit ea90ff7 into saltstack:develop Jun 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants