]> git.puffer.fish Git - mirror/frr.git/commit
tests: fix intermittent key error in bgp-auth topotest 8640/head
authorPat Ruddy <pat@voltanet.io>
Thu, 6 May 2021 13:36:52 +0000 (14:36 +0100)
committerPat Ruddy <pat@voltanet.io>
Thu, 6 May 2021 13:36:52 +0000 (14:36 +0100)
commit650e0d1bb8aa85383c2ce8a37461ad25f2c1975e
tree59951a9457f64dd7cf06617ff7868437a91fcc8d
parent4478793c43dd5dd895b0e9391765577c3097a392
tests: fix intermittent key error in bgp-auth topotest

There is a rare case where with prefix peers the peer is
completely absent from the json output when checking the
peer state resulting in a python key error. Check key exists
before checking the state.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
tests/topotests/bgp-auth/test_bgp_auth.py