ansible/test/integration/targets/nxos_config/tests/common/defaults.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

42 lines
850 B
YAML

---
- debug: msg="START {{ connection.transport }}/defaults.yaml"
- name: setup
nxos_config:
commands:
- no description
- shutdown
parents:
- interface Ethernet2/5
match: none
provider: "{{ connection }}"
- name: configure device with defaults included
nxos_config:
src: defaults/config.j2
defaults: yes
provider: "{{ connection }}"
register: result
- debug: var=result
- assert:
that:
- "result.changed == true"
- "result.updates is defined"
- name: check device with defaults included
nxos_config:
src: defaults/config.j2
defaults: yes
provider: "{{ connection }}"
register: result
- debug: var=result
- assert:
that:
- "result.changed == false"
- "result.updates is not defined"
- debug: msg="END {{ connection.transport }}/defaults.yaml"