summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/bgp_router_test.py
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-07 07:11:35 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-09 06:32:42 +0000
commit900a1321ffefdbefa0ee40e8bb8e1d2434360027 (patch)
tree15ae16b4ab90671f6140af3f700198903df436be /test/scenario_test/bgp_router_test.py
parentddb9303bb5b02a8ad4401611d3866ffd09b57add (diff)
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 <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/bgp_router_test.py')
-rw-r--r--test/scenario_test/bgp_router_test.py3
1 files changed, 2 insertions, 1 deletions
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')