iosxr tests: Initial work for 2.3 (#20883)

Ensure a loopback device exists for testing
Remove provider:
Default is to run task on Network, device, use delegate_to: localhost for local tasks.
This commit is contained in:
John R Barker 2017-01-31 19:10:14 +00:00 committed by GitHub
commit 553b6151ad
38 changed files with 30 additions and 70 deletions

View file

@ -6,7 +6,6 @@
commands:
- no interface Loopback999
match: none
provider: "{{ cli }}"
ignore_errors: yes
- name: collect any backup files
@ -26,7 +25,6 @@
iosxr_template:
src: basic/config.j2
backup: yes
provider: "{{ cli }}"
register: result
- assert:
@ -50,6 +48,5 @@
commands:
- no interface Loopback999
match: none
provider: "{{ cli }}"
- debug: msg="END cli/backup.yaml"

View file

@ -6,12 +6,10 @@
commands:
- no interface Loopback999
match: none
provider: "{{ cli }}"
- name: configure device with config
iosxr_template:
src: basic/config.j2
provider: "{{ cli }}"
register: result
- assert:
@ -22,7 +20,6 @@
- name: check device with config
iosxr_template:
src: basic/config.j2
provider: "{{ cli }}"
register: result
- assert:
@ -35,6 +32,5 @@
commands:
- no interface Loopback999
match: none
provider: "{{ cli }}"
- debug: msg="END cli/basic.yaml"

View file

@ -6,12 +6,10 @@
commands:
- no interface Loopback999
match: none
provider: "{{ cli }}"
- name: configure device with config
iosxr_template:
src: basic/config.j2
provider: "{{ cli }}"
force: yes
register: result
@ -23,7 +21,6 @@
- name: check device with config
iosxr_template:
src: basic/config.j2
provider: "{{ cli }}"
force: yes
register: result
@ -37,6 +34,5 @@
commands:
- no interface Loopback999
match: none
provider: "{{ cli }}"
- debug: msg="END cli/force.yaml"