diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 2 | ||||
-rw-r--r-- | server/zclient.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go index 325f6730..70cafeaa 100644 --- a/server/server.go +++ b/server/server.go @@ -1438,7 +1438,7 @@ func (server *BgpServer) Api2PathList(resource api.Resource, name string, ApiPat pattr = append(pattr, bgp.NewPathAttributeExtendedCommunities(extcomms)) } - paths = append(paths, table.NewPath(pi, nlri, path.IsWithdraw, pattr, time.Now(), path.NoImplicitWithdraw)) + paths = append(paths, table.NewPath(pi, nlri, path.IsWithdraw, pattr, time.Now(), path.NoImplicitWithdraw, path.IsFromOps)) } return paths, nil diff --git a/server/zclient.go b/server/zclient.go index 3c3d3180..a6427781 100644 --- a/server/zclient.go +++ b/server/zclient.go @@ -127,7 +127,7 @@ func createPathFromIPRouteMessage(m *zebra.Message, peerInfo *table.PeerInfo) *t med := bgp.NewPathAttributeMultiExitDisc(body.Metric) pattr = append(pattr, med) - p := table.NewPath(peerInfo, nlri, isWithdraw, pattr, time.Now(), false) + p := table.NewPath(peerInfo, nlri, isWithdraw, pattr, time.Now(), false, false) p.SetIsFromZebra(true) return p } |