diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 4 |
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() { |