My task is actually generating the whole baseline config of multiple switches in my network and comparing to current running config.
I want to display only the config diffs for each host without the generated configs themselves (which are full configs of live network -> huge outputs).
I’m interested only what print_result(result) outputs for each host at the end - without the clutter of whole switches configs in between.
---- Loading Configuration on the device ** changed : True --------------------- INFO
@@ -42,7 +42,7 @@
- name dcs24_wan
- name dummychange_dcs24_wan
I tried to use .diff method but was getting empty string OR syntax error. Also standard example from docs used in analogy to my task - print(result[“spine00.cmh”].diff) - gave me empty string…