2017-02-26 15:42:41 +01:00
|
|
|
---
|
|
|
|
- debug: msg="START cli/sysmtu.yaml"
|
|
|
|
|
|
|
|
- name: setup
|
|
|
|
nxos_config:
|
|
|
|
lines: no system jumbomtu
|
|
|
|
match: none
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
- name: configure system mtu
|
|
|
|
nxos_mtu:
|
|
|
|
sysmtu: 2000
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
|
|
|
|
- name: verify system mtu
|
|
|
|
nxos_mtu:
|
|
|
|
sysmtu: 2000
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
|
2017-04-06 18:26:17 +02:00
|
|
|
- name: configure invalid (odd) system mtu
|
2017-02-26 15:42:41 +01:00
|
|
|
nxos_mtu:
|
|
|
|
sysmtu: 2001
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
register: result
|
2017-04-06 18:26:17 +02:00
|
|
|
ignore_errors: yes
|
2017-02-26 15:42:41 +01:00
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
2017-04-06 18:26:17 +02:00
|
|
|
- "result.failed == true"
|
2017-02-26 15:42:41 +01:00
|
|
|
|
2017-04-06 18:26:17 +02:00
|
|
|
- name: configure invalid (large) system mtu setting
|
2017-02-26 15:42:41 +01:00
|
|
|
nxos_mtu:
|
2017-04-06 18:26:17 +02:00
|
|
|
sysmtu: 10000
|
2017-02-26 15:42:41 +01:00
|
|
|
provider: "{{ cli }}"
|
|
|
|
register: result
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.failed == true"
|
|
|
|
|
|
|
|
- name: teardown
|
|
|
|
nxos_config:
|
|
|
|
lines: no system jumbomtu
|
|
|
|
match: none
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
|
|
|
- debug: msg="END cli/sysmtu.yaml"
|