-
Notifications
You must be signed in to change notification settings - Fork 64
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
No --diff output from network resource modules #57
Comments
We have added implementation of --diff output to our list of pending features and will add this functionality in the near future. |
@dataolle Could you clarify what your expectations are for the output? Using the data already available in our modules, when the user executes a playbook with both --check and --diff parameters specified, I could return a "prepared" diff. The "prepared" diff would be a JSON representation of the commands to be issued. See the output below based on your example.
|
Sorry for the very late reply. |
We agree that some context is needed in the diff output to enable clear determination of where the change was made. Attached is a document describing three output format options we are considering for our implementation. Please let us know your thoughts and preferences on these options or any other alternatives that you think would be preferable. |
This issue has been addressed by the merging of "#279" to provide the global "check and diff" mode functionality for use by individual resource modules, and by numerous follow-on merges to provide the "check" and "diff" mode functionality for individual resource modules and to improve the readability of the "diff" output. This initial functionality is being provided for the 2.3.0 release of the Dell enterprise_sonic Ansible collection, with "check and diff" mode support for any remaining resource modules (BGP modules) planned for the 2.4.0 release. |
This issue has been addressed by the merging of "#279" to provide the global "check and diff" mode functionality for use by individual resource modules, and by numerous follow-on merges to provide the "check" and "diff" mode functionality for individual resource modules and to improve the readability of the "diff" output. This initial functionality is being provided for the 2.4.0 release of the Dell enterprise_sonic Ansible collection, with "check and diff" mode support for any remaining resource modules (BGP modules) planned for the 3.0.0 release. |
SUMMARY
Implement "--diff" output in network resource modules such as sonic_interfaces, sonic_vlans etc etc.
This works with other vendors network resource modules, and also dellemc.os10 implements diff output.
I see the data is there when running in verbose mode (before and after) so i guess the data for ansible-playbook to display the diff is not implemented in the dellemc.enterprise_sonic network resource modules.
ISSUE TYPE
COMPONENT NAME
implement diff mode for sonic network resource modules.
ADDITIONAL INFORMATION
It would be grate for sanity check in combination with "check mode" to see what effective changes to a device will be compared to the current running configuration.
Using this variable data:
Run this command
ansible-playbook -i inventory.yaml playbook.yaml
Change variable to this
And run this:
ansible-playbook -i inventory.yaml playbook.yaml --check --diff
I would expact to return the diff (interface description for Eth1/51).
This is what happens with other network resource modules and i would expect the enterprise sonic ones to do the same.
The text was updated successfully, but these errors were encountered: