QuestionQ34

Infrastructure and Automation

Question Image

Refer to the exhibit. The displayed YAML uses the ios_vrf module.

As part of the Ansible playbook workflow, what occurs when this task runs?

  • A VRFs not defined in the host_vars file are removed from the device.
  • B VRFs not defined in the host_vars file are added to the device, and any other VRFs on the device remain.
  • C VRFs defined in the host_vars file are removed from the device.
  • D VRFs are added to the device from the host_vars file, and any other VRFs on the device are removed.
Explanation

With state: present, the ios_vrf module ensures the VRFs supplied in vrfs are configured. Setting purge: yes makes the supplied VRF collection authoritative, removing previously configured device VRFs that are not included in that collection.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!