summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkg/server/grpc_server.go2
-rw-r--r--pkg/server/server.go2
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
}