summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-28 23:00:49 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-28 23:20:59 +0900
commitdf6c998bc1718e093aabdeab6ef0f857ccc229d1 (patch)
tree3c8699bbf01a0abf0515ddd81640e1054f624d23 /test
parentff09df9841485e6dec5ac228d6c1a55c1f2e5245 (diff)
table: update accepted number in adj-in rib after softreset-in
update accepted number in adj-in rib after AllowOwnAs has changed. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test')
-rw-r--r--test/scenario_test/aspath_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/scenario_test/aspath_test.py b/test/scenario_test/aspath_test.py
index bd9f107a..25518bfa 100644
--- a/test/scenario_test/aspath_test.py
+++ b/test/scenario_test/aspath_test.py
@@ -89,7 +89,11 @@ class GoBGPTestBase(unittest.TestCase):
def test_04_check_accept_as_loop(self):
def f():
- self.assertEqual(len(self.g2.get_global_rib()), 1)
+ adj = self.g2.get_neighbor(self.q1)['state']['adj-table']
+ self.assertTrue('received' in adj)
+ self.assertEqual(adj['received'], 1)
+ self.assertTrue('accepted' in adj)
+ self.assertEqual(adj['accepted'], 1)
assert_several_times(f)