From 1c0f6a907f57e75529dcef959763220c10e7e1f0 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Fri, 29 Sep 2017 14:18:09 +0800 Subject: SFC scenario release notes and bug fix for SFC switch JIRA: COMPASS-562 Because of the inventory file modification, the sfc switch cannot be enabled. Add a sperate sfc role to fix this bug. Change-Id: If583d10ebbe78d0abe9078add24beb5f506dbda8 Signed-off-by: Yifei Xue --- plugins/odl_cluster/roles/setup-odl/tasks/main.yml | 4 +++- plugins/odl_sfc/roles/setup-odl-sfc/tasks/main.yml | 4 +++- plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-cluster.yml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/odl_cluster/roles/setup-odl/tasks/main.yml b/plugins/odl_cluster/roles/setup-odl/tasks/main.yml index e65be002..96ca2f96 100755 --- a/plugins/odl_cluster/roles/setup-odl/tasks/main.yml +++ b/plugins/odl_cluster/roles/setup-odl/tasks/main.yml @@ -1,4 +1,6 @@ --- - include: odl-cluster.yml - when: opendaylight is defined and opendaylight == "Enable" + when: + - opendaylight is defined and opendaylight == "Enable" + - odl_sfc is not defined diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/main.yml b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/main.yml index e65be002..6b226688 100755 --- a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/main.yml +++ b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/main.yml @@ -1,4 +1,6 @@ --- - include: odl-cluster.yml - when: opendaylight is defined and opendaylight == "Enable" + when: + - opendaylight is defined and opendaylight == "Enable" + - odl_sfc is defined and odl_sfc == "Enable" diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-cluster.yml b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-cluster.yml index 09faaa27..07bf7084 100755 --- a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-cluster.yml +++ b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-cluster.yml @@ -4,7 +4,7 @@ - include_vars: "{{ openstack_passwd_file }}" -- include_vars: odl-pre.yml +- include: odl-pre.yml when: inventory_hostname == "localhost" - include_vars: /tmp/odl-extra-vars.yml -- cgit 1.2.3-korg