Fix rest of ios_interface issues (#32257)

This commit is contained in:
Ricardo Carrillo Cruz 2017-10-27 17:10:16 +02:00 committed by GitHub
parent 4b35793f62
commit 63a0083cf1

View file

@ -141,7 +141,7 @@
- name: Add interface aggregate
ios_interface:
aggregate:
- { name: "{{ test_interface }}", mtu: 1800, description: test-interface-1 }
- { name: "{{ test_interface }}", mtu: 2000, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 2000, description: test-interface-2 }
speed: 1000
state: present
@ -152,7 +152,7 @@
that:
- 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands'
- '"mtu 1800" in result.commands'
- '"mtu 2000" in result.commands'
- '"interface {{ test_interface2 }}" in result.commands'
- '"description test-interface-2" in result.commands'
- '"mtu 2000" in result.commands'
@ -160,7 +160,7 @@
- name: Add interface aggregate (idempotent)
ios_interface:
aggregate:
- { name: "{{ test_interface }}", mtu: 1800, description: test-interface-1 }
- { name: "{{ test_interface }}", mtu: 2000, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 2000, description: test-interface-2 }
speed: 1000
state: present
@ -174,8 +174,8 @@
- name: Disable interface aggregate
ios_interface:
aggregate:
- "name: {{ test_interface }}"
- "name: {{ test_interface2 }}"
- { name: "{{ test_interface }}" }
- { name: "{{ test_interface2 }}" }
enabled: False
state: present
authorize: yes
@ -192,8 +192,8 @@
- name: Enable interface aggregate
ios_interface:
aggregate:
- "name: {{ test_interface }}"
- "name: {{ test_interface2 }}"
- { name: "{{ test_interface }}" }
- { name: "{{ test_interface2 }}" }
enabled: True
state: present
authorize: yes