Skip to content

Commit b66cdca

Browse files
authored
Merge pull request #19697 from donaldsharp/bgp_evpn_mh_ensure_key_exists
tests: Ensure key exists for bgp_evpn_mh
2 parents 0b3203b + 3954dd5 commit b66cdca

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)