summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.def4
-rw-r--r--templates/system/gateway-address/node.def1
2 files changed, 5 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
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