summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2018-06-12 16:45:34 +0900
committerSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2018-06-13 13:56:30 +0900
commitabe2efc2bfdd0ea022ce0734803e870b2c23ce91 (patch)
tree0546a888db9353ab92ef3c25d70fedba127b041e /gobgpd
parent0c334f5b3f8d330ced71649316c894119b2432d3 (diff)
api: Fix StartServerAPI
Currently, StartServerAPI accepts few parameters and setting such as BGP confederation and graceful restart cannot be configured via gRPC API. This commit fixes this API to accept all the parameters which is configurable in a configuration file/ Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index c0d9b40f..c938d77b 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -179,13 +179,7 @@ func main() {
if c == nil {
c = newConfig
if _, err := apiServer.StartServer(context.Background(), &api.StartServerRequest{
- Global: &api.Global{
- As: c.Global.Config.As,
- RouterId: c.Global.Config.RouterId,
- ListenPort: c.Global.Config.Port,
- ListenAddresses: c.Global.Config.LocalAddressList,
- UseMultiplePaths: c.Global.UseMultiplePaths.Config.Enabled,
- },
+ Global: api.NewGlobalFromConfigStruct(&c.Global),
}); err != nil {
log.Fatalf("failed to set global config: %s", err)
}