summaryrefslogtreecommitdiff
path: root/templates/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols')
-rw-r--r--templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def6
1 files changed, 5 insertions, 1 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 788b6819..0a320525 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
@@ -30,8 +30,12 @@ end:
INTERFACE="$VAR(./interface/@)"
fi
+ if [[ -n "$VAR(./next-hop-vrf/@)" ]]; then
+ NEXTHOP_VRF="nexthop-vrf $VAR(./next-hop-vrf/@)"
+ fi
+
vtysh -c "configure terminal" \
- -c "ipv6 route $VAR(../@) $VAR(@) $INTERFACE vrf $VRF_NAME $DIST";
+ -c "ipv6 route $VAR(../@) $VAR(@) $INTERFACE vrf $VRF_NAME $NEXTHOP_VRF $DIST";
fi
else
if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \