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 fb7517ad550a02817db2f5ad7a4e03a53d8b9542..c3baba9e0d0c8eb7614b68642b7034e065f4024a 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
 }