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:
parent
33d6f6f2dd
commit
fef1a10efc
1 changed files with 195 additions and 187 deletions
|
@ -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…
Add table
Reference in a new issue