diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-08-21 05:23:04 +0000 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-08-21 07:17:34 +0000 |
commit | 430a4f93e8ad9afdcca11aa167ea2f5513009a0d (patch) | |
tree | 4468ff41826a56d3ed07cecb756afd925b8695d8 /api/grpc_server.go | |
parent | 4ecf30f884ae7578ef3ce1a34510d9dd02c6e2bf (diff) |
api: enable to set/get UseMultiplePaths global setting
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r-- | api/grpc_server.go | 18 |
1 files changed, 12 insertions, 6 deletions
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) |