diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-29 14:44:12 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-29 18:20:28 +0900 |
commit | 4cd45f42f9b29e4d7a86f8aa271b7b38aefeae87 (patch) | |
tree | 0139b894c574c4fa3f8f01502522264765fd0831 /pkg/server | |
parent | d91fb3d35f5baf0c965381be8f5ecf5b0c7fecea (diff) |
server: unexport NewRoutingPolicyFromApiStruct()
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server')
-rw-r--r-- | pkg/server/grpc_server.go | 2 | ||||
-rw-r--r-- | pkg/server/server.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go index 1d99cfc0..ccd3b613 100644 --- a/pkg/server/grpc_server.go +++ b/pkg/server/grpc_server.go @@ -297,7 +297,7 @@ func (s *Server) SetPolicies(ctx context.Context, r *api.SetPoliciesRequest) (*e return &empty.Empty{}, s.bgpServer.SetPolicies(ctx, r) } -func NewRoutingPolicyFromApiStruct(arg *api.SetPoliciesRequest) (*config.RoutingPolicy, error) { +func newRoutingPolicyFromApiStruct(arg *api.SetPoliciesRequest) (*config.RoutingPolicy, error) { policyDefinitions := make([]config.PolicyDefinition, 0, len(arg.Policies)) for _, p := range arg.Policies { pd, err := newConfigPolicyFromApiStruct(p) diff --git a/pkg/server/server.go b/pkg/server/server.go index b8b9e6fa..e36ff26d 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1611,7 +1611,7 @@ func (s *BgpServer) StopBgp(ctx context.Context, r *api.StopBgpRequest) error { } func (s *BgpServer) SetPolicies(ctx context.Context, r *api.SetPoliciesRequest) error { - rp, err := NewRoutingPolicyFromApiStruct(r) + rp, err := newRoutingPolicyFromApiStruct(r) if err != nil { return err } |