nexthop routes don't use metrics
This commit is contained in:
parent
278e65b24a
commit
efec0b5012
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user