ciena / ciena.saos10 / 1.7.0 / module / xml_diff return diff for a pair of xml inputs | "added in version" 1.1.0 of ciena.saos10" Authors: Jeff Groom (@jgroom33)ciena.saos10.xml_diff (1.7.0) — module
Install with ansible-galaxy collection install ciena.saos10:==1.7.0
collections: - name: ciena.saos10 version: 1.7.0
return diff for a pair of xml inputs
- name: Get config differences ciena.saos10.saos10_xmldiff: new: | <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <agg-global xmlns="urn:ietf:params:xml:ns:yang:ciena-ieee-lag"> <global-admin-state>enabled</global-admin-state> <marker-timeout xmlns="urn:ietf:params:xml:ns:yang:ciena-ext-lag">50</marker-timeout> </agg-global> <alarms xmlns="urn:ietf:params:xml:ns:yang:ietf-alarms"> <control> <max-alarm-status-changes>16</max-alarm-status-changes> <notify-status-changes>false</notify-status-changes> </control> </alarms> <system xmlns="http://openconfig.net/yang/system"> <config> <hostname>5162-1</hostname> <contact xmlns="http://www.ciena.com/ns/yang/ciena-system">Customer Support, Ciena</contact> <description xmlns="http://www.ciena.com/ns/yang/ciena-system">5162</description> <location xmlns="http://www.ciena.com/ns/yang/ciena-system">34.8908084,-40.820916</location> </config> </system> </config> old: | <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <agg-global xmlns="urn:ietf:params:xml:ns:yang:ciena-ieee-lag"> <global-admin-state>enabled</global-admin-state> <marker-timeout xmlns="urn:ietf:params:xml:ns:yang:ciena-ext-lag">50</marker-timeout> </agg-global> <alarms xmlns="urn:ietf:params:xml:ns:yang:ietf-alarms"> <control> <max-alarm-status-changes>16</max-alarm-status-changes> <notify-status-changes>false</notify-status-changes> </control> </alarms> <system xmlns="http://openconfig.net/yang/system"> <config> <hostname>5162-1</hostname> <contact xmlns="http://www.ciena.com/ns/yang/ciena-system">Customer Support, Ciena</contact> <description xmlns="http://www.ciena.com/ns/yang/ciena-system">5162</description> <location xmlns="http://www.ciena.com/ns/yang/ciena-system">Not Specified</location> </config> </system> </config>
new: description: xml string of config required: true type: str old: description: xml string of config required: true type: str
xmlstring: description: An XML string of the resulting differences returned: always sample: "<config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n <system xmlns=\"\ http://openconfig.net/yang/system\">\n <config>\n <hostname>5162-1</hostname>\n\ \ </config>\n </system>\n</config>\n" type: str