From c3a6d636df37926787fba3d02d63445333e34806 Mon Sep 17 00:00:00 2001 From: Hitoshi Irino Date: Sun, 2 Jun 2019 16:14:19 +0900 Subject: fix bug pointed out by issue #2089 --- pkg/server/zclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/server') diff --git a/pkg/server/zclient.go b/pkg/server/zclient.go index a4b8e378..0cd5c914 100644 --- a/pkg/server/zclient.go +++ b/pkg/server/zclient.go @@ -162,7 +162,7 @@ func newIPRouteBody(dst []*table.Path, vrfId uint32, z *zebraClient) (body *zebr if nhvrfid, ok := z.pathVrfMap[path]; ok { // if the path is withdraw, delete path from pathVrfMap after refer the path nhVrfId = nhvrfid - if isWithdraw { + if path.IsWithdraw { delete(z.pathVrfMap, path) } } else { -- cgit v1.2.3