From df6c998bc1718e093aabdeab6ef0f857ccc229d1 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 28 May 2018 23:00:49 +0900 Subject: 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 --- test/scenario_test/aspath_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/scenario_test') 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) -- cgit v1.2.3