diff options
author | James Davidson <james@greycastle.net> | 2012-05-09 15:03:43 -0700 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2012-05-16 10:05:11 -0700 |
commit | 94138d5b3c7bc6761ab30ddd6fe24a622d1f986b (patch) | |
tree | bea0635eb1ccf379ddb15d48b0ff7bef920bfe83 /templates/protocols/static | |
parent | 4ad53d24877117793962766c96d059ef4300151b (diff) | |
download | vyatta-cfg-quagga-94138d5b3c7bc6761ab30ddd6fe24a622d1f986b.tar.gz vyatta-cfg-quagga-94138d5b3c7bc6761ab30ddd6fe24a622d1f986b.zip |
Warn user if both gateway-address and static default route are set
Fixes bug 7428.
Diffstat (limited to 'templates/protocols/static')
-rw-r--r-- | templates/protocols/static/route/node.tag/next-hop/node.def | 4 |
1 files changed, 4 insertions, 0 deletions
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 |