From c9d72ff7ad1d4cc13517bbfc6a2375ff757c767c Mon Sep 17 00:00:00 2001 From: Shirish Sandesara Date: Tue, 28 May 2013 10:57:37 -0700 Subject: modified to use ipv6 for pbr --- .../node.tag/route/node.tag/next-hop/node.def | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 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 c11d2859..adf83a6a 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 @@ -16,31 +16,19 @@ end: if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \ "$VAR(../@)" "$VAR(@)" then -echo 111 vtysh -c "configure terminal" \ - -c "no ip -6 route $VAR(../@) $VAR(@) $table" + -c "no ipv6 route $VAR(../@) $VAR(@) $table" fi - else - if [[ -n "$VAR(./distance/@)" ]] - then - #dist="$VAR(./distance/@)" - dist="metric $VAR(./distance/@)" - fi -echo 111 - echo vtysh -c "configure terminal" -c "ip -6 route add $VAR(../@) via $VAR(@) $table $dist"; -echo 222 - #vtysh -c "configure terminal" \ - #-c "ip -6 route $VAR(../@) $VAR(@) $table $dist"; - echo ip -6 route add $VAR(../@) via $VAR(@) $table $dist; - ip -6 route add $VAR(../@) via $VAR(@) $table $dist; + #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 -echo 333 vtysh -c "configure terminal" \ - -c "no ip -6 route $VAR(../@) $VAR(@) $table" + -c "no ipv6 route $VAR(../@) $VAR(@) $table" fi fi -- cgit v1.2.3