diff --git a/route/bgp.go b/route/bgp.go index 24213bed9bea11d2a91fb2cc03d41a77a9cceb7c..603fa3f6f81b92203f167bca72827833c85b85c9 100644 --- a/route/bgp.go +++ b/route/bgp.go @@ -23,6 +23,7 @@ func (r *Route) bgpPathSelection() (best *Path, active []*Path) { if len(active) == 0 { active = append(active, p) + best = p continue } @@ -41,6 +42,7 @@ func (r *Route) bgpPathSelection() (best *Path, active []*Path) { } active = []*Path{p} + best = p } return best, active