diff options
author | Shirish Sandesara <shirish.sandesara@vyatta.com> | 2013-05-28 10:57:37 -0700 |
---|---|---|
committer | Shirish Sandesara <shirish.sandesara@vyatta.com> | 2013-05-28 10:57:37 -0700 |
commit | c9d72ff7ad1d4cc13517bbfc6a2375ff757c767c (patch) | |
tree | 301af20f4cc450c316173840dd3396c0274c6a8c | |
parent | d7c00cc04591a96c8378175ac0a9f24c0107fd6b (diff) | |
download | vyatta-cfg-quagga-c9d72ff7ad1d4cc13517bbfc6a2375ff757c767c.tar.gz vyatta-cfg-quagga-c9d72ff7ad1d4cc13517bbfc6a2375ff757c767c.zip |
modified to use ipv6 for pbr
-rw-r--r-- | templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def | 22 |
1 files 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 |