]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: improve flowspec update of route to NH/VRF
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 21 May 2018 16:35:38 +0000 (18:35 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 25 May 2018 13:49:38 +0000 (15:49 +0200)
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 <philippe.guibert@6wind.com>
bgpd/bgp_zebra.c

index a5f51b9fd9fb8ffcfd4bbd65f5d34784fdd7f8a9..fccdd8f12b00fb56a50999a9e843a37eb65ef71e 100644 (file)
@@ -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,