Skip to content

Commit

Permalink
Bug fix: FRR BGP validation plugin crashed when reporting 'next hop i…
Browse files Browse the repository at this point in the history
…s wrong'
  • Loading branch information
ipspace committed Apr 10, 2024
1 parent 29d4d42 commit 63047f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netsim/validate/bgp/frr.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def valid_bgp_prefix(
OK = OK or nh_element.ip == nh

if not OK:
raise Exception(f'The next hop for prefix {pfx} is {_result.nexthops[0][af]}, not {nh}')
raise Exception(f'The next hop(s) for prefix {pfx} is/are {",".join(found_nh)}, not {nh}')

exit_msg = f'One of the next hops for prefix {pfx} is {nh}'

Expand Down

0 comments on commit 63047f0

Please sign in to comment.