From c10761520879319de49c50e7d8cdf67a566dba98 Mon Sep 17 00:00:00 2001 From: Shirish Sandesara Date: Wed, 5 Jun 2013 09:39:17 -0700 Subject: modified for ipv6 --- .../node.tag/route/node.tag/next-hop/node.def | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def b/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def index adf83a6a..f9475924 100644 --- a/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def +++ b/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def @@ -1,6 +1,7 @@ tag: type: ipv6 -help: Next-hop router [REQUIRED] +help: Next-hop IPv6 router [REQUIRED] + end: if [[ -n "$VAR(../../../table6/@)" ]] then @@ -8,27 +9,18 @@ end: fi if [[ -z "$VAR(./disable)" ]] then + # delete only for child and not the parent if [[ ${COMMIT_ACTION} = 'DELETE' ]] then if ! ${vyatta_sbindir}/vyatta-next-hop-check $VAR(../@) ipv6 address; then exit 1; fi - if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \ - "$VAR(../@)" "$VAR(@)" - then - vtysh -c "configure terminal" \ - -c "no ipv6 route $VAR(../@) $VAR(@) $table" - fi - #echo vtysh -c "configure terminal" -c "ipv6 route $VAR(../@) $VAR(@) $table"; - vtysh -c "configure terminal" \ - -c "ipv6 route $VAR(../@) $VAR(@) $table"; - fi - else - if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \ - "$VAR(../@)" "$VAR(@)" - then + vtysh -c "configure terminal" \ -c "no ipv6 route $VAR(../@) $VAR(@) $table" + else + vtysh -c "configure terminal" \ + -c " ipv6 route $VAR(../@) $VAR(@) $table" fi fi -- cgit v1.2.3