From f79339803b8093a6cac1c31a0036af51003bf2fb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 9 Mar 2020 20:09:21 +0100 Subject: vrf: T31: fix bug when deleting old route with a next-hop-interface --- .../protocols/vrf/node.tag/static/route/node.tag/next-hop/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/protocols/vrf/node.tag/static/route/node.tag/next-hop/node.def b/templates/protocols/vrf/node.tag/static/route/node.tag/next-hop/node.def index 30b9cfd9..ec7a9eed 100644 --- a/templates/protocols/vrf/node.tag/static/route/node.tag/next-hop/node.def +++ b/templates/protocols/vrf/node.tag/static/route/node.tag/next-hop/node.def @@ -8,7 +8,7 @@ end: ### remove the old entry from frr first on an update if [ ${COMMIT_ACTION} = 'ACTIVE' ] then - OLD_IF=`cli-shell-api returnEffectiveValue protocols static route $VAR(../@) next-hop $VAR(@) next-hop-interface` + OLD_IF=`cli-shell-api returnEffectiveValue protocols vrf $VRF_NAME static route $VAR(../@) next-hop $VAR(@) next-hop-interface` vtysh -c "configure terminal" \ -c "no ip route $VAR(../@) $VAR(@) $OLD_IF vrf $VRF_NAME $VAR(./distance/@)"; fi -- cgit v1.2.3