summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/global_policy_test.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-11-07 23:17:04 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-11-11 00:28:34 +0900
commit6dacfb38bf6e5c32abe39cfdfe825d3702316855 (patch)
treeaff47e475ce978bcd8667ca104933ba97cd3c72b /test/scenario_test/global_policy_test.py
parent84d73c1b45006c40764c1587207b5ad67598e893 (diff)
scenario_test: use default interface for ipv4-peering
avoid creating many linux bridges via pipework Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/global_policy_test.py')
-rw-r--r--test/scenario_test/global_policy_test.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/scenario_test/global_policy_test.py b/test/scenario_test/global_policy_test.py
index d3a417a9..a7c95d9a 100644
--- a/test/scenario_test/global_policy_test.py
+++ b/test/scenario_test/global_policy_test.py
@@ -61,9 +61,6 @@ class GoBGPTestBase(unittest.TestCase):
time.sleep(initial_wait_time)
- br01 = Bridge(name='br01', subnet='192.168.10.0/24')
- [br01.addif(ctn) for ctn in ctns]
-
g1.local('gobgp global policy export add default reject')
for q in qs:
@@ -72,7 +69,6 @@ class GoBGPTestBase(unittest.TestCase):
cls.gobgp = g1
cls.quaggas = {'q1': q1, 'q2': q2, 'q3': q3}
- cls.bridges = {'br01': br01}
# test each neighbor state is turned establish
def test_01_neighbor_established(self):
@@ -86,8 +82,7 @@ class GoBGPTestBase(unittest.TestCase):
def test_03_add_peer(self):
q = ExaBGPContainer(name='q4', asn=65004, router_id='192.168.0.5')
q.add_route('10.10.0.0/24')
- q.run()
- self.bridges['br01'].addif(q)
+ time.sleep(q.run())
self.gobgp.add_peer(q)
q.add_peer(self.gobgp)
self.gobgp.wait_for(expected_state=BGP_FSM_ESTABLISHED, peer=q)