From 866edbb8d60a4545e859427598bc376937d9f670 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 29 Jan 2016 22:46:44 +0900 Subject: server: don't handle soft-reset-out for non-established peer handling soft-reset-out for non-established peer causes filling adj-rib-out with routes not actually advertised Signed-off-by: ISHIDA Wataru --- server/server.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/server.go') diff --git a/server/server.go b/server/server.go index 2d508434..a49914e0 100644 --- a/server/server.go +++ b/server/server.go @@ -1908,6 +1908,9 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg { logOp(grpcReq.Name, "Neighbor soft reset out") } for _, peer := range peers { + if peer.fsm.state != bgp.BGP_FSM_ESTABLISHED { + continue + } rfList := peer.configuredRFlist() sentPathList := peer.adjRibOut.PathList(rfList, false) peer.adjRibOut.Drop(rfList) -- cgit v1.2.3