summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/route_server_test.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-24 09:42:06 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-24 10:43:37 +0000
commit23252d9ad86c46024b512b63315ea818c7dc47ef (patch)
tree4da71dd0a281bc1c2bb563fcac9e68ff8ffb41d2 /test/scenario_test/route_server_test.py
parent1b6532d8224fd350c9f805b21ea164a84b2a79fb (diff)
test: add BGPContainer.define_policy() and BGPContainer.assign_policy()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/route_server_test.py')
-rw-r--r--test/scenario_test/route_server_test.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/scenario_test/route_server_test.py b/test/scenario_test/route_server_test.py
index 3c8f9356..afe350af 100644
--- a/test/scenario_test/route_server_test.py
+++ b/test/scenario_test/route_server_test.py
@@ -189,17 +189,15 @@ class GoBGPTestBase(unittest.TestCase):
med200 = {'name': 'med200',
'type': 'permit',
'match': '0.0.0.0/0',
- 'direction': 'out',
'med': 200,
'priority': 10}
- q2.add_policy(med200, self.gobgp)
+ q2.add_policy(med200, self.gobgp, 'out')
med100 = {'name': 'med100',
'type': 'permit',
'match': '0.0.0.0/0',
- 'direction': 'out',
'med': 100,
'priority': 10}
- q3.add_policy(med100, self.gobgp)
+ q3.add_policy(med100, self.gobgp, 'out')
q5.add_route('10.0.6.0/24')
@@ -231,10 +229,9 @@ class GoBGPTestBase(unittest.TestCase):
med300 = {'name': 'med300',
'type': 'permit',
'match': '0.0.0.0/0',
- 'direction': 'out',
'med': 300,
'priority': 5}
- q3.add_policy(med300, self.gobgp)
+ q3.add_policy(med300, self.gobgp, 'out')
time.sleep(self.wait_per_retry)