mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:33:15 +00:00
staticd: Fix 'show debug static" command
'show debugging' is returning a Command incomplete error message as that it is being sent to staticd and staticd has no knowledge of it, fix this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
c279fc5fdd
commit
e60b527e66
@ -1390,6 +1390,18 @@ DEFPY(ipv6_route_vrf,
|
|||||||
table_str);
|
table_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFUN_NOSH (show_debugging_staticd,
|
||||||
|
show_debugging_staticd_cmd,
|
||||||
|
"show debugging [static]",
|
||||||
|
SHOW_STR
|
||||||
|
DEBUG_STR
|
||||||
|
"Static Information\n")
|
||||||
|
{
|
||||||
|
vty_out(vty, "Static debugging status\n");
|
||||||
|
|
||||||
|
return CMD_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
void static_vty_init(void)
|
void static_vty_init(void)
|
||||||
{
|
{
|
||||||
install_element(CONFIG_NODE, &ip_mroute_dist_cmd);
|
install_element(CONFIG_NODE, &ip_mroute_dist_cmd);
|
||||||
@ -1408,6 +1420,8 @@ void static_vty_init(void)
|
|||||||
install_element(CONFIG_NODE, &ipv6_route_cmd);
|
install_element(CONFIG_NODE, &ipv6_route_cmd);
|
||||||
install_element(VRF_NODE, &ipv6_route_vrf_cmd);
|
install_element(VRF_NODE, &ipv6_route_vrf_cmd);
|
||||||
|
|
||||||
|
install_element(VIEW_NODE, &show_debugging_staticd_cmd);
|
||||||
|
|
||||||
static_list = list_new();
|
static_list = list_new();
|
||||||
static_list->cmp = (int (*)(void *, void *))static_list_compare;
|
static_list->cmp = (int (*)(void *, void *))static_list_compare;
|
||||||
static_list->del = (void (*)(void *))static_list_delete;
|
static_list->del = (void (*)(void *))static_list_delete;
|
||||||
|
Loading…
Reference in New Issue
Block a user