summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/route_server_softreset_test.py
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-11 15:42:18 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-14 02:15:46 +0000
commitc4ced97e76f12d5c37721c107e61147edb4254d7 (patch)
tree8178a6a4a7bfbdf98414dd0148796255e39a4cc0 /test/scenario_test/route_server_softreset_test.py
parent3f2dd34d37b5ca4874399d7eaff9bbb8b7975cd4 (diff)
cli: use client library
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/route_server_softreset_test.py')
-rw-r--r--test/scenario_test/route_server_softreset_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/scenario_test/route_server_softreset_test.py b/test/scenario_test/route_server_softreset_test.py
index 6bd91c03..05e39ba2 100644
--- a/test/scenario_test/route_server_softreset_test.py
+++ b/test/scenario_test/route_server_softreset_test.py
@@ -91,7 +91,7 @@ class GoBGPTestBase(unittest.TestCase):
time.sleep(1)
- num = g2.get_neighbor(g1)['info']['messages']['received']['UPDATE']
+ num = g2.get_neighbor(g1)['state']['messages']['received']['update']
ps0 = {'prefix-set-name': 'ps0', 'prefix-list': [p1]}
g1.set_prefix_set(ps0)
@@ -101,14 +101,14 @@ class GoBGPTestBase(unittest.TestCase):
time.sleep(1)
- num2 = g2.get_neighbor(g1)['info']['messages']['received']['UPDATE']
+ num2 = g2.get_neighbor(g1)['state']['messages']['received']['update']
self.assertTrue(num+1 == num2)
g3.softreset(g1, type='out')
time.sleep(1)
- num3 = g2.get_neighbor(g1)['info']['messages']['received']['UPDATE']
+ num3 = g2.get_neighbor(g1)['state']['messages']['received']['update']
self.assertTrue(num2 == num3)
def test_03_softresetin_test2(self):
@@ -118,13 +118,13 @@ class GoBGPTestBase(unittest.TestCase):
g2.add_route('10.0.10.0/24')
time.sleep(1)
- num = g2.get_neighbor(g1)['info']['messages']['received']['UPDATE']
+ num = g2.get_neighbor(g1)['state']['messages']['received']['update']
time.sleep(3)
g1.local('gobgp n all softresetin')
time.sleep(3)
- num1 = g2.get_neighbor(g1)['info']['messages']['received']['UPDATE']
+ num1 = g2.get_neighbor(g1)['state']['messages']['received']['update']
self.assertTrue(num == num1)