bug fix:update onos ansible scripts 91/2691/1
authorzhanghaoyu7 <zhanghaoyu7@huawei.com>
Wed, 21 Oct 2015 10:45:43 +0000 (18:45 +0800)
committerzhanghaoyu7 <zhanghaoyu7@huawei.com>
Wed, 21 Oct 2015 10:45:43 +0000 (18:45 +0800)
Change-Id: Ie93cdf2730b4bcd823bb2cc6b349032c66fbf439

deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml

index 7658d90..5bea0ae 100755 (executable)
@@ -9,10 +9,9 @@
 
 - name: Stop the Open vSwitch service and clear existing OVSDB
   shell: >
-    service openvswitch-switch stop ;
-    rm -rf /var/log/openvswitch/* ;
-    rm -rf /etc/openvswitch/conf.db ;
-    service openvswitch-switch start ;
+    ovs-vsctl del-br br-int ;
+    ovs-vsctl del-br br-tun ;
+    ovs-vsctl del-manager ;
 
 #- name: get image http server
 #  shell: awk -F'=' '/compass_server/ {print $2}' /etc/compass.conf