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/system/gateway-address/node.def | 1 + 1 file changed, 1 insertion(+) (limited to 'templates/system/gateway-address') diff --git a/templates/system/gateway-address/node.def b/templates/system/gateway-address/node.def index 11f8e0f0..70419e26 100644 --- a/templates/system/gateway-address/node.def +++ b/templates/system/gateway-address/node.def @@ -11,3 +11,4 @@ update: oldgw=`/opt/vyatta/sbin/vyatta-cli-expand-var.pl \\$VAR\(/system/gateway delete: if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl "$VAR(@)" then vtysh -c "configure terminal" -c "no ip route 0.0.0.0/0 $VAR(@)" fi +end: ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl warn -- cgit v1.2.3