Browse code

Fixes ovs-vsctl add port issue

Setup of OVS may fail, if ports that are added,
are already exist. Add "--may-exist" directive to OVS
add-port command to prevent this behaviour.

Change-Id: I2280be9a63a4a6fbc747b5e32b602697b555ffa8
Closes-Bug: #1394162

Raman Budny authored on 2015/03/31 19:09:09
Showing 1 changed files
... ...
@@ -801,7 +801,7 @@ function _move_neutron_addresses_route {
801 801
         fi
802 802
 
803 803
         if [[ "$add_ovs_port" == "True" ]]; then
804
-            ADD_OVS_PORT="sudo ovs-vsctl add-port $to_intf $from_intf"
804
+            ADD_OVS_PORT="sudo ovs-vsctl --may-exist add-port $to_intf $from_intf"
805 805
         fi
806 806
 
807 807
         sudo ip addr del $IP_BRD dev $from_intf; sudo ip addr add $IP_BRD dev $to_intf; $ADD_OVS_PORT; $ADD_DEFAULT_ROUTE