summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-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 8b70c36e..81244bb0 100644
--- a/pkg/server/grpc_server.go
+++ b/pkg/server/grpc_server.go
@@ -1752,7 +1752,7 @@ func (s *Server) GetBgp(ctx context.Context, r *api.GetBgpRequest) (*api.GetBgpR
return s.bgpServer.GetBgp(ctx, r)
}
-func NewGlobalFromAPIStruct(a *api.Global) *config.Global {
+func newGlobalFromAPIStruct(a *api.Global) *config.Global {
families := make([]config.AfiSafi, 0, len(a.Families))
for _, f := range a.Families {
name := config.IntToAfiSafiTypeMap[int(f)]
diff --git a/pkg/server/server.go b/pkg/server/server.go
index 23391c19..0428a25b 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -1928,7 +1928,7 @@ func (s *BgpServer) StartBgp(ctx context.Context, r *api.StartBgpRequest) error
return fmt.Errorf("invalid router-id format: %s", g.RouterId)
}
- c := NewGlobalFromAPIStruct(g)
+ c := newGlobalFromAPIStruct(g)
if err := config.SetDefaultGlobalConfigValues(c); err != nil {
return err
}