QuestionQ29

Device-Level Network Automation

Drag and drop the code from the bottom into the missing boxes in the Ansible playbook to configure an interface on a Cisco IOS XE device. Not every option is used.

Drag & Drop
- name: configure interface settings
  :
    lines:
      - ip address 172.31.1.1 255.255.255.0
      - no shutdown
    : interface GigabitEthernet1/0
Explanation

The ios_config module applies Cisco IOS configuration commands. The lines list contains the commands to send, and parents specifies the parent configuration context, here interface GigabitEthernet1/0.

Community Discussion

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