From 54d9bad55742cc7f2fbbb424a27277faaad32066 Mon Sep 17 00:00:00 2001 From: Oliver Herms <oliver.herms@exaring.de> Date: Fri, 4 May 2018 17:48:52 +0200 Subject: [PATCH] Fixing BGP best path selection --- route/bgp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/route/bgp.go b/route/bgp.go index 24213bed..603fa3f6 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 -- GitLab