diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-19 18:22:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 18:22:35 +0200 |
commit | 3aefdbce8b8da7278b34e531c6b46a06a4270893 (patch) | |
tree | 5ac441387687e033b8c95f12008fa47502119d89 | |
parent | 3dfc2e9b90e7284201ee8d5c0fdebd4b4003b122 (diff) | |
parent | 79fc9e5969af848048f35e239e8d979169fffd46 (diff) | |
download | vyatta-cfg-quagga-3aefdbce8b8da7278b34e531c6b46a06a4270893.tar.gz vyatta-cfg-quagga-3aefdbce8b8da7278b34e531c6b46a06a4270893.zip |
Merge pull request #84 from sever-sever/T3689
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 |