mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
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 <philippe.guibert@6wind.com>
This commit is contained in:
parent
82e194ed85
commit
d887503c65
@ -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);
|
inet_ntop(AF_INET, &(nh->gate.ipv4), buff, INET_ADDRSTRLEN);
|
||||||
if (BGP_DEBUG(zebra, ZEBRA))
|
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);
|
buff, table_id);
|
||||||
zclient_route_send(announce ? ZEBRA_ROUTE_ADD
|
zclient_route_send(announce ? ZEBRA_ROUTE_ADD
|
||||||
: ZEBRA_ROUTE_DELETE,
|
: 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->type = NEXTHOP_TYPE_IFINDEX;
|
||||||
api_nh->ifindex = ifp->ifindex;
|
api_nh->ifindex = ifp->ifindex;
|
||||||
if (BGP_DEBUG(zebra, ZEBRA))
|
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);
|
vrf->name, table_id);
|
||||||
zclient_route_send(announce ? ZEBRA_ROUTE_ADD
|
zclient_route_send(announce ? ZEBRA_ROUTE_ADD
|
||||||
: ZEBRA_ROUTE_DELETE,
|
: ZEBRA_ROUTE_DELETE,
|
||||||
|
Loading…
Reference in New Issue
Block a user