summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/server.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index fa831c19..08831efa 100644
--- a/server/server.go
+++ b/server/server.go
@@ -276,6 +276,7 @@ func (server *BgpServer) Serve() {
senderMsgs = append(senderMsgs, m...)
}
case pl := <-server.policyUpdateCh:
+ log.Info("handle policy update ")
server.handlePolicy(pl)
}
}
@@ -643,6 +644,10 @@ func (server *BgpServer) handlePolicy(pl config.RoutingPolicy) {
continue
}
targetPeer := server.neighborMap[loc.OwnerName()]
+ log.WithFields(log.Fields{
+ "Topic": "Peer",
+ "Key": targetPeer.config.NeighborAddress,
+ }).Info("call set policy")
loc.setPolicy(targetPeer, server.policyMap)
// set distribute policy
targetPeer.setPolicy(server.policyMap)