summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/table.go')
-rw-r--r--table/table.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/table/table.go b/table/table.go
index 50cecc58..cbe5c4c9 100644
--- a/table/table.go
+++ b/table/table.go
@@ -86,8 +86,7 @@ func (t *Table) deletePathsByVrf(vrf *Vrf) []*Path {
return pathList
}
if p.IsLocal() && vrf.Rd.String() == rd.String() {
- p.IsWithdraw = true
- pathList = append(pathList, p)
+ pathList = append(pathList, p.Clone(true))
break
}
}
@@ -108,8 +107,7 @@ func (t *Table) deleteRTCPathsByVrf(vrf *Vrf, vrfs map[string]*Vrf) []*Path {
if lhs == rhs && isLastTargetUser(vrfs, target) {
for _, p := range dest.knownPathList {
if p.IsLocal() {
- p.IsWithdraw = true
- pathList = append(pathList, p)
+ pathList = append(pathList, p.Clone(true))
break
}
}