summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table/adj.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/table/adj.go')
-rw-r--r--internal/pkg/table/adj.go23
1 files changed, 1 insertions, 22 deletions
diff --git a/internal/pkg/table/adj.go b/internal/pkg/table/adj.go
index 9ae1e156..5dda2a29 100644
--- a/internal/pkg/table/adj.go
+++ b/internal/pkg/table/adj.go
@@ -101,28 +101,7 @@ func (adj *AdjRib) UpdateAdjRibOut(pathList []*Path) {
}
t := adj.table[path.GetRouteFamily()]
d := t.getOrCreateDest(path.GetNlri(), 0)
-
- var old *Path
- idx := -1
- for i, p := range d.knownPathList {
- if p.GetNlri().PathLocalIdentifier() == path.GetNlri().PathLocalIdentifier() {
- idx = i
- break
- }
- }
- if idx != -1 {
- old = d.knownPathList[idx]
- }
-
- // No withdraw use case for adj-out
- if idx != -1 {
- if old.Equal(path) {
- path.setTimestamp(old.GetTimestamp())
- }
- d.knownPathList[idx] = path
- } else {
- d.knownPathList = append(d.knownPathList, path)
- }
+ d.knownPathList = append(d.knownPathList, path)
}
}