ache/bridge.% needs to contain the ifname
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 10 Sep 2012 12:30:10 +0000 (14:30 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 10 Sep 2012 12:30:10 +0000 (14:30 +0200)
planetlab/exp-tool/Makefile

index a34d183..d25a440 100644 (file)
@@ -111,7 +111,7 @@ cache/switch.%: cache/db.%
 
 cache/bridge.%: cache/switch.%
        @echo "Creating bridge on $(call display,$*) - logs in $@.log"
-       @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs create-bridge $(IP_$*) &> $@.log && touch $@
+       @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs create-bridge $(IP_$*) > $@ 2> $@.log || { rm $@; exit 1; }
 
 # xxx this probably needs a more thorough cleanup in cache/
 cache/stop.%: del-bridge.%