1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
Nilashish Chakraborty 2019-05-06 23:03:20 +05:30 committed by GitHub
parent 33d6f6f2dd
commit fef1a10efc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}"