diff options
Diffstat (limited to 'table/adj.go')
-rw-r--r-- | table/adj.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/table/adj.go b/table/adj.go index 8aa40370..2fb46b4a 100644 --- a/table/adj.go +++ b/table/adj.go @@ -17,7 +17,6 @@ package table import ( "github.com/osrg/gobgp/packet/bgp" - "reflect" ) type AdjRib struct { @@ -68,7 +67,7 @@ func (adj *AdjRib) Update(pathList []*Path) { adj.accepted[rf]++ } } - if found && reflect.DeepEqual(old.GetPathAttrs(), path.GetPathAttrs()) { + if found && old.Equal(path) { path.setTimestamp(old.GetTimestamp()) } adj.table[rf][key] = path |