diff -u --recursive --new-file xen-4.1.0-vanilla/tools/hotplug/Linux/vif-bridge xen-4.1.0/tools/hotplug/Linux/vif-bridge --- xen-4.1.0-vanilla/tools/hotplug/Linux/vif-bridge 2011-05-06 10:39:15.848610384 -0500 +++ xen-4.1.0/tools/hotplug/Linux/vif-bridge 2011-05-06 10:55:55.347672818 -0500 @@ -105,6 +105,10 @@ handle_iptable fi +for f in /etc/xen/scripts/vif-post.d/*; do + [ -x $f ] && $f +done + log debug "Successful vif-bridge $command for $dev, bridge $bridge." if [ "$type_if" = vif -a "$command" = "online" ] then diff -u --recursive --new-file xen-4.1.0-vanilla/tools/hotplug/Linux/vif-nat xen-4.1.0/tools/hotplug/Linux/vif-nat --- xen-4.1.0-vanilla/tools/hotplug/Linux/vif-nat 2011-05-06 10:39:15.847610424 -0500 +++ xen-4.1.0/tools/hotplug/Linux/vif-nat 2011-05-06 10:56:10.629062183 -0500 @@ -185,6 +185,10 @@ handle_iptable +for f in /etc/xen/scripts/vif-post.d/*; do + [ -x $f ] && $f +done + log debug "Successful vif-nat $command for ${dev}." if [ "$command" = "online" ] then diff -u --recursive --new-file xen-4.1.0-vanilla/tools/hotplug/Linux/vif-post.d/00-vif-local xen-4.1.0/tools/hotplug/Linux/vif-post.d/00-vif-local --- xen-4.1.0-vanilla/tools/hotplug/Linux/vif-post.d/00-vif-local 1969-12-31 18:00:00.000000000 -0600 +++ xen-4.1.0/tools/hotplug/Linux/vif-post.d/00-vif-local 2011-05-06 11:54:04.258077228 -0500 @@ -0,0 +1,20 @@ +#============================================================================ +# ${XEN_SCRIPT_DIR}/vif-post.d/00-vif-local +# +# Script for performing local configuration of a vif. +# This script will be sourced by, e.g., vif-bridge after the hotplugging +# system calls vif-bridge. The script is here and not simply executed as +# a udev rule because this allows simple access to several environment +# variables set by the calling vif-* script. +# +# Usage: +# vif-local (add|remove|online|offline) +# +# Environment vars: +# dev vif interface name (required). +# main_ip IP address of Dom0 +# ip list of IP networks for the vif, space-separated +# XENBUS_PATH path to this device's details in the XenStore (required). +#============================================================================ + +# Place local modifications here. diff -u --recursive --new-file xen-4.1.0-vanilla/tools/hotplug/Linux/vif-route xen-4.1.0/tools/hotplug/Linux/vif-route --- xen-4.1.0-vanilla/tools/hotplug/Linux/vif-route 2011-05-06 10:39:15.845610504 -0500 +++ xen-4.1.0/tools/hotplug/Linux/vif-route 2011-05-06 12:00:06.029751382 -0500 @@ -49,6 +49,10 @@ handle_iptable +for f in /etc/xen/scripts/vif-post.d/*; do + [ -x $f ] && . $f +done + log debug "Successful vif-route ${command} for ${dev}." if [ "${command}" = "online" ] then