ansible/test/integration/targets/nxos_config/tests/common/save.yaml
David Newswanger 5df02dc288 nxos: merge nxapi/cli tests - config, bgp_neighbor, command, bgp_af (#28235)
* refactor nxos_bgp_af

* refactor nxos_bgp_neighbor

* refactor nxos_command

* refactor nxos_config

* removed accidental file
2017-08-21 20:45:25 +05:30

35 lines
624 B
YAML

---
- debug: msg="START {{ connection.transport }}/save.yaml"
- name: setup
nxos_config:
commands:
- no description
- no shutdown
parents:
- interface Ethernet2/5
match: none
provider: "{{ connection }}"
- name: save config
nxos_config:
save: true
provider: "{{ connection }}"
register: result
- assert:
that:
- "result.changed == true"
- name: save should always run
nxos_config:
save: true
provider: "{{ connection }}"
register: result
- assert:
that:
- "result.changed == true"
- debug: msg="END {{ connection.transport }}/save.yaml"