summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-07-19 14:31:18 +0000
committerDaniil Baturin <daniil@baturin.org>2021-07-21 14:03:00 +0200
commit3da795954cba2df8121dc4da510b37db11f4eefe (patch)
tree5e18e558e807560310408e2fa4b0ec6e0ddc6119
parent680d804eab15e0aa81d47aca7a292aa8007d6463 (diff)
downloadvyatta-cfg-quagga-3da795954cba2df8121dc4da510b37db11f4eefe.tar.gz
vyatta-cfg-quagga-3da795954cba2df8121dc4da510b37db11f4eefe.zip
frr: T3689: Fix for static route6
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.def
index e3a668b7..d83535dc 100644
--- a/templates/protocols/static/route6/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route6/node.tag/next-hop/node.def
@@ -7,6 +7,13 @@ help: Next-hop IPv6 router [REQUIRED]
end:
if [[ -z "$VAR(./disable)" ]]
then
+ ### remove the old entry from frr first on an update
+ if [ ${COMMIT_ACTION} = 'ACTIVE' ]
+ then
+ OLD_IF=`cli-shell-api returnEffectiveValue protocols static route6 $VAR(../@) next-hop $VAR(@) interface`
+ vtysh -c "configure terminal" \
+ -c "no ipv6 route $VAR(../@) $VAR(@) $OLD_IF $VAR(./distance/@)";
+ fi
if [[ ${COMMIT_ACTION} = 'DELETE' ]]
then
if ! ${vyatta_sbindir}/vyatta-next-hop-check $VAR(../@) ipv6 address; then