summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-27 15:56:30 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-27 19:06:12 -0800
commit13b98e40b580804e3e106b1b1ece35e411688a04 (patch)
tree6def5de529cf345fe4aa07eb099d87f91891423a
parentb35796161c2b1557c312781ee75e70a3d3f4d0be (diff)
server: fix dropPeerAllRoutes() to handle rf
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--server/server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 0b8faf76..e3ff1a3b 100644
--- a/server/server.go
+++ b/server/server.go
@@ -576,6 +576,9 @@ func (server *BgpServer) dropPeerAllRoutes(peer *Peer) []*SenderMsg {
if targetPeer.isRouteServerClient() || targetPeer.fsm.state != bgp.BGP_FSM_ESTABLISHED {
continue
}
+ if _, ok := targetPeer.rfMap[rf]; !ok {
+ continue
+ }
targetPeer.adjRib.UpdateOut(pathList)
msgs = append(msgs, newSenderMsg(targetPeer, msgList))
}