aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils/openstack_tacker.py
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2017-02-16 16:54:40 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2017-02-16 15:22:10 +0000
commit3ad9c9ae4940e5293bcdf19ca749aaab89762705 (patch)
tree97519c90c7e31c495360d23ba1338dedaf7aed40 /functest/utils/openstack_tacker.py
parent18758a75e76e7f80d7be0c79b7044d404bd588bc (diff)
[odl-sfc] Add symmetric option for sfc_create
Change-Id: Iead7767b936376c2f5b6c6a5584734ef074c1346 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
Diffstat (limited to 'functest/utils/openstack_tacker.py')
-rw-r--r--functest/utils/openstack_tacker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/functest/utils/openstack_tacker.py b/functest/utils/openstack_tacker.py
index f3597965..d5d7858c 100644
--- a/functest/utils/openstack_tacker.py
+++ b/functest/utils/openstack_tacker.py
@@ -194,7 +194,8 @@ def list_sfcs(tacker_client, verbose=False):
def create_sfc(tacker_client, sfc_name,
chain_vnf_ids=None,
- chain_vnf_names=None):
+ chain_vnf_names=None,
+ symmetrical=False):
try:
sfc_body = {
'sfc': {
@@ -203,6 +204,8 @@ def create_sfc(tacker_client, sfc_name,
'chain': []
}
}
+ if symmetrical:
+ sfc_body['sfc']['symmetrical'] = True
if chain_vnf_ids is not None:
sfc_body['sfc']['chain'] = chain_vnf_ids
else: