summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-15 18:25:50 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-15 18:26:32 +0900
commitd6148c75a30d87c3f8c1d0f68725127e4c5f3a65 (patch)
tree42c7df8c6a11187f0d622baa9e0ea45ad6df0cd3 /table/path.go
parent1b386f627fb081f4e805a4d7b2f94a14b8790243 (diff)
api: refactor afisafi api
remove unused fields Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go4
1 files changed, 2 insertions, 2 deletions
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,
}
}