Merge pull request #15828 from opensourcerouting/fix/backport_inherit_flags

bgpd: Inherit some peer flags from the peer-group
This commit is contained in:
Donald Sharp 2024-04-24 10:15:43 -04:00 committed by GitHub
commit 30b4d00758
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);