Commit 0af8c1c0 authored by David Johnson's avatar David Johnson

Add a route to the emulated "world" on the aggregate nodes via the /29.

(Won't have to do this in the real thing; their route will already be
the /29 gateway.  Just have to do it here cause we're in Emulab and we
already have a gateway.)
parent 878e5f16
......@@ -67,6 +67,17 @@ if [ "$HOSTNAME" = "$CONCENTRATOR" ]; then
#done
fi
#
# If this is an aggregate boss/nuc/etc, add a route via the /29 gateway
# for that aggregate. Won't have to do this in the real thing.
#
aggprefix=`echo $HOSTNAME | sed -nre 's/^agg([0-9]*)[a-zA-Z].*$/\1/p'`
if [ -n $aggprefix ] ; then
eval "varname=${aggprefix}_GW"
eval "agg_gw=\$$varname"
ip route add 192.168.0.0/16 via $agg_gw
fi
# Mark things as done right here, it's safe.
touch $OURDIR/setup-driver-done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment