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