summaryrefslogtreecommitdiff
path: root/templates/protocols
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-30 14:53:56 +0200
committerChristian Poessinger <christian@poessinger.com>2020-03-30 14:53:56 +0200
commit1d5ee87e1dabe83d2e9c8fa13e4a0fb83709ba72 (patch)
tree6f39d9b163fd2591ec88a1b9e619c7e9dc6da1a1 /templates/protocols
parentae036689c7b6cc5580c3cd05161f9ecd016f0006 (diff)
downloadvyatta-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/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 \