diff options
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/gateway-address/node.def | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/system/gateway-address/node.def b/templates/system/gateway-address/node.def index f41a5212..e5764c0c 100644 --- a/templates/system/gateway-address/node.def +++ b/templates/system/gateway-address/node.def @@ -5,7 +5,8 @@ update: oldgw=`/opt/vyatta/sbin/vyatta-cli-expand-var.pl '$(/system/gateway-addr if [ -n "$oldgw" ]; then vyatta-vtysh --noerror -c "configure terminal" \ -c "no ip route 0.0.0.0/0 $oldgw" - vyatta-vtysh -c "configure terminal" -c "ip route 0.0.0.0/0 $VAR(@)" + fi + vyatta-vtysh -c "configure terminal" -c "ip route 0.0.0.0/0 $VAR(@)" delete: if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl "$VAR(@)" then vyatta-vtysh -c "configure terminal" -c "no ip route 0.0.0.0/0 $VAR(@)" fi |