Merge pull request #11646 from opensourcerouting/fix/memory_show

bgpd: Show extended communities memory consumption
This commit is contained in:
Donald Sharp 2022-07-19 14:13:17 -04:00 committed by GitHub
commit a6de2db239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10173,8 +10173,10 @@ DEFUN (show_bgp_memory,
count, mtype_memstr(memstrbuf, sizeof(memstrbuf),
count * sizeof(struct community)));
if ((count = mtype_stats_alloc(MTYPE_ECOMMUNITY)))
vty_out(vty, "%ld BGP community entries, using %s of memory\n",
count, mtype_memstr(memstrbuf, sizeof(memstrbuf),
vty_out(vty,
"%ld BGP ext-community entries, using %s of memory\n",
count,
mtype_memstr(memstrbuf, sizeof(memstrbuf),
count * sizeof(struct ecommunity)));
if ((count = mtype_stats_alloc(MTYPE_LCOMMUNITY)))
vty_out(vty,