-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
ios_config: Handle confirmation prompt after version change (#57745) #57749
Conversation
@jrunu, just so you are aware we have a dedicated Working Group for network. |
The test
The test
The test
The test
|
Build succeeded (third-party-check pipeline).
|
Do you have a way to reproduce this, on an already configured ios device? If so, we can write a test here and add it to our integration test suite. |
I played a bit in the lab and wasn't able to trigger this without performing an actual upgrade i.e. booting from one image into another. (I had ideas about messing with the version in the startup-config and reloading). So basically:
The versions in my particular case were 15.4-M3(M8) to 15.6-M3(M6a). My resident cisco expert told me that this is an edge case. This warning isn't trigger with all minor release (not bugfix releases) upgrades, which I originally thought. There was at some point a breaking change in the configuration syntax. This is what triggers the warning. However I can't tell you the specific release. And for completeness sake, this was performed on a C886 device. |
Thanks for the detailed write up, that is what I was expecting. Today we don't do in-place upgrades of ios appliances for testing (in theory is something we could do). Lets wait until others review, to see if they have ideas how we could test. |
recheck |
run_commands(module, 'copy running-config startup-config\r') | ||
try: | ||
get_connection(module).send_command(command='copy running-config startup-config\r', | ||
prompt='Overwrite the previous NVRAM configuration?[confirm]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You almost had it right the first time, but you needed to use a raw string instead (or double escape, but this is why we have raw strings)
prompt='Overwrite the previous NVRAM configuration?[confirm]', | |
prompt=r'Overwrite the previous NVRAM configuration\?\[confirm\]', |
Build succeeded (third-party-check pipeline).
|
Thank you very much for your interest in Ansible. This plugin is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/cisco.ios IRC: #ansible-network on irc.freenode.net |
SUMMARY
Handle "Warning different version" prompt when saving config to Non-Volatile RAM on Cisco iOS devices.
Fixes #57745
ISSUE TYPE
COMPONENT NAME
ios_config
ADDITIONAL INFORMATION
First time contributer to ansible. Has no idea what he's doing.