Merge pull request #14300 from opensourcerouting/fix/set_role_as_undefined_when_capability_unset

bgpd: Unset role when receiving UNSET action for dynamic capability
This commit is contained in:
Donald Sharp 2023-08-30 09:22:12 -04:00 committed by GitHub
commit 15a5de185c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2916,6 +2916,7 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt,
peer->remote_role = role;
} else {
UNSET_FLAG(peer->cap, PEER_CAP_ROLE_RCV);
peer->remote_role = ROLE_UNDEFINED;
}
break;
default: