diff options
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r-- | server/grpc_server.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go index 1ad4735a..17605f82 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -686,7 +686,17 @@ func (s *Server) GetServer(ctx context.Context, arg *api.GetServerRequest) (*api if err != nil { return nil, err } - return d.(*api.GetServerResponse), err + g := d.(*config.Global) + return &api.GetServerResponse{ + Global: &api.Global{ + As: g.Config.As, + RouterId: g.Config.RouterId, + ListenPort: g.Config.Port, + ListenAddresses: g.Config.LocalAddressList, + MplsLabelMin: g.MplsLabelRange.MinLabel, + MplsLabelMax: g.MplsLabelRange.MaxLabel, + }, + }, err } func (s *Server) StartServer(ctx context.Context, arg *api.StartServerRequest) (*api.StartServerResponse, error) { |