summaryrefslogtreecommitdiff
path: root/bgpd/bgp_routemap.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-07-31 13:20:59 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-07-31 13:20:59 +0300
commit2419fc510499ec1a4a4ec9f171030fa29e2cdc48 (patch)
treef568edad83ca51c8347422d4ec9d9911a28d6366 /bgpd/bgp_routemap.c
parent26eceb2ed55c4fe36e5226eed330b5e4e55c7c7d (diff)
bgpd: Show which AFI is affected when prefix-list is not found
When the prefix-list is not found, show which AFI is the real one we are looking for. E.g.: looking at this output is not clear: ``` [RYF1Z-ZKDRS] route_match_address_prefix_list: Prefix List p1 specified does not exist defaulting to NO_MATCH ``` route_match_address_prefix_list() is called by route_match_ipv6_address_prefix_list(), and route_match_ip_address_prefix_list(). Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_routemap.c')
-rw-r--r--bgpd/bgp_routemap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index 97ae92c899..3ba368aaf7 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -680,9 +680,8 @@ route_match_address_prefix_list(void *rule, afi_t afi,
plist = prefix_list_lookup(afi, (char *)rule);
if (plist == NULL) {
if (unlikely(CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)))
- zlog_debug(
- "%s: Prefix List %s specified does not exist defaulting to NO_MATCH",
- __func__, (char *)rule);
+ zlog_debug("%s: Prefix List %s (%s) specified does not exist defaulting to NO_MATCH",
+ __func__, (char *)rule, afi2str(afi));
return RMAP_NOMATCH;
}