xenserver: Various fixes for vif script
authorJustin Pettit <jpettit@nicira.com>
Tue, 2 Mar 2010 08:15:40 +0000 (00:15 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 2 Mar 2010 08:28:13 +0000 (00:28 -0800)
xenserver/etc_xensource_scripts_vif

index c81358a2c82a9caf9db6123fe3d93b0b24e2e2b4..77d39400476e6de0c419dcbcacebef23c1833ce9 100755 (executable)
@@ -120,7 +120,7 @@ xs550_set_internal_network_uuid()
         local net_uuid=$(xenstore-read "${PRIVATE}/network-uuid" 2>/dev/null)
         if [ -n "${net_uuid}" ] ; then
             logger -t scripts-vif "${bridge} xs-network-uuids ${net_uuid}"
-            echo "-- br-set-external-id \"$bridge\" xs-network-uuids \"${net_uuid}\""
+            echo "-- br-set-external-id $bridge xs-network-uuids ${net_uuid}"
         fi
     else
         # XAPI after 5.5.0 sets the network external ids itself, via ovs-vsctl.
@@ -158,7 +158,7 @@ add_to_bridge()
                local vif_details=$(handle_vswitch_vif_details)
            fi
 
-           $vsctl -- --if-exists del-port $dev -- add-port $bridge $dev $vif_details $(xs550_set_internal_network_uuid)
+           $vsctl -- --if-exists del-port $dev -- add-port $bridge $dev $vif_details $(xs550_set_internal_network_uuid $bridge)
            ;;
     esac
            
@@ -172,7 +172,7 @@ remove_from_bridge()
            # Nothing to do
            ;;
        vswitch)
-           $vsctl del-port $bridge $dev
+           $vsctl del-port $dev
            ;;
     esac
 }