summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/bgp_router_test.py
diff options
context:
space:
mode:
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)