diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-06-23 21:20:23 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-01 14:20:46 +0900 |
commit | 8339ada8dfffd086a4fadc10e729bbe07d3e3e83 (patch) | |
tree | 346d82d52c71ce13006dca09dbc6b2ce857bc7eb /server | |
parent | a45849df3993acf57d410df81176cb795510db26 (diff) |
scenario_test: remove policy config part from quagga-rsconfig
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 5 |
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) |