summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/bgp_router_test.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-04-04 23:46:01 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-14 08:10:28 +0900
commit75f835725deb42b00d5f746828f2738d15e3bc4f (patch)
tree5294cc59377f51896fd75a57cdb776f5e2f8bf54 /test/scenario_test/bgp_router_test.py
parent18bbb843d2e025af8e1ffd33b7c9a09d1a19c565 (diff)
api: use gRPC instead of REST
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/bgp_router_test.py')
-rw-r--r--test/scenario_test/bgp_router_test.py22
1 files changed, 11 insertions, 11 deletions
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)