diff options
author | Viacheslav <v.gletenko@vyos.io> | 2021-07-19 14:31:18 +0000 |
---|---|---|
committer | Viacheslav <v.gletenko@vyos.io> | 2021-07-19 14:31:18 +0000 |
commit | 79fc9e5969af848048f35e239e8d979169fffd46 (patch) | |
tree | 5ac441387687e033b8c95f12008fa47502119d89 | |
parent | 3dfc2e9b90e7284201ee8d5c0fdebd4b4003b122 (diff) | |
download | vyatta-cfg-quagga-79fc9e5969af848048f35e239e8d979169fffd46.tar.gz vyatta-cfg-quagga-79fc9e5969af848048f35e239e8d979169fffd46.zip |
frr: T3689: Fix for static route6
-rw-r--r-- | templates/protocols/static/route6/node.tag/next-hop/node.def | 7 |
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 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 |