Skip to content

Commit

Permalink
fix(evpn-bridge): netlink neighbor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Saikumar, Banoth <banoth.saikumar@intel.com>
  • Loading branch information
Inbanoth authored and artek-koltun committed Aug 29, 2024
1 parent cbc1fba commit aeedab7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/netlink/neighbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ func cmdProcessNb(nbs []NeighIPStruct, v string) NeighList {
// addNeigh adds the neigh
func addNeigh(dump NeighList) {
for _, n := range dump.NS {
n.neighborAnnotate()
if len(latestNeighbors) == 0 {
latestNeighbors[n.Key] = n
} else if !CheckNdup(n.Key) {
n = n.neighborAnnotate()
if len(latestNeighbors) == 0 || !CheckNdup(n.Key) {
latestNeighbors[n.Key] = n
}
}
Expand Down

0 comments on commit aeedab7

Please sign in to comment.