mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 08:32:45 +00:00
Remove unused 'show memory XXX' functionality
The 'show memory XXXX' functionality is not used at all. This removes the unused code.
This commit is contained in:
parent
576b6b5d18
commit
0d05fa51fb
141
lib/memory.c
141
lib/memory.c
@ -392,12 +392,11 @@ show_memory_mallinfo (struct vty *vty)
|
|||||||
}
|
}
|
||||||
#endif /* HAVE_MALLINFO */
|
#endif /* HAVE_MALLINFO */
|
||||||
|
|
||||||
DEFUN (show_memory_all,
|
DEFUN (show_memory,
|
||||||
show_memory_all_cmd,
|
show_memory_cmd,
|
||||||
"show memory all",
|
"show memory",
|
||||||
"Show running system information\n"
|
"Show running system information\n"
|
||||||
"Memory statistics\n"
|
"Memory statistics\n")
|
||||||
"All memory statistics\n")
|
|
||||||
{
|
{
|
||||||
struct mlist *ml;
|
struct mlist *ml;
|
||||||
int needsep = 0;
|
int needsep = 0;
|
||||||
@ -416,147 +415,15 @@ DEFUN (show_memory_all,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALIAS (show_memory_all,
|
|
||||||
show_memory_cmd,
|
|
||||||
"show memory",
|
|
||||||
"Show running system information\n"
|
|
||||||
"Memory statistics\n")
|
|
||||||
|
|
||||||
DEFUN (show_memory_lib,
|
|
||||||
show_memory_lib_cmd,
|
|
||||||
"show memory lib",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"Library memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_lib);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_zebra,
|
|
||||||
show_memory_zebra_cmd,
|
|
||||||
"show memory zebra",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"Zebra memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_zebra);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_rip,
|
|
||||||
show_memory_rip_cmd,
|
|
||||||
"show memory rip",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"RIP memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_rip);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_ripng,
|
|
||||||
show_memory_ripng_cmd,
|
|
||||||
"show memory ripng",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"RIPng memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_ripng);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_babel,
|
|
||||||
show_memory_babel_cmd,
|
|
||||||
"show memory babel",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"Babel memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_babel);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_bgp,
|
|
||||||
show_memory_bgp_cmd,
|
|
||||||
"show memory bgp",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"BGP memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_bgp);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_ospf,
|
|
||||||
show_memory_ospf_cmd,
|
|
||||||
"show memory ospf",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"OSPF memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_ospf);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_ospf6,
|
|
||||||
show_memory_ospf6_cmd,
|
|
||||||
"show memory ospf6",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"OSPF6 memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_ospf6);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN (show_memory_isis,
|
|
||||||
show_memory_isis_cmd,
|
|
||||||
"show memory isis",
|
|
||||||
SHOW_STR
|
|
||||||
"Memory statistics\n"
|
|
||||||
"ISIS memory\n")
|
|
||||||
{
|
|
||||||
show_memory_vty (vty, memory_list_isis);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
memory_init (void)
|
memory_init (void)
|
||||||
{
|
{
|
||||||
install_element (RESTRICTED_NODE, &show_memory_cmd);
|
install_element (RESTRICTED_NODE, &show_memory_cmd);
|
||||||
install_element (RESTRICTED_NODE, &show_memory_all_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_lib_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_rip_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_ripng_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_babel_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_bgp_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_ospf_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_ospf6_cmd);
|
|
||||||
install_element (RESTRICTED_NODE, &show_memory_isis_cmd);
|
|
||||||
|
|
||||||
install_element (VIEW_NODE, &show_memory_cmd);
|
install_element (VIEW_NODE, &show_memory_cmd);
|
||||||
install_element (VIEW_NODE, &show_memory_all_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_lib_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_rip_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_ripng_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_babel_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_bgp_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_ospf_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_ospf6_cmd);
|
|
||||||
install_element (VIEW_NODE, &show_memory_isis_cmd);
|
|
||||||
|
|
||||||
install_element (ENABLE_NODE, &show_memory_cmd);
|
install_element (ENABLE_NODE, &show_memory_cmd);
|
||||||
install_element (ENABLE_NODE, &show_memory_all_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_lib_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_zebra_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_rip_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_ripng_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_babel_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_bgp_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_ospf_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_ospf6_cmd);
|
|
||||||
install_element (ENABLE_NODE, &show_memory_isis_cmd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stats querying from users */
|
/* Stats querying from users */
|
||||||
|
Loading…
Reference in New Issue
Block a user