Skip to content
Snippets Groups Projects
Commit a25986ac authored by Maximilian Wilhelm's avatar Maximilian Wilhelm
Browse files

Unify two equal branches into one.

parent 77325355
Branches
Tags
No related merge requests found
...@@ -58,9 +58,6 @@ func (a *AdjRIBOut) AddPath(pfx bnet.Prefix, p *route.Path) error { ...@@ -58,9 +58,6 @@ func (a *AdjRIBOut) AddPath(pfx bnet.Prefix, p *route.Path) error {
p = p.Copy() p = p.Copy()
if !a.neighbor.IBGP && !a.neighbor.RouteServerClient { if !a.neighbor.IBGP && !a.neighbor.RouteServerClient {
p.BGPPath.Prepend(a.neighbor.LocalASN, 1) p.BGPPath.Prepend(a.neighbor.LocalASN, 1)
}
if !a.neighbor.IBGP && !a.neighbor.RouteServerClient {
p.BGPPath.NextHop = a.neighbor.LocalAddress p.BGPPath.NextHop = a.neighbor.LocalAddress
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment