Skip to content
Snippets Groups Projects
Commit 0995e3d7 authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

add nexthop to BGPPath

parent 33b162df
No related branches found
No related tags found
No related merge requests found
......@@ -257,6 +257,8 @@ func (s *establishedState) newRoutePath() *route.Path {
}
func (s *establishedState) multiProtocolUpdate(path *route.Path, nlri packet.MultiProtocolReachNLRI) {
path.BGPPath.NextHop = nlri.NextHop
for _, pfx := range nlri.Prefixes {
s.fsm.adjRIBIn.AddPath(pfx, path)
}
......
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