mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 22:19:21 +00:00
Merge pull request #15828 from opensourcerouting/fix/backport_inherit_flags
bgpd: Inherit some peer flags from the peer-group
This commit is contained in:
commit
30b4d00758
@ -1537,10 +1537,10 @@ struct peer *peer_new(struct bgp *bgp)
|
||||
SET_FLAG(peer->sflags, PEER_STATUS_CAPABILITY_OPEN);
|
||||
|
||||
if (CHECK_FLAG(bgp->flags, BGP_FLAG_ENFORCE_FIRST_AS))
|
||||
SET_FLAG(peer->flags, PEER_FLAG_ENFORCE_FIRST_AS);
|
||||
peer_flag_set(peer, PEER_FLAG_ENFORCE_FIRST_AS);
|
||||
|
||||
if (CHECK_FLAG(bgp->flags, BGP_FLAG_SOFT_VERSION_CAPABILITY))
|
||||
SET_FLAG(peer->flags, PEER_FLAG_CAPABILITY_SOFT_VERSION);
|
||||
peer_flag_set(peer, PEER_FLAG_CAPABILITY_SOFT_VERSION);
|
||||
|
||||
SET_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_FQDN);
|
||||
SET_FLAG(peer->flags, PEER_FLAG_CAPABILITY_FQDN);
|
||||
|
Loading…
Reference in New Issue
Block a user