Skip to content

Commit

Permalink
[bgpcfgd] - Fix a key error during delete (sonic-net#4946)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored and qiluo-msft committed Jul 12, 2020
1 parent 71e93d9 commit a0236f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-bgpcfgd/bgpcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ class BGPPeerMgrBase(Manager):
ret_code = self.apply_op(cmd, vrf)
if ret_code:
log_info("Peer '(%s|%s)' has been removed" % (vrf, nbr))
self.peers.remove(key)
self.peers.remove(peer_key)
else:
log_err("Peer '(%s|%s)' hasn't been removed" % (vrf, nbr))

Expand Down

0 comments on commit a0236f7

Please sign in to comment.