WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Have the vif scripts expect the offline event, not the r

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Have the vif scripts expect the offline event, not the remove event. With
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Nov 2005 21:16:14 +0000
Delivery-date: Tue, 15 Nov 2005 21:17:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 60bf9aa39043681828eda93cf769d2c5208d6922
# Parent  bb270cb5d2e850aa4fef20902c4d54f9d916f1ff
Have the vif scripts expect the offline event, not the remove event.  With
the remove event, the script environment variable has disappeared, so we must
hook on the offline event instead.  This fix was put into xen-backend.rules,
but not the vif scripts, so they were out of sync, and the interfaces were not
being properly closed down.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r bb270cb5d2e8 -r 60bf9aa39043 tools/examples/vif-bridge
--- a/tools/examples/vif-bridge Tue Nov 15 14:54:51 2005
+++ b/tools/examples/vif-bridge Tue Nov 15 14:56:47 2005
@@ -60,7 +60,7 @@
         ifconfig "$vif" up || fatal "ifconfig $vif up failed"
         ;;
 
-    remove)
+    offline)
         # vifs are auto-removed from bridge.
         ifconfig "$vif" down || fatal "ifconfig $vif down failed"
         ;;
diff -r bb270cb5d2e8 -r 60bf9aa39043 tools/examples/vif-common.sh
--- a/tools/examples/vif-common.sh      Tue Nov 15 14:54:51 2005
+++ b/tools/examples/vif-common.sh      Tue Nov 15 14:56:47 2005
@@ -32,7 +32,7 @@
 fi
 
 case "$command" in
-    add | offline)
+    add | remove)
         exit 0
         ;;
 esac
diff -r bb270cb5d2e8 -r 60bf9aa39043 tools/examples/vif-nat
--- a/tools/examples/vif-nat    Tue Nov 15 14:54:51 2005
+++ b/tools/examples/vif-nat    Tue Nov 15 14:56:47 2005
@@ -45,7 +45,7 @@
         echo 1 >/proc/sys/net/ipv4/conf/${vif}/proxy_arp
         ipcmd='a'
         ;;
-    remove)
+    offline)
         ifconfig ${vif} down
         ipcmd='d'
         ;;
diff -r bb270cb5d2e8 -r 60bf9aa39043 tools/examples/vif-route
--- a/tools/examples/vif-route  Tue Nov 15 14:54:51 2005
+++ b/tools/examples/vif-route  Tue Nov 15 14:56:47 2005
@@ -31,7 +31,7 @@
         echo 1 >/proc/sys/net/ipv4/conf/${vif}/proxy_arp
         ipcmd='a'
         ;;
-    remove)
+    offline)
         ifdown ${vif}
         ipcmd='d'
         ;;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Have the vif scripts expect the offline event, not the remove event. With, Xen patchbot -unstable <=