200-901 Question 144
Select 3You are tasked with verifying the operational state of a network topology in a lab environment using pyATS. Which of the following steps are required to successfully execute and validate a test case using pyATS?
- A
Create a testbed YAML file to define the network topology and device connections.
- B
Write a test script in Python that uses pyATS libraries to interact with the devices.
- C
Manually log into each device to verify the test results after script execution.
- D
Run the test using the 'pyats run job' command along with your job file.
- E
Configure the testbed file dynamically within the script using the pyATS Genie parser.
Show answer and explanation
Correct answers: A, B, D
Explanation
To validate a network topology using pyATS, you need to define the network topology and devices in a testbed YAML file, write a Python test script leveraging pyATS libraries, and execute the test using the 'pyats run job' command. These steps ensure the process is automated and aligned with best practices for network testing with pyATS.
- A. Correct.
Correct. A testbed YAML file is essential in pyATS to define the network topology and specify device details like IP addresses, credentials, and connection methods.
- B. Correct.
Correct. Writing a test script that uses pyATS libraries is necessary to automate interactions with the devices and execute test cases.
- C. Incorrect.
Incorrect. One of the key advantages of pyATS is automation, so manually logging into devices to verify results is not required.
- D. Correct.
Correct. The 'pyats run job' command is used to execute test jobs that include test scripts and testbed configurations.
- E. Incorrect.
Incorrect. While pyATS Genie parsers can be used to parse device outputs, the testbed file is typically created as a separate YAML file and not dynamically configured within the script.