From 94138d5b3c7bc6761ab30ddd6fe24a622d1f986b Mon Sep 17 00:00:00 2001 From: James Davidson Date: Wed, 9 May 2012 15:03:43 -0700 Subject: Warn user if both gateway-address and static default route are set Fixes bug 7428. --- templates/protocols/static/route/node.tag/next-hop/node.def | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates/protocols/static') diff --git a/templates/protocols/static/route/node.tag/next-hop/node.def b/templates/protocols/static/route/node.tag/next-hop/node.def index eb41b4e4..f5d5d417 100644 --- a/templates/protocols/static/route/node.tag/next-hop/node.def +++ b/templates/protocols/static/route/node.tag/next-hop/node.def @@ -31,3 +31,7 @@ end: -c "no ip route $VAR(../@) $VAR(@)" fi fi + if [[ "$VAR(../@)" = "0.0.0.0/0" ]] + then + ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl warn + fi -- cgit v1.2.3