From 0995e3d7b2a1a4a359d8e8701fc873f052efb027 Mon Sep 17 00:00:00 2001
From: Daniel Czerwonk <daniel@dan-nrw.de>
Date: Mon, 2 Jul 2018 22:10:34 +0200
Subject: [PATCH] add nexthop to BGPPath

---
 protocols/bgp/server/fsm_established.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/protocols/bgp/server/fsm_established.go b/protocols/bgp/server/fsm_established.go
index 3c5d9605..80a47e7e 100644
--- a/protocols/bgp/server/fsm_established.go
+++ b/protocols/bgp/server/fsm_established.go
@@ -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)
 	}
-- 
GitLab