mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-13 23:46:49 +00:00
bgpd: Set the last reset reason correctly if we change capabilities per-peer
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
8878e385d8
commit
d3c46bce3b
@ -4899,7 +4899,10 @@ static int peer_flag_action_set(const struct peer_flag_action *action_list,
|
||||
|
||||
static void peer_flag_modify_action(struct peer *peer, uint64_t flag)
|
||||
{
|
||||
if (flag == PEER_FLAG_DYNAMIC_CAPABILITY)
|
||||
if (flag == PEER_FLAG_DYNAMIC_CAPABILITY || flag == PEER_FLAG_CAPABILITY_ENHE ||
|
||||
flag == PEER_FLAG_CAPABILITY_FQDN || flag == PEER_FLAG_CAPABILITY_SOFT_VERSION ||
|
||||
flag == PEER_FLAG_DONT_CAPABILITY || flag == PEER_FLAG_OVERRIDE_CAPABILITY ||
|
||||
flag == PEER_FLAG_STRICT_CAP_MATCH)
|
||||
peer->last_reset = PEER_DOWN_CAPABILITY_CHANGE;
|
||||
else if (flag == PEER_FLAG_PASSIVE)
|
||||
peer->last_reset = PEER_DOWN_PASSIVE_CHANGE;
|
||||
|
Loading…
Reference in New Issue
Block a user