diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2017-02-13 06:07:03 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-02-15 00:03:57 +0900 |
commit | f276279bf6d90b3f5940bc63780cc3483e9d734e (patch) | |
tree | 99d210af71f53b8afb80e8d006873d287b7fc15e /test/scenario_test/route_server_policy_test.py | |
parent | b99a2dc874c81e8c2b1732626709f3279bef7ceb (diff) |
table: fix bug of adj-table accepted counter
old filtered value could be POLICY_DIRECTION_IMPORT
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/route_server_policy_test.py')
-rw-r--r-- | test/scenario_test/route_server_policy_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/scenario_test/route_server_policy_test.py b/test/scenario_test/route_server_policy_test.py index ec21ecca..73980b8c 100644 --- a/test/scenario_test/route_server_policy_test.py +++ b/test/scenario_test/route_server_policy_test.py @@ -3516,6 +3516,8 @@ class InPolicyRejectImplicitWithdraw(object): wait_for(lambda: len(g2.get_global_rib()[0]['paths']) == 2) wait_for(lambda: len(g1.get_local_rib(g4)) == 1) wait_for(lambda: len(g1.get_local_rib(g4)[0]['paths']) == 1) + wait_for(lambda: len(g1.get_adj_rib_in(g2)) == 1) + wait_for(lambda: g1.get_neighbor(g2)['state'].get('adj-table', {}).get('accepted', 0) == 1) wait_for(lambda: len(g4.get_global_rib()) == 1) wait_for(lambda: len(g4.get_global_rib()[0]['paths']) == 1) @@ -3531,6 +3533,7 @@ class InPolicyRejectImplicitWithdraw(object): wait_for(lambda: len(g2.get_global_rib()) == 1) wait_for(lambda: len(g2.get_global_rib()[0]['paths']) == 1) wait_for(lambda: len(g1.get_adj_rib_in(g2)) == 1) + wait_for(lambda: g1.get_neighbor(g2)['state'].get('adj-table', {}).get('accepted', 0) == 0) wait_for(lambda: len(g1.get_local_rib(g4)) == 0) wait_for(lambda: len(g4.get_global_rib()) == 0) |