summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-18 01:17:08 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-18 01:17:08 -0800
commit96a8b4c285adf846ed407da01b64782a42045741 (patch)
tree05975ecbc3bbdddd6dd49e44fa028e779f84de9a /server
parentc11277d7c8b1ce6594662dbd225d4170a882a7bb (diff)
bmp: send post-policy routes when connected to bmpd
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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 a72c9d1d..70886b34 100644
--- a/server/server.go
+++ b/server/server.go
@@ -336,6 +336,11 @@ func (server *BgpServer) Serve() {
buf, _ := u[0].Serialize()
bmpMsgList = append(bmpMsgList, bmpPeerRoute(bgp.BMP_PEER_TYPE_GLOBAL, false, 0, targetPeer.fsm.peerInfo, p.GetTimestamp().Unix(), buf))
}
+ for _, p := range server.globalRib.GetBestPathList(table.GLOBAL_RIB_NAME, server.globalRib.GetRFlist()) {
+ u := table.CreateUpdateMsgFromPaths([]*table.Path{p})
+ buf, _ := u[0].Serialize()
+ bmpMsgList = append(bmpMsgList, bmpPeerRoute(bgp.BMP_PEER_TYPE_GLOBAL, true, 0, p.GetSource(), p.GetTimestamp().Unix(), buf))
+ }
}
m := &broadcastBMPMsg{