From c9959836a6e3ed44a9179e589731b026a4f15ac6 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 7 Feb 2016 06:31:48 +0900 Subject: table: add source-asn and source-id to api struct Signed-off-by: ISHIDA Wataru --- table/path.go | 2 ++ 1 file changed, 2 insertions(+) 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(), } } -- cgit v1.2.3