diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def b/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def index f7c63d70..61ee4854 100644 --- a/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def +++ b/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def @@ -13,13 +13,14 @@ end: if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \ "$VAR(../@)" "$VAR(@)" then - quagga_conf=`vtysh -c "show running-config" | \ - sed -n '/vrf $VRF_NAME/,/!/p' | \ - grep "^ipv6 route $VAR(../@) $VAR(@)"` - ifname=`echo $quagga_conf | awk '{print $5}'` + quagga_conf=$(vtysh -c "show running-config" | \ + sed -n "/vrf ${VRF_NAME}/,/!/p" | \ + grep "^ ipv6 route $VAR(../@) $VAR(@)") + + vtysh -c "configure terminal" \ + -c "vrf ${VRF_NAME}" \ + -c "no ${quagga_conf}" - vtysh -c "configure terminal" \ - -c "no ipv6 route $VAR(../@) $VAR(@) $ifname vrf $VRF_NAME" fi else if [[ -n "$VAR(./distance/@)" ]]; then |