diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-12-10 15:53:03 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-12-10 15:56:11 -0800 |
| commit | 5ef47c66ccea09dca098a1803803ea7f3c0013c4 (patch) | |
| tree | 3f6d4102aa037e37b09a18137a27a60e9fc532ba /xenserver/etc_xensource_scripts_vif | |
| parent | c0eb8e3158299f50270b283adb55da65c736246a (diff) | |
| download | openvswitch-5ef47c66ccea09dca098a1803803ea7f3c0013c4.tar.gz | |
xenserver: Make basic VM networking work.
Tested by starting and stopping a VM that has a single VIF and verifying
that the VM could get an IP address via DHCP and access the network and
that the VIF's external-ids were set to plausible values.
Diffstat (limited to 'xenserver/etc_xensource_scripts_vif')
| -rwxr-xr-x | xenserver/etc_xensource_scripts_vif | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index c649e926b..a9b62ff4f 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -21,7 +21,6 @@ # Keep other-config/ keys in sync with device.ml:vif_udev_keys -cfg_mod="/usr/bin/ovs-cfg-mod" vsctl="/usr/bin/ovs-vsctl" dump_vif_details="/usr/share/vswitch/scripts/dump-vif-details" service="/sbin/service" @@ -81,13 +80,6 @@ add_to_bridge() fi logger -t scripts-vif "Adding ${vif} to ${bridge} with address ${address}" - local VLAN_ID=$($vsctl br-to-vlan $bridge) - local vid= - if [ "$VLAN_ID" -ne 0 ] ; then - bridge=$($vsctl br-to-parent $bridge) - vid="--add=vlan.${vif}.tag=${VLAN_ID}" - fi - ${IP} link set "${vif}" down || logger -t scripts-vif "Failed to ip link set ${vif} down" ${IP} link set "${vif}" arp off || logger -t scripts-vif "Failed to ip link set ${vif} arp off" ${IP} link set "${vif}" multicast off || logger -t scripts-vif "Failed to ip link set ${vif} multicast off" @@ -99,14 +91,7 @@ add_to_bridge() logger -t scripts-vif "Failed to retrieve vif details for vswitch" fi - $cfg_mod -F /etc/ovs-vswitchd.conf \ - --del-match="bridge.*.port=$vif" \ - --del-match="vlan.$vif.trunks=*" \ - --del-match="vlan.$vif.tag=*" \ - --del-match="port.$vif.[!0-9]*" \ - --add="bridge.$bridge.port=$vif" \ - $vid $vif_details -c - $service vswitch reload + $vsctl add-port $bridge $vif $vif_details ${IP} link set "${vif}" up || logger -t scripts-vif "Failed to ip link set ${vif} up" } |
