mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
bgpd: if bgp peer inherit group password, it should set md5
Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
This commit is contained in:
parent
ee5a3456d3
commit
88840e04c2
|
@ -6952,7 +6952,10 @@ int peer_password_unset(struct peer *peer)
|
|||
|
||||
/* Attempt to uninstall password on socket. */
|
||||
if (!BGP_CONNECTION_SU_UNSPEC(peer->connection))
|
||||
bgp_md5_unset(peer->connection);
|
||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_PASSWORD))
|
||||
bgp_md5_set(peer->connection);
|
||||
else
|
||||
bgp_md5_unset(peer->connection);
|
||||
/* Skip peer-group mechanics for regular peers. */
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue