mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
8 years ago
|
---
|
||
7 years ago
|
- debug: msg="START {{ connection.transport }}/sysmtu.yaml"
|
||
8 years ago
|
|
||
|
- name: setup
|
||
|
nxos_config:
|
||
|
lines: no system jumbomtu
|
||
|
match: none
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
|
||
|
- name: configure system mtu
|
||
|
nxos_mtu:
|
||
|
sysmtu: 2000
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == true"
|
||
|
|
||
|
- name: verify system mtu
|
||
|
nxos_mtu:
|
||
|
sysmtu: 2000
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == false"
|
||
|
|
||
8 years ago
|
- name: configure invalid (odd) system mtu
|
||
8 years ago
|
nxos_mtu:
|
||
|
sysmtu: 2001
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
8 years ago
|
ignore_errors: yes
|
||
8 years ago
|
|
||
|
- assert:
|
||
|
that:
|
||
8 years ago
|
- "result.failed == true"
|
||
8 years ago
|
|
||
8 years ago
|
- name: configure invalid (large) system mtu setting
|
||
8 years ago
|
nxos_mtu:
|
||
8 years ago
|
sysmtu: 10000
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
ignore_errors: yes
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.failed == true"
|
||
|
|
||
|
- name: teardown
|
||
|
nxos_config:
|
||
|
lines: no system jumbomtu
|
||
|
match: none
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
|
||
7 years ago
|
- debug: msg="END {{ connection.transport }}/sysmtu.yaml"
|