From 430a4f93e8ad9afdcca11aa167ea2f5513009a0d Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Sun, 21 Aug 2016 05:23:04 +0000 Subject: api: enable to set/get UseMultiplePaths global setting Signed-off-by: Wataru Ishida --- api/grpc_server.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'api/grpc_server.go') diff --git a/api/grpc_server.go b/api/grpc_server.go index d028674b..b4bfd1e3 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -1608,12 +1608,13 @@ func (s *Server) GetServer(ctx context.Context, arg *GetServerRequest) (*GetServ g := s.bgpServer.GetServer() return &GetServerResponse{ Global: &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, + As: g.Config.As, + RouterId: g.Config.RouterId, + ListenPort: g.Config.Port, + ListenAddresses: g.Config.LocalAddressList, + MplsLabelMin: g.MplsLabelRange.MinLabel, + MplsLabelMax: g.MplsLabelRange.MaxLabel, + UseMultiplePaths: g.UseMultiplePaths.Config.Enabled, }, }, nil } @@ -1649,6 +1650,11 @@ func (s *Server) StartServer(ctx context.Context, arg *StartServerRequest) (*Sta MaxLabel: g.MplsLabelMax, }, AfiSafis: families, + UseMultiplePaths: config.UseMultiplePaths{ + Config: config.UseMultiplePathsConfig{ + Enabled: g.UseMultiplePaths, + }, + }, }, } return &StartServerResponse{}, s.bgpServer.Start(&b.Global) -- cgit v1.2.3