summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-05 13:56:53 +0900
committerNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-05 15:05:12 +0900
commitca99c628a1a1aa65b3a32d42117d0ed712330b68 (patch)
treeddb6fd236a2a6b5a25654fa0db3566611bab4526 /server
parentb7d8d53c486eff0370e9908e75a97b7d8816725c (diff)
config: change the structure of Neighbor.RouteServer as the Neighbor.RouteReflector
Diffstat (limited to 'server')
-rw-r--r--server/peer.go2
-rw-r--r--server/server.go2
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)