mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-19 23:13:06 +00:00
vrrpd: tweak startup criteria for v6 VRRP router
* Remove check for having at least 2 IPv6 addresses on the macvlan device; this was only taking place in v6, and breaking the ability to start VRRP on an IPv6 macvlan that was already set to protodown on * Improve log messaging indicating that we cannot start because we haven't got any VIPs configured Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
65dc7dd387
commit
d5dc62c40b
@ -323,12 +323,13 @@ void vrrp_check_start(struct vrrp_vrouter *vr)
|
|||||||
/* Macvlan interface must have a link local */
|
/* Macvlan interface must have a link local */
|
||||||
start = start && connected_get_linklocal(r->mvl_ifp);
|
start = start && connected_get_linklocal(r->mvl_ifp);
|
||||||
whynot = (!start && !whynot) ? "No link local address configured" : NULL;
|
whynot = (!start && !whynot) ? "No link local address configured" : NULL;
|
||||||
#endif
|
|
||||||
/* Macvlan interface must have a v6 IP besides the link local */
|
/* Macvlan interface must have a v6 IP besides the link local */
|
||||||
start = start && (r->mvl_ifp->connected->count >= 2);
|
start = start && (r->mvl_ifp->connected->count >= 2);
|
||||||
whynot = (!start && !whynot) ? "No Virtual IP address configured" : NULL;
|
whynot = (!start && !whynot) ? "No Virtual IP configured on macvlan device" : NULL;
|
||||||
|
#endif
|
||||||
/* Must have at least one VIP configured */
|
/* Must have at least one VIP configured */
|
||||||
start = start && r->addrs->count > 0;
|
start = start && r->addrs->count > 0;
|
||||||
|
whynot = (!start && !whynot) ? "No Virtual IP address configured" : NULL;
|
||||||
if (start)
|
if (start)
|
||||||
vrrp_event(r, VRRP_EVENT_STARTUP);
|
vrrp_event(r, VRRP_EVENT_STARTUP);
|
||||||
else if (whynot)
|
else if (whynot)
|
||||||
|
Loading…
Reference in New Issue
Block a user