Skip iosxr_bgp tests if device is not running XR 6.1.3 (#56123)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/56141/head
Nilashish Chakraborty 6 years ago committed by GitHub
parent 33d6f6f2dd
commit fef1a10efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,12 @@
---
- debug: msg="START iosxr cli/iosxr_bgp.yaml on connection={{ ansible_connection }}"
- name: Check IOS-XR version
iosxr_facts:
gather_subset: default
register: facts
- block:
- name: Clear existing BGP config
iosxr_bgp:
operation: delete
@ -223,4 +229,6 @@
that:
- 'result.changed == false'
when: facts['ansible_facts']['ansible_net_version'].split('[')[0] == '6.1.3'
- debug: msg="END iosxr cli/iosxr_bgp.yaml on connection={{ ansible_connection }}"

Loading…
Cancel
Save