
How to Perform a Diff within Cisco Genie PyATS
pyATS Tip:
Use Genie Diff to compare structured data and easily identify differences. It works with dictionaries, including structured output from Genie Parse and Genie Learn.
Below is an example of using Genie Diff to compare the results of a Genie Parse command:
from genie.utils.diff import Diff
from