summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-02-16 16:32:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-16 16:32:30 +0000
commit8d676615742ba80b3da1570c209391a09d1a5f45 (patch)
treebc42edffa16adf87b86e585b7b28235d0e34ca61
parent80427db866fccddd3c644bfec2645b196bb32501 (diff)
parent3ad9c9ae4940e5293bcdf19ca749aaab89762705 (diff)
Merge "[odl-sfc] Add symmetric option for sfc_create"
-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 f3597965f..d5d7858c5 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: