diff options
| author | Justin Pettit <jpettit@nicira.com> | 2010-04-21 03:42:52 -0700 |
|---|---|---|
| committer | Justin Pettit <jpettit@nicira.com> | 2010-04-21 04:08:23 -0700 |
| commit | 79eb8b002c588e6f7495a0cd73d8a0597a458442 (patch) | |
| tree | 25531d15b2f239f1580511159aeb0a1564b27132 /xenserver/etc_xensource_scripts_vif | |
| parent | 537eeb9ccfecddd8b234225c79400f8c22b33f63 (diff) | |
| download | openvswitch-79eb8b002c588e6f7495a0cd73d8a0597a458442.tar.gz | |
xenserver: Set internal network-uuids in Bridge table on XS5.5
On XenServer 5.5, interface-reconfigure is not called when creating
internal bridges, so we jump through extra hoops to determine the
network UUIDs. The code that handled this was not properly retrieving
the UUIDs from XAPI, so the field would never be set. This commit
corrects that.
Bug #2666
Diffstat (limited to 'xenserver/etc_xensource_scripts_vif')
| -rwxr-xr-x | xenserver/etc_xensource_scripts_vif | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index e82642953..eed87fabc 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -116,10 +116,7 @@ handle_vswitch_vif_details() if [ -n "${address}" ] ; then set_vif_external_id "vif-mac" "${address}" fi -} -xs550_set_internal_network_uuid() -{ if $xs550; then # vNetManager needs to know the network UUID(s) associated with each # datapath. Normally interface-reconfigure adds them, but XAPI does @@ -131,7 +128,6 @@ xs550_set_internal_network_uuid() # the initial ovs-vswitchd connection to vNetManager and setting this # configuration variable, but vNetManager can tolerate that. local bridge=$1 - local net_uuid=$(xenstore-read "${PRIVATE}/network-uuid" 2>/dev/null) if [ -n "${net_uuid}" ] ; then logger -t scripts-vif "${bridge} network-uuids ${net_uuid}" echo "-- br-set-external-id $bridge network-uuids ${net_uuid}" @@ -166,10 +162,10 @@ add_to_bridge() ;; openvswitch) if [ "$TYPE" = "vif" ] ; then - local vif_details=$(handle_vswitch_vif_details) + local vif_details=$(handle_vswitch_vif_details $bridge) fi - $vsctl -- --if-exists del-port $dev -- add-port $bridge $dev $vif_details $(xs550_set_internal_network_uuid $bridge) + $vsctl -- --if-exists del-port $dev -- add-port $bridge $dev $vif_details ;; esac |
