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
merged 3 commits into from Jun 30, 2018
Merged

Cisco nxos proxy prompt fix #48378

merged 3 commits into from Jun 30, 2018

Conversation

cro
Copy link
Contributor

@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?

#48366

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 nxos.py header docstring.

Tests written?

No

Commits signed with GPG?

Yes

@gtmanfred
Copy link
Contributor

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

probably just needs to make it a raw string with r

https://jenkins.saltstack.com/job/PR/job/salt-pr-lint-n/23021/violations/

@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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants