xenserver: Log attempts to enable promiscuous mode for bridge ports on vif plug.
authorIan Campbell <Ian.Campbell@citrix.com>
Thu, 6 Aug 2009 21:11:10 +0000 (14:11 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 00:07:18 +0000 (17:07 -0700)
This functionality is replaced by vSwitch support for SPAN/RSPAN.

CP-1148.

xenserver/etc_xensource_scripts_vif

index fb7517a..c3baba9 100755 (executable)
@@ -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
 }