PR to fix ios bgp TC failure (#58010)

* fix ios bgp tc failure

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* skip test with 15.6(T)2 ios

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* skip test with 15.6(T)2 ios

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
This commit is contained in:
Sumit Jaiswal 2019-06-20 20:39:32 +05:30 committed by Daniel Mellado Area
parent 2b5ad94a96
commit 77b6255305

View file

@ -5,6 +5,8 @@
operation: delete operation: delete
ignore_errors: yes ignore_errors: yes
- block:
- name: Configure BGP with AS 64496 and a router-id - name: Configure BGP with AS 64496 and a router-id
ios_bgp: &config ios_bgp: &config
operation: merge operation: merge
@ -326,6 +328,10 @@
that: that:
- 'result.changed == false' - 'result.changed == false'
- name: Get the IOS version
ios_facts:
gather_subset: all
- name: Configure redistribute information under address family mode with operation replace - name: Configure redistribute information under address family mode with operation replace
ios_bgp: &af_rdr_rplc ios_bgp: &af_rdr_rplc
operation: replace operation: replace
@ -351,10 +357,12 @@
- name: Configure redistribute information under address family mode with operation replace (idempotent) - name: Configure redistribute information under address family mode with operation replace (idempotent)
ios_bgp: *af_rdr_rplc ios_bgp: *af_rdr_rplc
register: result register: result
when: ansible_net_version != "15.6(2)T"
- assert: - assert:
that: that:
- 'result.changed == false' - 'result.changed == false'
when: ansible_net_version != "15.6(2)T"
- name: Override all the exisiting BGP config - name: Override all the exisiting BGP config
ios_bgp: ios_bgp:
@ -373,6 +381,7 @@
- "'bgp router-id 192.0.2.10' in result.commands" - "'bgp router-id 192.0.2.10' in result.commands"
- "'bgp log-neighbor-changes' in result.commands" - "'bgp log-neighbor-changes' in result.commands"
always:
- name: Teardown - name: Teardown
ios_bgp: &rm ios_bgp: &rm
operation: delete operation: delete