Skip to content

Commit

Permalink
Use sane mtu values on ios_interface tests (ansible#32180)
Browse files Browse the repository at this point in the history
Anything lower than 1500 won't work on CSR nodes.
  • Loading branch information
rcarrillocruz authored Oct 26, 2017
1 parent c07b309 commit b2dd546
Showing 1 changed file with 12 additions and 12 deletions.
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 @@ -28,7 +28,7 @@
name: "{{ test_interface }}"
description: test-interface-1
speed: 1000
mtu: 256
mtu: 1500
state: present
authorize: yes
register: result
Expand Down Expand Up @@ -63,7 +63,7 @@
ios_interface:
name: "{{ test_interface }}"
description: test-interface
mtu: 512
mtu: 1600
state: present
authorize: yes
register: result
Expand All @@ -73,13 +73,13 @@
- 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands'
- '"description test-interface" in result.commands'
- '"mtu 512" in result.commands'
- '"mtu 1600" in result.commands'

- name: Change interface parameters
ios_interface:
name: "{{ test_interface }}"
description: test-interface-1
mtu: 256
mtu: 1500
state: present
authorize: yes
register: result
Expand All @@ -89,7 +89,7 @@
- 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands'
- '"description test-interface-1" in result.commands'
- '"mtu 256" in result.commands'
- '"mtu 1500" in result.commands'

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

- name: Add interface aggregate
ios_interface:
aggregate:
- "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }"
- "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }"
- { name: "{{ test_interface }}", mtu: 1500, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 1600, description: test-interface-2 }
speed: 1000
state: present
authorize: yes
Expand All @@ -142,16 +142,16 @@
- 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands'
- '"description test-interface-1" in result.commands'
- '"mtu 256" in result.commands'
- '"mtu 1500" in result.commands'
- '"interface {{ test_interface2 }}" in result.commands'
- '"description test-interface-2" in result.commands'
- '"mtu 516" in result.commands'
- '"mtu 1600" in result.commands'

- name: Add interface aggregate (idempotent)
ios_interface:
aggregate:
- "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }"
- "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }"
- { name: "{{ test_interface }}", mtu: 1500, description: test-interface-1 }
- { name: "{{ test_interface2 }}", mtu: 1600, description: test-interface-2 }
speed: 1000
state: present
authorize: yes
Expand Down

0 comments on commit b2dd546

Please sign in to comment.