X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fetc_xensource_scripts_vif;h=8217fb00cb49daa143fe363b806366c8fee8577e;hb=fe8b662b2d113f8cd9139761297777bbf932ff64;hp=fb7517ad550a02817db2f5ad7a4e03a53d8b9542;hpb=42ab0203399b1ea32556319e1c73aa093c4b24f9;p=openvswitch diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif index fb7517ad..8217fb00 100755 --- a/xenserver/etc_xensource_scripts_vif +++ b/xenserver/etc_xensource_scripts_vif @@ -31,8 +31,8 @@ handle_promiscuous() local arg=$(xenstore-read "${PRIVATE}/other-config/promiscuous") if [ $? -eq 0 -a -n "${arg}" ] ; then case "${arg}" in - true|on) echo 1 > /sys/class/net/${vif}/brport/promisc ;; - *) echo 0 > /sys/class/net/${vif}/brport/promisc ;; + true|on) logger -t script-vif "${vif}: Promiscuous ports are not supported via vSwitch." ;; + *) ;; esac fi } @@ -71,8 +71,8 @@ add_to_bridge() logger -t scripts-vif "Adding ${vif} to ${bridge} with address ${address}" vid= - if [ -e "/etc/openvswitch/br-$bridge" ]; then - . "/etc/openvswitch/br-$bridge" + if [ -e "/var/lib/openvswitch/br-$bridge" ]; then + . "/var/lib/openvswitch/br-$bridge" if [ -n "$VLAN_SLAVE" -a -n "$VLAN_VID" ]; then bridge=$VLAN_SLAVE vid="--add=vlan.$vif.tag=$VLAN_VID"