]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_zebra.c
Merge pull request #12551 from proelbtn/fix-install-srv6-local-routes
[mirror_frr.git] / bgpd / bgp_zebra.c
index c5c452c1dc98b6bb0db5452f8dfb196dd3f52d58..8ce17ab49e4baad6f758206f3fe23b1a68d619dc 100644 (file)
@@ -1632,9 +1632,8 @@ void bgp_zebra_announce(struct bgp_dest *dest, const struct prefix *p,
                zlog_debug(
                        "Tx route %s VRF %u %pFX metric %u tag %" ROUTE_TAG_PRI
                        " count %d nhg %d",
-                       valid_nh_count ? "add" : "delete", bgp->vrf_id,
-                       &api.prefix, api.metric, api.tag, api.nexthop_num,
-                       nhg_id);
+                       is_add ? "add" : "delete", bgp->vrf_id, &api.prefix,
+                       api.metric, api.tag, api.nexthop_num, nhg_id);
                for (i = 0; i < api.nexthop_num; i++) {
                        api_nh = &api.nexthops[i];