mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 20:13:53 +00:00
Merge pull request #17603 from opensourcerouting/fix/bgp_peer_with_peer-group
bgpd: Check if as_type is not specified when peer is a peer-group member
This commit is contained in:
commit
f1a9b9292c
@ -2158,8 +2158,7 @@ int peer_remote_as(struct bgp *bgp, union sockunion *su, const char *conf_if,
|
||||
/* When this peer is a member of peer-group. */
|
||||
if (peer->group) {
|
||||
/* peer-group already has AS number/internal/external */
|
||||
if (peer->group->conf->as
|
||||
|| peer->group->conf->as_type) {
|
||||
if (peer->group->conf->as || peer->group->conf->as_type != AS_UNSPECIFIED) {
|
||||
/* Return peer group's AS number. */
|
||||
*as = peer->group->conf->as;
|
||||
return BGP_ERR_PEER_GROUP_MEMBER;
|
||||
|
Loading…
Reference in New Issue
Block a user