200-901 Question 145
Select 3You are tasked with automating the testing of a network configuration change in a lab environment. You decide to use pyATS for this purpose. Which of the following steps are required to validate the network's state before and after the change using pyATS?
- A
Capture the initial network state using a pyATS testbed file and save it as a baseline.
- B
Use pyATS Genie parser to extract and validate operational data, such as interface status and routing tables.
- C
Implement the configuration change directly in the testbed file to simulate the change.
- D
Write a pyATS script to compare the pre-change baseline to the post-change network state.
- E
Deploy the network change using pyATS jobs and parse logs for errors.
Show answer and explanation
Correct answers: A, B, D
Explanation
To validate the network's state before and after a change using pyATS, you need to capture the initial state, use tools like the Genie parser to collect and validate data, and compare the pre- and post-change states using a script. This ensures a structured and automated approach to verifying network changes. Configuration deployment and testing are separate processes in this workflow.
- A. Correct.
Correct: Capturing the initial network state is a critical first step in validating the network's behavior before and after the configuration change.
- B. Correct.
Correct: The Genie parser is an integral part of pyATS, allowing you to extract and validate operational data from devices.
- C. Incorrect.
Incorrect: Configuration changes are not made directly in the testbed file. The testbed file is used for device inventory and connection details.
- D. Correct.
Correct: Writing a script to compare the pre-change and post-change states is essential for identifying discrepancies caused by the changes.
- E. Incorrect.
Incorrect: pyATS itself does not deploy configuration changes, though it can help validate and parse network states before and after changes.