kill pltap-ovs on create-bridge timeout
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Tue, 11 Sep 2012 12:27:56 +0000 (14:27 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Tue, 11 Sep 2012 12:27:56 +0000 (14:27 +0200)
planetlab/scripts/sliver-ovs

index dce8438..dabb016 100755 (executable)
@@ -189,6 +189,7 @@ function create_bridge () {
 
     # we're clear
     TAPNAME=$(pltap-ovs)
+    trap kill_pltap_ovs EXIT
     # xxx wouldn't that be safer if left-aligned ?
     vsysc vif_up << EOF
        $TAPNAME