summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table/message.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/table/message.go')
-rw-r--r--internal/pkg/table/message.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/pkg/table/message.go b/internal/pkg/table/message.go
index 014e8978..9bd843e2 100644
--- a/internal/pkg/table/message.go
+++ b/internal/pkg/table/message.go
@@ -442,6 +442,12 @@ func (p *packerV4) pack(options ...*bgp.MarshallingOption) []*bgp.BGPMessage {
paths := c.paths
attrs := paths[0].GetPathAttrs()
+ // we can apply a fix here when gobgp receives from MP peer
+ // and propagtes to non-MP peer
+ // we should make sure that we next-hop exists in pathattrs
+ // while we build the update message
+ // we do not want to modify the `path` though
+ attrs = append(attrs, bgp.NewPathAttributeNextHop(paths[0].GetNexthop().String()))
attrsLen := 0
for _, a := range attrs {
attrsLen += a.Len()