diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-05 13:56:53 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-05 15:05:12 +0900 |
commit | ca99c628a1a1aa65b3a32d42117d0ed712330b68 (patch) | |
tree | ddb6fd236a2a6b5a25654fa0db3566611bab4526 /server | |
parent | b7d8d53c486eff0370e9908e75a97b7d8816725c (diff) |
config: change the structure of Neighbor.RouteServer as the Neighbor.RouteReflector
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 2 | ||||
-rw-r--r-- | server/server.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 66b4c3a8..39859c3c 100644 --- a/server/peer.go +++ b/server/peer.go @@ -83,7 +83,7 @@ func NewPeer(g config.Global, conf config.Neighbor) *Peer { } func (peer *Peer) isRouteServerClient() bool { - return peer.conf.RouteServer.RouteServerClient + return peer.conf.RouteServer.RouteServerConfig.RouteServerClient } func (peer *Peer) configuredRFlist() []bgp.RouteFamily { diff --git a/server/server.go b/server/server.go index 78d1928e..984762e6 100644 --- a/server/server.go +++ b/server/server.go @@ -246,7 +246,7 @@ func (server *BgpServer) Serve() { peer := NewPeer(g, config) name := config.NeighborConfig.NeighborAddress.String() - if config.RouteServer.RouteServerClient == true { + if config.RouteServer.RouteServerConfig.RouteServerClient { loc := NewLocalRib(name, peer.configuredRFlist(), make(map[string]*policy.Policy)) server.addLocalRib(loc) loc.setPolicy(peer, server.policyMap) |