summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-11-20 23:33:35 -0500
committerGitHub <noreply@github.com>2022-11-20 23:33:35 -0500
commitbb64a1d3814fad7d5e8eadb3c7a91586eaa89a2c (patch)
treea2aaed08f87677a33b0601b6fe83758cc90cb878
parentfa4e6e4e8118127c66aedf5bd86290259736926b (diff)
parent382c3b08b66d51003bbabfb5fad1f5badcdd58c8 (diff)
Merge pull request #12337 from opensourcerouting/fix/misleading_error
bgpd: Warn user only if the LL is not seriously available
-rw-r--r--bgpd/bgp_zebra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index efdc81a145..2badc25cd8 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -921,7 +921,7 @@ bool bgp_zebra_nexthop_set(union sockunion *local, union sockunion *remote,
memcpy(&nexthop->v6_global, &local->sin6.sin6_addr,
IPV6_MAX_BYTELEN);
- /* If directory connected set link-local address. */
+ /* If directly connected set link-local address. */
direct = if_lookup_by_ipv6(&remote->sin6.sin6_addr,
remote->sin6.sin6_scope_id,
peer->bgp->vrf_id);
@@ -934,7 +934,7 @@ bool bgp_zebra_nexthop_set(union sockunion *local, union sockunion *remote,
*/
if (!v6_ll_avail && if_is_loopback(ifp))
v6_ll_avail = true;
- else {
+ else if (!v6_ll_avail) {
flog_warn(
EC_BGP_NO_LL_ADDRESS_AVAILABLE,
"Interface: %s does not have a v6 LL address associated with it, waiting until one is created for it",