Skip to content

Commit

Permalink
feat(evpn): remove prints
Browse files Browse the repository at this point in the history
Signed-off-by: Saikumar, Banoth <[email protected]>
  • Loading branch information
Inbanoth committed Oct 10, 2024
1 parent 0fb5134 commit 3db3729
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,6 @@ func (l L3Decoder) translateAddedRoute(route netlink_polling.RouteStruct) []inte
ecmp.runWebsterAlg()
entries = ecmp.addEcmpDispatcher(entries)
}
fmt.Printf("Inside translateAddedRoute Entries :%+v", entries)
route.Nexthops = []*netlink_polling.NexthopStruct{}
route.Nexthops = ecmp.Nexthop
ecmpFlag = true
Expand All @@ -1166,17 +1165,14 @@ func (l L3Decoder) translateDeletedRoute(route netlink_polling.RouteStruct) []in

var ecmp EcmpDispatcher
if len(route.Nexthops) > 1 {
fmt.Printf("Inside translateDeletedRoute")
if !ecmp.EcmpDispatcherInit(route.Nexthops, route.Vrf) {
return entries
}
ecmp.id, refCount = ecmpIndexPool.Release_id(ecmp.key, route.Key)
fmt.Printf("ecmo id :%+v , refCount = %v", ecmp.id, refCount)
if refCount == 0 {
ecmp.runWebsterAlg()
entries = ecmp.delEcmpDispatcher(entries)
}
fmt.Printf("Inside translateDeletedRoute Entries :%+v", entries)
route.Nexthops = []*netlink_polling.NexthopStruct{}
route.Nexthops = ecmp.Nexthop
ecmpFlag = true
Expand Down

0 comments on commit 3db3729

Please sign in to comment.