summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-07-26 07:56:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-07-26 08:09:02 +0900
commit22772c0e62ab215a9872761ca01d103e297f98bd (patch)
tree5367116d55e327ae4bda16e0b5cd47c05a22aa4a /api/grpc_server.go
parentc99e499bce7a33feee36240b4d72acde8b0cb3d5 (diff)
add LocalPathIdentifier
add-path support needs two identifiers, remote (rx) and local (tx). The remote identifiers are assigined by remote peers, the local ones are assigned by gobgpd itself. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r--api/grpc_server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index 54fd01ec..419fd2b6 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -385,6 +385,7 @@ func ToPathApi(path *table.Path) *Path {
Uuid: path.UUID().Bytes(),
IsNexthopInvalid: path.IsNexthopInvalid,
Identifier: nlri.PathIdentifier(),
+ LocalIdentifier: nlri.PathLocalIdentifier(),
}
if s := path.GetSource(); s != nil {
p.SourceAsn = s.AS