diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-30 14:53:56 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-30 14:53:56 +0200 |
commit | 1d5ee87e1dabe83d2e9c8fa13e4a0fb83709ba72 (patch) | |
tree | 6f39d9b163fd2591ec88a1b9e619c7e9dc6da1a1 /templates | |
parent | ae036689c7b6cc5580c3cd05161f9ecd016f0006 (diff) | |
download | vyatta-cfg-quagga-1d5ee87e1dabe83d2e9c8fa13e4a0fb83709ba72.tar.gz vyatta-cfg-quagga-1d5ee87e1dabe83d2e9c8fa13e4a0fb83709ba72.zip |
vrf: T2170: bugfix in IPv6 route leaking - routes not atted into table
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def | 6 |
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 \ |