diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-12-05 17:06:29 +0800 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-12-05 17:06:29 +0800 |
commit | 3c3a10bbbf4c56ed9974345d134958561d779cf1 (patch) | |
tree | 42a68a96469e67c4677d64a0040bf82648fe68ec /deploy/adapters/ansible/roles/odl_cluster | |
parent | 35563e4cd74e8da75f05573d7cf33c92422b69ec (diff) |
bugfix: dispatch flow table to hosts after ODL start up
JIRA: COMPASS-184
Change-Id: I0782bf20d48817d8d069cf5abf02880d6170ecd5
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/odl_cluster')
-rwxr-xr-x | deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml index 37dc1bd1..f06ce193 100755 --- a/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml +++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml @@ -8,3 +8,11 @@ - name: Install ODL Cluster on Compute include: openvswitch.yml when: groups['odl']|length !=0 and inventory_hostname not in groups['odl'] + +- name: check out new flow table if enable + shell: ovs-ofctl --protocol=OpenFlow13 dump-flows br-prv | grep CONTROLLER; while [ $? -ne 0 ]; do sleep 10; ovs-ofctl --protocol=OpenFlow13 dump-flows br-prv | grep CONTROLLER; done + when: groups['odl']|length !=0 + +- name: remove controller from br-prv + shell: ovs-vsctl del-controller br-prv; + when: groups['odl']|length !=0 |