summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-07 06:31:48 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-07 06:31:48 +0900
commitc9959836a6e3ed44a9179e589731b026a4f15ac6 (patch)
tree32423a0a4ac1e93c4a29c4506c1a5f7a534488f8
parent02cd2503f3176e16be9c0a4310bae1f558637177 (diff)
table: add source-asn and source-id to api struct
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--table/path.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go
index 12739ec6..3837333f 100644
--- a/table/path.go
+++ b/table/path.go
@@ -216,6 +216,8 @@ func (path *Path) ToApiStruct(id string) *api.Path {
Validation: int32(path.OriginInfo().validation.ToInt()),
Filtered: path.Filtered(id) == POLICY_DIRECTION_IN,
Family: family,
+ SourceAsn: path.OriginInfo().source.AS,
+ SourceId: path.OriginInfo().source.ID.String(),
}
}