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:
parent
2b5ad94a96
commit
77b6255305
1 changed files with 337 additions and 328 deletions
|
@ -5,6 +5,8 @@
|
|||
operation: delete
|
||||
ignore_errors: yes
|
||||
|
||||
- block:
|
||||
|
||||
- name: Configure BGP with AS 64496 and a router-id
|
||||
ios_bgp: &config
|
||||
operation: merge
|
||||
|
@ -326,6 +328,10 @@
|
|||
that:
|
||||
- 'result.changed == false'
|
||||
|
||||
- name: Get the IOS version
|
||||
ios_facts:
|
||||
gather_subset: all
|
||||
|
||||
- name: Configure redistribute information under address family mode with operation replace
|
||||
ios_bgp: &af_rdr_rplc
|
||||
operation: replace
|
||||
|
@ -351,10 +357,12 @@
|
|||
- name: Configure redistribute information under address family mode with operation replace (idempotent)
|
||||
ios_bgp: *af_rdr_rplc
|
||||
register: result
|
||||
when: ansible_net_version != "15.6(2)T"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == false'
|
||||
when: ansible_net_version != "15.6(2)T"
|
||||
|
||||
- name: Override all the exisiting BGP config
|
||||
ios_bgp:
|
||||
|
@ -373,6 +381,7 @@
|
|||
- "'bgp router-id 192.0.2.10' in result.commands"
|
||||
- "'bgp log-neighbor-changes' in result.commands"
|
||||
|
||||
always:
|
||||
- name: Teardown
|
||||
ios_bgp: &rm
|
||||
operation: delete
|
||||
|
|
Loading…
Reference in a new issue