From 3c3a10bbbf4c56ed9974345d134958561d779cf1 Mon Sep 17 00:00:00 2001 From: "chenshuai@huawei.com" Date: Sat, 5 Dec 2015 17:06:29 +0800 Subject: bugfix: dispatch flow table to hosts after ODL start up JIRA: COMPASS-184 Change-Id: I0782bf20d48817d8d069cf5abf02880d6170ecd5 Signed-off-by: chenshuai@huawei.com --- deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'deploy') 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 -- cgit 1.2.3-korg