Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change MTU values on ios_interface tests #32251

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions test/integration/targets/ios_interface/tests/cli/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
name: "{{ test_interface }}"
description: test-interface-1
speed: 1000
mtu: 1500
mtu: 1800
state: present
authorize: yes
register: result
Expand Down Expand Up @@ -74,7 +74,7 @@
ios_interface:
name: "{{ test_interface }}"
description: test-interface
mtu: 1600
mtu: 2000
state: present
authorize: yes
register: result
Expand All @@ -84,13 +84,13 @@
- 'result.changed == true'
- '"interface {{ 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
ios_interface:
name: "{{ test_interface }}"
description: test-interface-1
mtu: 1500
mtu: 1800
state: present
authorize: yes
register: result
Expand All @@ -100,7 +100,7 @@
- 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands'
- '"description test-interface-1" in result.commands'
- '"mtu 1500" in result.commands'
- '"mtu 1800" in result.commands'

- name: Disable interface
ios_interface:
Expand Down Expand Up @@ -133,16 +133,16 @@
name: "{{ test_interface2 }}"
description: test-interface-initial
speed: 1000
mtu: 1500
mtu: 1800
state: present
authorize: yes
register: result

- name: Add interface aggregate
ios_interface:
aggregate:
- { name: "{{ test_interface }}", mtu: 1500, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 1600, description: test-interface-2 }
- { name: "{{ test_interface }}", mtu: 1800, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 2000, description: test-interface-2 }
speed: 1000
state: present
authorize: yes
Expand All @@ -152,16 +152,16 @@
that:
- 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands'
- '"mtu 1500" in result.commands'
- '"mtu 1800" in result.commands'
- '"interface {{ test_interface2 }}" 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)
ios_interface:
aggregate:
- { name: "{{ test_interface }}", mtu: 1500, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 1600, description: test-interface-2 }
- { name: "{{ test_interface }}", mtu: 1800, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 2000, description: test-interface-2 }
speed: 1000
state: present
authorize: yes
Expand Down