From bce69e3c54cfc95d615d081382ec3efa153270d7 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 10 Sep 2019 23:16:01 -0400 Subject: [PATCH] tests: Fix topotests due to json error Recent commit: 5fba22485b added a new topotest that used an older version of FRR that referenced some json code that was changed in between when the PR was submitted and when it got in. Signed-off-by: Donald Sharp --- .../test_bgp_aggregate-address_route-map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/bgp_aggregate-address_route-map/test_bgp_aggregate-address_route-map.py b/tests/topotests/bgp_aggregate-address_route-map/test_bgp_aggregate-address_route-map.py index 387d25d0f8..bee5115323 100644 --- a/tests/topotests/bgp_aggregate-address_route-map/test_bgp_aggregate-address_route-map.py +++ b/tests/topotests/bgp_aggregate-address_route-map/test_bgp_aggregate-address_route-map.py @@ -92,7 +92,7 @@ def test_bgp_maximum_prefix_invalid(): while True: output = json.loads(tgen.gears[router].vtysh_cmd("show ip bgp neighbor 192.168.255.1 json")) if output['192.168.255.1']['bgpState'] == 'Established': - if output['192.168.255.1']['addressFamilyInfo']['IPv4 Unicast']['acceptedPrefixCounter'] == 3: + if output['192.168.255.1']['addressFamilyInfo']['ipv4Unicast']['acceptedPrefixCounter'] == 3: return True def _bgp_aggregate_address_has_metric(router): -- 2.39.5