From 75f835725deb42b00d5f746828f2738d15e3bc4f Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 4 Apr 2015 23:46:01 +0000 Subject: api: use gRPC instead of REST Signed-off-by: ISHIDA Wataru --- test/scenario_test/bgp_router_test.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'test/scenario_test/bgp_router_test.py') diff --git a/test/scenario_test/bgp_router_test.py b/test/scenario_test/bgp_router_test.py index f2d3ce16..62ff9b5f 100644 --- a/test/scenario_test/bgp_router_test.py +++ b/test/scenario_test/bgp_router_test.py @@ -73,12 +73,12 @@ class GoBGPTest(GoBGPTestBase): for p in d.paths: print "check of %s's route %s existance in gobgp global rib" % (peer_ip, p.network) exist = False - for dst in rib['Destinations']: - for path in dst['Paths']: - if path['Network'] == p.network: + for dst in rib: + for path in dst['paths']: + if path['network'] == p.network: exist = True if exist: - self.assertEqual(path['Nexthop'] == p.nexthop, True) + self.assertEqual(path['nexthop'] == p.nexthop, True) self.assertEqual(exist, True) # Test of advertising route to each quagga form gobgp @@ -150,12 +150,12 @@ class GoBGPTest(GoBGPTestBase): for p in d.paths: print "check of %s's route %s existance in gobgp global rib" % (peer_ip, p.network) exist = False - for dst in rib['Destinations']: - for path in dst['Paths']: - if path['Network'] == p.network: + for dst in rib: + for path in dst['paths']: + if path['network'] == p.network: exist = True if exist: - self.assertEqual(path['Nexthop'] == p.nexthop, True) + self.assertEqual(path['nexthop'] == p.nexthop, True) self.assertEqual(exist, True) # Test of advertising route to each quagga form gobgp when append quagga container @@ -215,9 +215,9 @@ class GoBGPTest(GoBGPTestBase): removed_prefix = "10.0.0.%d/24" % self.remove_quagga still_exists = False - for dst in rib['Destinations']: - for path in dst['Paths']: - if path['Network'] == removed_prefix: + for dst in rib: + for path in dst['paths']: + if path['network'] == removed_prefix: still_exists = True self.assertEqual(still_exists, False) -- cgit v1.2.3