Skip to content

Commit

Permalink
[bgpcfgd] - Fix a key error during delete (#4946)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored and abdosi committed Jul 12, 2020
1 parent b78e17a commit 79d434a
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 79d434a

Please sign in to comment.