mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 12:39:21 +00:00
bgpd: fix update-source for ipv6
There's no IPv6 LL address on loopback/vrf interfaces. So if the user configures update-source, the session is never going to be established. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
3e324ff419
commit
2ebb354c41
@ -838,6 +838,12 @@ bool bgp_zebra_nexthop_set(union sockunion *local, union sockunion *remote,
|
|||||||
if (direct)
|
if (direct)
|
||||||
v6_ll_avail = if_get_ipv6_local(
|
v6_ll_avail = if_get_ipv6_local(
|
||||||
ifp, &nexthop->v6_local);
|
ifp, &nexthop->v6_local);
|
||||||
|
/*
|
||||||
|
* It's fine to not have a v6 LL when using
|
||||||
|
* update-source loopback/vrf
|
||||||
|
*/
|
||||||
|
if (!v6_ll_avail && if_is_loopback_or_vrf(ifp))
|
||||||
|
v6_ll_avail = true;
|
||||||
} else
|
} else
|
||||||
/* Link-local address. */
|
/* Link-local address. */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user