From: Andy Bavier Date: Thu, 19 Jun 2008 20:59:04 +0000 (+0000) Subject: Scripts to associate a token bucket with a virtual link (Yogesh) X-Git-Tag: vsys-0.7-14~5 X-Git-Url: http://git.onelab.eu/?p=vsys.git;a=commitdiff_plain;h=29c254469667d325b86ec3fa438581ab34f3244d Scripts to associate a token bucket with a virtual link (Yogesh) --- diff --git a/factory/setup-link b/factory/setup-link index 1eedfab..5c93a30 100755 --- a/factory/setup-link +++ b/factory/setup-link @@ -48,6 +48,37 @@ chcontext --ctx 1 -- echo \$PID > /sys/class/net/$ETUN0/new_ns_pid EOF chmod +x $GRAB +### Create "bind link" script +BIND=/vsys/bind-link-$ETUN0 +echo $SLICE > $BIND.acl +rm -f $BIND +cat > $BIND < $UNBIND < $DELETE.acl @@ -73,8 +104,7 @@ ip tunnel del $EGRE # Clean up files rm -f $GRAB $GRAB.acl rm -f $DELETE $DELETE.acl - +rm -f $BIND $BIND.acl +rm -f $UNBIND $UNBIND.acl EOF chmod +x $DELETE - -