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
Fix diff_ignore_lines option issue for candidate configuration #45201
Conversation
* diff_ignore_lines option is to handle the running config fetch from remote host and ignore the lines that are auto updated eg: commit time and date * This option should not be used while processing candidate (input) configuration
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.
Changes looks good. But we might need a good test case to cover this option. There seems to be one test case in test/integration/targets/ios_smoke/tests/cli/common_config.yaml but it does not check candidate config in result.updates. and probably configuring hostname might not be good config.
Can we modify it to catch this scenario ?
@gdpak Added test cases in check mode for ios_config. In the first test case candidate and running config is the same hence |
…le#45201) * Fix diff_ignore_lines option issue for candidate configuration * diff_ignore_lines option is to handle the running config fetch from remote host and ignore the lines that are auto updated eg: commit time and date * This option should not be used while processing candidate (input) configuration * Fix review comment (cherry picked from commit a3c137c)
* Fix diff_ignore_lines option issue for candidate configuration * diff_ignore_lines option is to handle the running config fetch from remote host and ignore the lines that are auto updated eg: commit time and date * This option should not be used while processing candidate (input) configuration * Fix review comment (cherry picked from commit a3c137c)
SUMMARY
remote host and ignore the lines that are auto-updated eg: commit time and date
ISSUE TYPE
COMPONENT NAME
{eos,ios,nxos,iosxr}_config
ANSIBLE VERSION
ADDITIONAL INFORMATION