Skip to content

Commit 3954dd5

Browse files
committed
tests: Ensure key exists for bgp_evpn_mh
I am seeing occassional test failures with the bgp_evpn_mh test where the key doesn't exist. When I look at the support bundle the key is there. Clearly a tight timing window is being hit. Signed-off-by: Donald Sharp <[email protected]>
1 parent 0b3203b commit 3954dd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/topotests/bgp_evpn_mh/test_evpn_mh.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@ def check_es(dut):
485485
for es in bgp_es_json:
486486
esi = es["esi"]
487487
curr_es_set.append(esi)
488+
if not es.get("type", False):
489+
return None
488490
types = es["type"]
489491
vtep_ips = []
490492
for vtep in es.get("vteps", []):
@@ -516,6 +518,8 @@ def check_one_es(dut, esi, down_vteps):
516518
return "esi %s not found" % esi
517519

518520
esi = es["esi"]
521+
if not es.get("type", False):
522+
return None
519523
types = es["type"]
520524
vtep_ips = []
521525
for vtep in es.get("vteps", []):

0 commit comments

Comments
 (0)