diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-03-16 16:02:34 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-03-17 10:47:03 +0900 |
commit | 5120cfc7ca03bb5742123b16d1452749d62c8db4 (patch) | |
tree | d0b2c75657080546e660cd871094b712f88845c0 /gobgpd/main.go | |
parent | b06b3ad42fe07cafd4ffee3e21068a324bff5bba (diff) |
config: move Mrt/Bmp configuration outside of Global configuration
Global config basically store configuration whose change will cause
all neighbor session restart.
Mrt and Bmp configuration is not such. Put them outside of Global
config.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r-- | gobgpd/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 1f64c76b..a5f1a559 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -206,6 +206,12 @@ func main() { } bgpConfig = &newConfig.Bgp bgpServer.SetRpkiConfig(newConfig.Bgp.RpkiServers) + if err := bgpServer.SetBmpConfig(newConfig.Bgp.BmpServers); err != nil { + log.Fatalf("failed to set global config: %s", err) + } + if err := bgpServer.SetMrtConfig(newConfig.Bgp.Mrt); err != nil { + log.Fatalf("failed to set global config: %s", err) + } added = newConfig.Bgp.Neighbors if opts.GracefulRestart { for i, n := range added { |