summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/grpc_server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go
index 54d4b28d..386fa45c 100644
--- a/pkg/server/grpc_server.go
+++ b/pkg/server/grpc_server.go
@@ -118,8 +118,8 @@ func toPathAPI(binNlri []byte, binPattrs [][]byte, anyNlri *any.Any, anyPattrs [
nlri := path.GetNlri()
t, _ := ptypes.TimestampProto(path.GetTimestamp())
p := &api.Path{
- Nlri: binNlri,
- Pattrs: binPattrs,
+ Nlri: anyNlri,
+ Pattrs: anyPattrs,
Age: t,
IsWithdraw: path.IsWithdraw,
ValidationDetail: newValidationFromTableStruct(v),
@@ -130,8 +130,8 @@ func toPathAPI(binNlri []byte, binPattrs [][]byte, anyNlri *any.Any, anyPattrs [
IsNexthopInvalid: path.IsNexthopInvalid,
Identifier: nlri.PathIdentifier(),
LocalIdentifier: nlri.PathLocalIdentifier(),
- AnyNlri: anyNlri,
- AnyPattrs: anyPattrs,
+ NlriBinary: binNlri,
+ PattrsBinary: binPattrs,
}
if s := path.GetSource(); s != nil {
p.SourceAsn = s.AS