mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-15 16:38:30 +00:00
lib: notify BFD when adding new profile
When a BFD integrated session already exists setting the profile doesn't cause a session update (or vice versa): fix this issue by handling the other cases. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
270f9c682c
commit
a29c51a187
@ -104,7 +104,10 @@ void bfd_set_param(struct bfd_info **bfd_info, uint32_t min_rx, uint32_t min_tx,
|
|||||||
if (((*bfd_info)->required_min_rx != min_rx)
|
if (((*bfd_info)->required_min_rx != min_rx)
|
||||||
|| ((*bfd_info)->desired_min_tx != min_tx)
|
|| ((*bfd_info)->desired_min_tx != min_tx)
|
||||||
|| ((*bfd_info)->detect_mult != detect_mult)
|
|| ((*bfd_info)->detect_mult != detect_mult)
|
||||||
|| (profile && strcmp((*bfd_info)->profile, profile)))
|
|| ((*bfd_info)->profile[0] == 0 && profile)
|
||||||
|
|| ((*bfd_info)->profile[0] && profile == NULL)
|
||||||
|
|| (profile && (*bfd_info)->profile[0]
|
||||||
|
&& strcmp((*bfd_info)->profile, profile)))
|
||||||
*command = ZEBRA_BFD_DEST_UPDATE;
|
*command = ZEBRA_BFD_DEST_UPDATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user