From: Ian Campbell <Ian.Campbell@citrix.com>
Date: Thu, 6 Aug 2009 21:11:10 +0000 (-0700)
Subject: xenserver: Log attempts to enable promiscuous mode for bridge ports on vif plug.
X-Git-Tag: v0.90.5~64
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9dc898c09dbaa363695d9a9368d30b8b24f06600;p=sliver-openvswitch.git

xenserver: Log attempts to enable promiscuous mode for bridge ports on vif plug.

This functionality is replaced by vSwitch support for SPAN/RSPAN.

CP-1148.
---

diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif
index fb7517ad5..c3baba9e0 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
 }