napalm_diff_yang ===================== Create two YANG objects from dictionaries and runs mehtod Parameters ---------- .. raw:: html
Parameter Required Default Choices Description
first True N/A N/A Dictionary with the data to load into the first YANG object
models True N/A N/A List of models to parse
second True N/A N/A Dictionary with the data to load into the second YANG object
Examples -------- .. code-block:: yaml - napalm_diff_yang: first: "{{ candidate.yang_model }}" second: "{{ running_config.yang_model }}" models: - models.openconfig_interfaces register: diff Return ------ .. raw:: html
Name Description Returned Type Sample
diff Same output as the method napalm_yang.utils.diff always dict { "interfaces": { "interface": { "both": { "Port-Channel1": { "config": { "description": { "first": "blah", "second": "Asadasd" } } } } } }