summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-09-18 05:06:18 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-07-04 15:02:10 +0900
commit87f0b0bdc52945ae98ef6d44b7f118216bde95ca (patch)
tree668e91c266c290ea0130dd71b7f8403ab62e6d30 /api/grpc_server.go
parent454fd93ef707c530b3ece04ef4727ad1f7371d4b (diff)
api/cli: support showing path-identifier
$ gobgp neighbor <neighbor address> ID Network Next Hop AS_PATH Age Attrs 2 10.0.0.10/32 10.10.1.2 01:05:35 [{Origin: i} {LocalPref: 100}] 1 10.0.0.10/32 10.10.1.1 01:05:35 [{Origin: i} {LocalPref: 100}] 3 10.1.0.10/32 10.10.1.3 01:05:35 [{Origin: i} {LocalPref: 100}] Signed-off-by: Wataru Ishida <ishida.wataru@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 cb83b132..3b8f2fe4 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -370,6 +370,7 @@ func ToPathApi(path *table.Path) *Path {
NoImplicitWithdraw: path.NoImplicitWithdraw(),
Uuid: path.UUID().Bytes(),
IsNexthopInvalid: path.IsNexthopInvalid,
+ Identifier: nlri.PathIdentifier(),
}
if s := path.GetSource(); s != nil {
p.SourceAsn = s.AS