summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-03-03 11:13:11 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-02 03:22:28 -0800
commita45bd1f290746c447dac1e127477c4b118691aa1 (patch)
tree427ef15117d6fe2f0c1e9e95a3f542f3fda49c0a /table/path.go
parent0079c40526a36608f502f0e395f01197233bbbd2 (diff)
api: add neighbor-ip field to grpc Path message
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go
index dd510692..622ba6d2 100644
--- a/table/path.go
+++ b/table/path.go
@@ -273,6 +273,7 @@ func (path *Path) ToApiStruct(id string) *api.Path {
Family: family,
SourceAsn: path.OriginInfo().source.AS,
SourceId: path.OriginInfo().source.ID.String(),
+ NeighborIp: path.OriginInfo().source.Address.String(),
Stale: path.IsStale(),
IsFromExternal: path.OriginInfo().isFromExternal,
}