From 900a1321ffefdbefa0ee40e8bb8e1d2434360027 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Fri, 7 Oct 2016 07:11:35 +0000 Subject: test: fix bug of bgp_router_test.py Since g3's route (MED 10) is weaker than g2's, g3's route should not be advertised to g2 from g1. But when g3's route arrives on g1 before g2's, g1 advertises g3's route. This commit ensures g3's route come after g2's route Signed-off-by: Wataru Ishida --- test/scenario_test/bgp_router_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/scenario_test/bgp_router_test.py') diff --git a/test/scenario_test/bgp_router_test.py b/test/scenario_test/bgp_router_test.py index 1a72c3e5..d80b3631 100644 --- a/test/scenario_test/bgp_router_test.py +++ b/test/scenario_test/bgp_router_test.py @@ -431,7 +431,6 @@ class GoBGPTestBase(unittest.TestCase): self.quaggas = {'g2': g2, 'g3': g3} g2.local('gobgp global rib add 50.0.0.0/24') - g3.local('gobgp global rib add 50.0.0.0/24 med 10') g1.add_peer(g2) g2.add_peer(g1) @@ -442,6 +441,8 @@ class GoBGPTestBase(unittest.TestCase): self.test_02_check_gobgp_global_rib() + g3.local('gobgp global rib add 50.0.0.0/24 med 10') + paths = g1.get_adj_rib_out(g2, '50.0.0.0/24') self.assertTrue(len(paths) == 0) paths = g1.get_adj_rib_out(g3, '50.0.0.0/24') -- cgit v1.2.3