From d6148c75a30d87c3f8c1d0f68725127e4c5f3a65 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 15 Dec 2015 18:25:50 +0900 Subject: api: refactor afisafi api remove unused fields Signed-off-by: ISHIDA Wataru --- table/path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table') diff --git a/table/path.go b/table/path.go index 73b02061..6812a184 100644 --- a/table/path.go +++ b/table/path.go @@ -193,7 +193,7 @@ func (path *Path) IsIBGP() bool { func (path *Path) ToApiStruct(id string) *api.Path { nlri := path.GetNlri() n, _ := nlri.Serialize() - rf := uint32(bgp.AfiSafiToRouteFamily(nlri.AFI(), nlri.SAFI())) + family := uint32(bgp.AfiSafiToRouteFamily(nlri.AFI(), nlri.SAFI())) pattrs := func(arg []bgp.PathAttributeInterface) [][]byte { ret := make([][]byte, 0, len(arg)) for _, a := range arg { @@ -209,7 +209,7 @@ func (path *Path) ToApiStruct(id string) *api.Path { IsWithdraw: path.IsWithdraw, Validation: int32(path.Validation), Filtered: path.Filtered(id) > POLICY_DIRECTION_NONE, - Rf: rf, + Family: family, } } -- cgit v1.2.3