From 79fc9e5969af848048f35e239e8d979169fffd46 Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Mon, 19 Jul 2021 14:31:18 +0000 Subject: frr: T3689: Fix for static route6 --- templates/protocols/static/route6/node.tag/next-hop/node.def | 7 +++++++ 1 file changed, 7 insertions(+) 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 35a98a9f..561fe347 100644 --- a/templates/protocols/static/route6/node.tag/next-hop/node.def +++ b/templates/protocols/static/route6/node.tag/next-hop/node.def @@ -4,6 +4,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 -- cgit v1.2.3