diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-08 23:21:40 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-08 23:21:40 +0900 |
commit | 4142dda9988d69a9e6c3d3ac098442a9309f0c67 (patch) | |
tree | 57cc51832ea693566e74baaf7ad88bec98fd6126 /server/peer.go | |
parent | 2e1e29ffac134b89a50271cac7f57978bd782d93 (diff) |
server: drop all paths in adj-in when peer is down
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go index ee3b2311..ec3f3f10 100644 --- a/server/peer.go +++ b/server/peer.go @@ -265,6 +265,7 @@ func (peer *Peer) loop() error { } if oldState == bgp.BGP_FSM_ESTABLISHED { peer.fsm.peerConfig.BgpNeighborCommonState.Uptime = time.Time{} + peer.adjRib.DropAllIn(peer.rf) pm := &peerMsg{ msgType: PEER_MSG_PEER_DOWN, msgData: peer.peerInfo, |