diff options
author | Yifei Xue <xueyifei@huawei.com> | 2018-03-15 17:19:47 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2018-03-16 14:10:14 +0800 |
commit | 0fe066df1ec07d485f5d510e5cec5b7a082dcb58 (patch) | |
tree | cd04f1b9e4c517875508dd410eb54652a53c7399 /plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml | |
parent | 93cd2cd6f456bc95ceda1f4817fffa88feb74129 (diff) |
Copy ml2_conf.ini to ODL hosts
JIRA: -
SFC test cases in functest need to read ml2_conf.ini to get
ODL controller's IP and port. However they can only gei this file
from control nodes. So we copy this from neutron server containers
to ODL hosts.
Change-Id: I21acbaed6de924247d249d6c4015d9f90c763a08
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml')
-rwxr-xr-x | plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml index 9f1cb79e..55b0e160 100755 --- a/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml +++ b/plugins/odl_sfc/roles/setup-odl-sfc/tasks/odl-post.yml @@ -32,3 +32,21 @@ - name: restart opendaylight shell: sleep 60; service opendaylight restart; sleep 60; when: inventory_hostname in groups['network_hosts'] + +- name: creat ml2 directory on ODL hosts + file: + path: /etc/neutron/plugins/ml2/ + state: directory + mode: 0755 + when: + - inventory_hostname in groups['network_hosts'] + - odl_sfc == "Enable" + +- name: copy ml2_conf.ini to ODL hosts + copy: + src: /tmp/ml2_conf.ini + dest: /etc/neutron/plugins/ml2/ml2_conf.ini + mode: 0755 + when: + - inventory_hostname in groups['network_hosts'] + - odl_sfc == "Enable" |