mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 09:23:31 +00:00
Merge pull request #7491 from volta-networks/fix_ebgp_mhop_reset
bgpd: avoid needless ebgp-multihop session reset
This commit is contained in:
commit
49201fe505
@ -4505,6 +4505,10 @@ int peer_ebgp_multihop_set(struct peer *peer, int ttl)
|
||||
if (peer->sort == BGP_PEER_IBGP || peer->conf_if)
|
||||
return 0;
|
||||
|
||||
/* is there anything to do? */
|
||||
if (peer->ttl == ttl)
|
||||
return 0;
|
||||
|
||||
/* see comment in peer_ttl_security_hops_set() */
|
||||
if (ttl != MAXTTL) {
|
||||
if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP)) {
|
||||
|
Loading…
Reference in New Issue
Block a user