summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_interfaces/tests/cli/_populate.yaml
blob: 0a44fa45fcbd07949c21380b89aed651b77338cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Setup
  network.cli.cli_config:
    config: "{{ lines }}"
  vars:
    lines: |
      set interfaces ethernet "{{ intf }}" description 'Configured by Ansible'
      set interfaces ethernet "{{ intf }}" speed 'auto'
      set interfaces ethernet "{{ intf }}" duplex 'auto'
      set interfaces ethernet "{{ intf }}" mtu '1500'
      set interfaces ethernet "{{ intf }}" vif 200
      set interfaces ethernet "{{ intf }}" vif 200 description 'VIF - 200'
  loop:
    - eth1
    - eth2
  loop_control:
    loop_var: intf