In the last lesson, the pipeline tested each change on a virtual copy of the network.
Two Cisco tools do this work: CML and pyATS.
Figure 1 - pyATS Tests the Virtual Network of CML
CML builds the virtual network.
pyATS tests the network.
Answer the question below
Which tool builds the virtual network?
CML means Cisco Modeling Labs.
It is a network simulation platform: it runs virtual routers and switches with real Cisco operating systems.
Figure 2 - Two Ways to Control CML
Web interface: you draw the network and start the devices.
REST API: a script or a pipeline creates the network and starts it.
The virtual network is separate from production, so a mistake does not affect the users.
Engineers also use CML to learn and to test a change before production.Answer the question below
CML runs ... routers and switches.
pyATS is a Python test framework from Cisco that connects to virtual or real devices and checks the network.
It has three parts:Testbed: a YAML file that lists the devices and how to connect to them.
Test script: a Python script that runs the checks, such as checking that an interface is up, and reports pass or fail.
Genie: a library that turns the output of a show command into structured data.

Figure 3 - Genie Turns Raw Text into Structured Data
Without Genie, a script must search for values in raw text, and a small change in the output breaks the script.
With structured data, the script reads a value by its key.Answer the question below
Which pyATS file lists the devices?
In a CI/CD pipeline, the two tools work together.
The pipeline starts the virtual network in CML, applies the change, and runs the pyATS tests.
Figure 4 - CML and pyATS in a CI/CD Pipeline
If all tests pass, the pipeline deploys the change to the real devices.
If a test fails, the pipeline stops, and production does not change.
In the next module, you will see the network models and the devices that your scripts manage.
Answer the question below
A pyATS test fails in the pipeline. Does the change reach production? Answer yes or no.