From: Giuseppe Lettieri <g.lettieri@iet.unipi.it>
Date: Wed, 24 Apr 2013 08:29:23 +0000 (+0200)
Subject: fix fake shutdown of external nodes
X-Git-Tag: sliver-openvswitch-1.10.90-2~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e018053f14beb09ac7f634687c48ac2a214208f2;p=sliver-openvswitch.git

fix fake shutdown of external nodes
---

diff --git a/planetlab/exp-tool/Makefile b/planetlab/exp-tool/Makefile
index d0712c58c..a62e0d54f 100644
--- a/planetlab/exp-tool/Makefile
+++ b/planetlab/exp-tool/Makefile
@@ -535,9 +535,18 @@ $(foreach host,$(EXTERNAL_HOSTS),cache/rsnap.links.$(host)): ;
 $(foreach host,$(EXTERNAL_HOSTS),cache/db.$(host)):
 	@touch $@
 
+$(foreach host,$(EXTERNAL_HOSTS),del-db.$(host)): del-db.%:
+	@rm cache/db.$*
+
 $(foreach host,$(EXTERNAL_HOSTS),cache/switch.$(host)): ;
 	@touch $@
 
+$(foreach host,$(EXTERNAL_HOSTS),del-switch.$(host)): del-switch.%:
+	@rm -f cache/switch.$* \
+	       cache/port.$*$(SEP)*@1  cache/port.*$(SEP)$*@2  \
+	       cache/endpoint.$*$(SEP)*@2  cache/endpoint.*$(SEP)$*@1  \
+	       L/$*$(SEP)*	      L/*$(SEP)$* \
+	       cache/controller.$*
 
 .SECONDEXPANSION: