mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 15:41:22 -07:00
Change MTU values on ios_interface tests (#32251)
If setting 1500, we don't have 1500 in config as that's default value. That causes issues on asserts.
This commit is contained in:
parent
033a6a1560
commit
cd76e987f3
1 changed files with 12 additions and 12 deletions
|
@ -39,7 +39,7 @@
|
||||||
name: "{{ test_interface }}"
|
name: "{{ test_interface }}"
|
||||||
description: test-interface-1
|
description: test-interface-1
|
||||||
speed: 1000
|
speed: 1000
|
||||||
mtu: 1500
|
mtu: 1800
|
||||||
state: present
|
state: present
|
||||||
authorize: yes
|
authorize: yes
|
||||||
register: result
|
register: result
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
ios_interface:
|
ios_interface:
|
||||||
name: "{{ test_interface }}"
|
name: "{{ test_interface }}"
|
||||||
description: test-interface
|
description: test-interface
|
||||||
mtu: 1600
|
mtu: 2000
|
||||||
state: present
|
state: present
|
||||||
authorize: yes
|
authorize: yes
|
||||||
register: result
|
register: result
|
||||||
|
@ -84,13 +84,13 @@
|
||||||
- 'result.changed == true'
|
- 'result.changed == true'
|
||||||
- '"interface {{ test_interface }}" in result.commands'
|
- '"interface {{ test_interface }}" in result.commands'
|
||||||
- '"description test-interface" in result.commands'
|
- '"description test-interface" in result.commands'
|
||||||
- '"mtu 1600" in result.commands'
|
- '"mtu 2000" in result.commands'
|
||||||
|
|
||||||
- name: Change interface parameters
|
- name: Change interface parameters
|
||||||
ios_interface:
|
ios_interface:
|
||||||
name: "{{ test_interface }}"
|
name: "{{ test_interface }}"
|
||||||
description: test-interface-1
|
description: test-interface-1
|
||||||
mtu: 1500
|
mtu: 1800
|
||||||
state: present
|
state: present
|
||||||
authorize: yes
|
authorize: yes
|
||||||
register: result
|
register: result
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
- 'result.changed == true'
|
- 'result.changed == true'
|
||||||
- '"interface {{ test_interface }}" in result.commands'
|
- '"interface {{ test_interface }}" in result.commands'
|
||||||
- '"description test-interface-1" in result.commands'
|
- '"description test-interface-1" in result.commands'
|
||||||
- '"mtu 1500" in result.commands'
|
- '"mtu 1800" in result.commands'
|
||||||
|
|
||||||
- name: Disable interface
|
- name: Disable interface
|
||||||
ios_interface:
|
ios_interface:
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
name: "{{ test_interface2 }}"
|
name: "{{ test_interface2 }}"
|
||||||
description: test-interface-initial
|
description: test-interface-initial
|
||||||
speed: 1000
|
speed: 1000
|
||||||
mtu: 1500
|
mtu: 1800
|
||||||
state: present
|
state: present
|
||||||
authorize: yes
|
authorize: yes
|
||||||
register: result
|
register: result
|
||||||
|
@ -141,8 +141,8 @@
|
||||||
- name: Add interface aggregate
|
- name: Add interface aggregate
|
||||||
ios_interface:
|
ios_interface:
|
||||||
aggregate:
|
aggregate:
|
||||||
- { name: "{{ test_interface }}", mtu: 1500, description: test-interface-1 }
|
- { name: "{{ test_interface }}", mtu: 1800, description: test-interface-1 }
|
||||||
- { name: "{{ test_interface2 }}", mtu: 1600, description: test-interface-2 }
|
- { name: "{{ test_interface2 }}", mtu: 2000, description: test-interface-2 }
|
||||||
speed: 1000
|
speed: 1000
|
||||||
state: present
|
state: present
|
||||||
authorize: yes
|
authorize: yes
|
||||||
|
@ -152,16 +152,16 @@
|
||||||
that:
|
that:
|
||||||
- 'result.changed == true'
|
- 'result.changed == true'
|
||||||
- '"interface {{ test_interface }}" in result.commands'
|
- '"interface {{ test_interface }}" in result.commands'
|
||||||
- '"mtu 1500" in result.commands'
|
- '"mtu 1800" 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 1600" in result.commands'
|
- '"mtu 2000" in result.commands'
|
||||||
|
|
||||||
- name: Add interface aggregate (idempotent)
|
- name: Add interface aggregate (idempotent)
|
||||||
ios_interface:
|
ios_interface:
|
||||||
aggregate:
|
aggregate:
|
||||||
- { name: "{{ test_interface }}", mtu: 1500, description: test-interface-1 }
|
- { name: "{{ test_interface }}", mtu: 1800, description: test-interface-1 }
|
||||||
- { name: "{{ test_interface2 }}", mtu: 1600, description: test-interface-2 }
|
- { name: "{{ test_interface2 }}", mtu: 2000, description: test-interface-2 }
|
||||||
speed: 1000
|
speed: 1000
|
||||||
state: present
|
state: present
|
||||||
authorize: yes
|
authorize: yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue