Skip to content
Snippets Groups Projects
Commit 54d9bad5 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fixing BGP best path selection

parent dbf7ab8c
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ func (r *Route) bgpPathSelection() (best *Path, active []*Path) { ...@@ -23,6 +23,7 @@ func (r *Route) bgpPathSelection() (best *Path, active []*Path) {
if len(active) == 0 { if len(active) == 0 {
active = append(active, p) active = append(active, p)
best = p
continue continue
} }
...@@ -41,6 +42,7 @@ func (r *Route) bgpPathSelection() (best *Path, active []*Path) { ...@@ -41,6 +42,7 @@ func (r *Route) bgpPathSelection() (best *Path, active []*Path) {
} }
active = []*Path{p} active = []*Path{p}
best = p
} }
return best, active return best, active
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment