nexthop routes don't use metrics

This commit is contained in:
Roy Marples 2009-06-01 20:06:56 +01:00
parent 278e65b24a
commit efec0b5012

View File

@ -157,7 +157,10 @@ _add_route()
shift
done
if ! ${have_metric} && [ -n "${metric}" ]; then
# We cannot use a metric if we're using a nexthop
if ! ${have_metric} && \
[ -n "${metric}" -a -z "${cmd##* nexthop }" ]
then
cmd="${cmd} metric ${metric}"
fi