300-910 · Question #12
An Interface on a router as a Layer 3 link has been configured to another device by updating an Ansible playbook that is executed via a CI/CD pipeline. The Ansible playbook was written to push the con
The correct answer is D. Add a pipeline step that captures and parses the show ip interface output so that the operational state can be referenced.. To validate that a router interface configured via an Ansible playbook is functioning correctly, an automated test should capture and parse the show ip interface output to reference its operational state.
Question
Options
- AAdd a pipeline step that runs the playbook a second type. If it does not modify the device on the second run, then the interface is correctly configured.
- BAutomated testing is already built-in because the playbook execution is successful only after Ansible validates that it applied the change.
- CAdd a pipeline step that captures and parses the packet flow for the interface.
- DAdd a pipeline step that captures and parses the show ip interface output so that the operational state can be referenced.
How the community answered
(31 responses)- A13% (4)
- B3% (1)
- C10% (3)
- D74% (23)
Why each option
To validate that a router interface configured via an Ansible playbook is functioning correctly, an automated test should capture and parse the `show ip interface` output to reference its operational state.
Running the playbook a second time only confirms idempotency (no changes on subsequent runs) but does not validate the operational functionality of the configured interface itself.
Ansible's successful execution only confirms the configuration was applied without errors, not that the interface is functionally operating as intended from a network perspective.
Capturing and parsing packet flow is complex and primarily validates data plane forwarding, not necessarily the correct Layer 3 operational state of the interface configuration itself.
Capturing and parsing the `show ip interface` command output allows checking key operational parameters such as the interface's line protocol status (up/down), IP address, and MTU, which directly indicate if the interface is correctly configured and functioning. This provides objective evidence of the configuration's effect on the device's operational state.
Concept tested: Ansible network automation, interface operational validation
Source: https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_command_module.html
Topics
Community Discussion
No community discussion yet for this question.