summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-07-29 13:54:18 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-29 16:31:35 +0900
commite97a59c5390fc05ba75673fb4ff7e061c1e73e4f (patch)
tree07813290b57b33708e2b70a6724b0573a4e230fe /server/server.go
parent4fec73235a5fe507bfdd6e9c1bc19325b2d65dbd (diff)
config: curve out code specific to default neighbor config setting
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/server/server.go b/server/server.go
index f6b08246..6841a854 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1657,10 +1657,6 @@ func (server *BgpServer) addNeighbor(c *config.Neighbor) error {
}
log.Info("Add a peer configuration for ", addr)
- if c.Config.LocalAs == 0 {
- c.Config.LocalAs = server.bgpConfig.Global.Config.As
- }
-
peer := NewPeer(&server.bgpConfig.Global, c, server.globalRib, server.policy)
server.setPolicyByConfig(peer.ID(), c.ApplyPolicy)
if peer.isRouteServerClient() {