Junos/Cisco | Compare outputs

13 views
Skip to first unread message

intel...@gmail.com

unread,
Mar 7, 2019, 12:43:20 PM3/7/19
to Ansible Project
I would like to add some functionality to my Ansible playbooks that does the following; Before making any changes (at beginning of playbook) it runs a number of commands and stores the output of the commands in files. Then when it's finished running, it runs the same commands again and stores to a second set of files. At the end, it then compares those files and if there are any differences, show the differences. The info I would like to gather, are things like;


bgp neighbours 

ipsec vpn peers

ospf neighbours

routing table


My logic is that this would be a quick test to make sure nothing has been impacted by the changes in the Ansible playbook. 


Does anybody know if this has been done before and if there are example I can copy? If not, any ideas how it can be done?


Thanks

vincent collier

unread,
Mar 7, 2019, 9:01:35 PM3/7/19
to Ansible Project

intel...@gmail.com

unread,
Mar 8, 2019, 2:57:10 AM3/8/19
to Ansible Project
Just what I was looking for, thank you.
Reply all
Reply to author
Forward
0 new messages