From d887503c652f2336fb7f9be5484105c3c329d4e3 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 21 May 2018 18:35:38 +0200 Subject: [PATCH] bgpd: improve flowspec update of route to NH/VRF The debugging message in charge of showing if the route is added or witdrawn is changed accordingly to reflect this status. Signed-off-by: Philippe Guibert --- bgpd/bgp_zebra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index a5f51b9fd9..fccdd8f12b 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -2626,7 +2626,8 @@ void bgp_zebra_announce_default(struct bgp *bgp, struct nexthop *nh, inet_ntop(AF_INET, &(nh->gate.ipv4), buff, INET_ADDRSTRLEN); if (BGP_DEBUG(zebra, ZEBRA)) - zlog_info("BGP: sending default route to %s table %d (redirect IP)", + zlog_info("BGP: %s default route to %s table %d (redirect IP)", + announce ? "adding" : "withdrawing", buff, table_id); zclient_route_send(announce ? ZEBRA_ROUTE_ADD : ZEBRA_ROUTE_DELETE, @@ -2648,7 +2649,8 @@ void bgp_zebra_announce_default(struct bgp *bgp, struct nexthop *nh, api_nh->type = NEXTHOP_TYPE_IFINDEX; api_nh->ifindex = ifp->ifindex; if (BGP_DEBUG(zebra, ZEBRA)) - zlog_info("BGP: sending default route to %s table %d (redirect VRF)", + zlog_info("BGP: %s default route to %s table %d (redirect VRF)", + announce ? "adding" : "withdrawing", vrf->name, table_id); zclient_route_send(announce ? ZEBRA_ROUTE_ADD : ZEBRA_ROUTE_DELETE, -- 2.39.5