[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Only write a success node when coming online, not going offline.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 801c6363501b94b935e1946ddb3effee3ae6b2c2
# Parent  3c01d53e383d4a2a294167d40968601043921d53
Only write a success node when coming online, not going offline.

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

diff -r 3c01d53e383d -r 801c6363501b tools/examples/vif-nat
--- a/tools/examples/vif-nat    Fri Nov 25 17:08:22 2005
+++ b/tools/examples/vif-nat    Fri Nov 25 17:09:49 2005
@@ -55,4 +55,8 @@
 
 handle_iptable
 
-success
+log debug "Successful vif-nat $command for $vif."
+if [ "$command" == "online" ]
+then
+  success
+fi
diff -r 3c01d53e383d -r 801c6363501b tools/examples/vif-route
--- a/tools/examples/vif-route  Fri Nov 25 17:08:22 2005
+++ b/tools/examples/vif-route  Fri Nov 25 17:09:49 2005
@@ -47,4 +47,8 @@
 
 handle_iptable
 
-success
+log debug "Successful vif-route $command for $vif."
+if [ "$command" == "online" ]
+then
+  success
+fi

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.