X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=teardown-egre-link;h=46debc18cb6b6434036913c26be9ef70e1af8b88;hb=8b07d3cdcc4cbe4eadc0a06175912666c9775d6d;hp=a0d5e5b5fcffba665d8cfa1c3294f0dbc2ab7f2c;hpb=f6ed4fcd49097356b5f23143e1df6fc7eb20dcb4;p=nodemanager-topo.git diff --git a/teardown-egre-link b/teardown-egre-link index a0d5e5b..46debc1 100755 --- a/teardown-egre-link +++ b/teardown-egre-link @@ -5,23 +5,7 @@ KEY=$2 LINK=${KEY}x${NODEID} EGRE=d$LINK -BRIDGE=c$LINK -ETUN1=b$LINK -MARK=`iptables -t mangle -L -v|grep -m 1 $BRIDGE|awk '{print $NF}'` - -# Remove iptables rules. Sometimes there is more than one. -while [ $? -eq 0 ]; do - iptables -t mangle -D FORWARD -o $BRIDGE -j MARK --set-mark $MARK -done - -# Get rid of etun devices, only need name of one of them -ip link delete dev $ETUN1 - -# Get rid of bridge -ifconfig $BRIDGE down -brctl delbr $BRIDGE - -# Get rid of EGRE tunnel +# Get rid of EGRE tunnel and MACVLAN interface ip tunnel del $EGRE