summaryrefslogtreecommitdiff
path: root/zebra/zapi_msg.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2020-08-20 14:25:14 +0000
committerGitHub <noreply@github.com>2020-08-20 14:25:14 +0000
commitf07254d0f526ea7933c7589cda98e82e2e41c885 (patch)
treeddbcd771acfa8df06e14643959f4f25168971d01 /zebra/zapi_msg.c
parentbe8d09f1255f10b49501001d4f39c86fa26154ab (diff)
parentc2c02b76bc78e0e9dfa5c3e4dd12e540317c8b9b (diff)
Merge pull request #6951 from donaldsharp/zebra_table
zebra: Add table id to debug output
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r--zebra/zapi_msg.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index 285f28ccec..2bcb3502d5 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -1588,16 +1588,17 @@ static void zread_route_add(ZAPI_HANDLER_ARGS)
return;
}
+ vrf_id = zvrf_id(zvrf);
+
if (IS_ZEBRA_DEBUG_RECV) {
char buf_prefix[PREFIX_STRLEN];
prefix2str(&api.prefix, buf_prefix, sizeof(buf_prefix));
- zlog_debug("%s: p=%s, msg flags=0x%x, flags=0x%x",
- __func__, buf_prefix, (int)api.message, api.flags);
+ zlog_debug("%s: p=(%u:%u)%s, msg flags=0x%x, flags=0x%x",
+ __func__, vrf_id, api.tableid, buf_prefix, (int)api.message, api.flags);
}
/* Allocate new route. */
- vrf_id = zvrf_id(zvrf);
re = XCALLOC(MTYPE_RE, sizeof(struct route_entry));
re->type = api.type;
re->instance = api.instance;
@@ -1878,6 +1879,15 @@ static void zread_route_del(ZAPI_HANDLER_ARGS)
else
table_id = zvrf->table_id;
+ if (IS_ZEBRA_DEBUG_RECV) {
+ char buf_prefix[PREFIX_STRLEN];
+
+ prefix2str(&api.prefix, buf_prefix, sizeof(buf_prefix));
+ zlog_debug("%s: p=(%u:%u)%s, msg flags=0x%x, flags=0x%x",
+ __func__, zvrf_id(zvrf), table_id, buf_prefix,
+ (int)api.message, api.flags);
+ }
+
rib_delete(afi, api.safi, zvrf_id(zvrf), api.type, api.instance,
api.flags, &api.prefix, src_p, NULL, 0, table_id, api.metric,
api.distance, false);