PyATS is the core frame work and Genie I is the PyATS standard library. Genie is the pyATS SDk which contains all the tools needed Network test Automation.
Genie Command Line¶
Genie
CLI is a powerful linux-based command-line utility offering Genie
Python functionality directly from a linux terminal.
Genie Learn¶
Genie learn
is a powerful tool that can be extensively used to accomplish stateful network validation across multiple devices, with one linux command.
pyATS Create Testbed¶
pyats create testbed
provide an easy way to create a testbed yaml file.
pyATS create testbed interactive --output testbednew.yaml
Lets verify the testbedfile which we created.

Genie Learn¶
Genie learn
is a powerful tool that can be extensively used to accomplish stateful network validation across multiple devices, with one linux command.
Let’s take an initial snapshot of the interface using genie learn interface for the Nexus switch and save it on folder interface
genie learn interface --testbed-file testbednew.yaml --output interface1

To make some changes on nexus interface lets add another loopback interface 2 with ip add 20.20.20.2/24

Lets take another snapshot of interface and save it on folder interface1

PyATS diff
Using pyATS diff function, will compare both snapshots.

Since there exist a difference, pyATS created a file which contains the difference of both snapshots.
If you open the diff file, you can see the difference with + sign.

What if there is no change, lets remove the loopback interface 2 and take another snapshot.Now when we run the diff command we got identical.
