Skip to content

Commit

Permalink
xenserver: Various fixes for vif script
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Pettit committed Mar 2, 2010
1 parent 7aee8e5 commit 3612b72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xenserver/etc_xensource_scripts_vif
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand All @@ -172,7 +172,7 @@ remove_from_bridge()
# Nothing to do
;;
vswitch)
$vsctl del-port $bridge $dev
$vsctl del-port $dev
;;
esac
}
Expand Down

0 comments on commit 3612b72

Please sign in to comment.