From cc92e7e3476f416b533de3f1a68de71c5af476c5 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 17 Jun 2018 22:25:44 +0900 Subject: gobgp: fix client.AddPath to use api.Path instead of table.Path Signed-off-by: FUJITA Tomonori --- api/grpc_server.go | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'api/grpc_server.go') diff --git a/api/grpc_server.go b/api/grpc_server.go index 3fa65ee5..f6f5913f 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -473,23 +473,6 @@ func toPathAPI(binNlri []byte, binPattrs [][]byte, anyNlri *any.Any, anyPattrs [ return p } -func ToPathApiInBin(path *table.Path, v *table.Validation) *Path { - nlri := path.GetNlri() - binNlri, _ := nlri.Serialize() - if path.IsWithdraw { - return toPathAPI(binNlri, nil, nil, nil, path, v) - } - binPattrs := func(attrs []bgp.PathAttributeInterface) [][]byte { - bufList := make([][]byte, 0, len(attrs)) - for _, a := range attrs { - buf, _ := a.Serialize() - bufList = append(bufList, buf) - } - return bufList - }(path.GetPathAttrs()) - return toPathAPI(binNlri, binPattrs, nil, nil, path, v) -} - func ToPathApi(path *table.Path, v *table.Validation) *Path { nlri := path.GetNlri() anyNlri := MarshalNLRI(nlri) -- cgit v1.2.3