From e541ede1b5e4d08aaa3fffd1ee13744cc1b69c59 Mon Sep 17 00:00:00 2001 From: Satoshi Fujimoto Date: Tue, 3 Oct 2017 14:27:58 +0900 Subject: config: Pass Global Config to SetDefaultNeighborConfig In neighbor config, there are some parameters whose default value can be changed depending on the global config. This commit modifies the argument of config.SetDefaultNeighborConfigValues() to pass the global config. It enables to change the default settings of neighbor depending on the global config. Signed-off-by: Satoshi Fujimoto --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/server.go') diff --git a/server/server.go b/server/server.go index 18ff196d..9de1c8ad 100644 --- a/server/server.go +++ b/server/server.go @@ -1760,7 +1760,7 @@ func (server *BgpServer) addNeighbor(c *config.Neighbor) error { } } - if err := config.SetDefaultNeighborConfigValues(c, server.bgpConfig.Global.Config.As); err != nil { + if err := config.SetDefaultNeighborConfigValues(c, &server.bgpConfig.Global); err != nil { return err } -- cgit v1.2.3