diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-02-07 06:31:48 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-02-07 06:31:48 +0900 |
commit | c9959836a6e3ed44a9179e589731b026a4f15ac6 (patch) | |
tree | 32423a0a4ac1e93c4a29c4506c1a5f7a534488f8 | |
parent | 02cd2503f3176e16be9c0a4310bae1f558637177 (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.go | 2 |
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(), } } |