mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-09 18:26:10 +00:00
pathd: display path ted debugging status
On 'show debugging' call, display the status about ted debugging. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
2c7c09d94c
commit
96cb277eb2
@ -1091,8 +1091,11 @@ DEFPY_NOSH(show_debugging_pathd, show_debugging_pathd_cmd,
|
|||||||
"pathd module debugging\n")
|
"pathd module debugging\n")
|
||||||
{
|
{
|
||||||
|
|
||||||
|
vty_out(vty, "Path debugging status:\n");
|
||||||
|
|
||||||
cmd_show_lib_debugs(vty);
|
cmd_show_lib_debugs(vty);
|
||||||
/* nothing to do here */
|
/* nothing to do here */
|
||||||
|
path_ted_show_debugging(vty);
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -488,6 +488,12 @@ int path_ted_cli_debug_config_write(struct vty *vty)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void path_ted_show_debugging(struct vty *vty)
|
||||||
|
{
|
||||||
|
if (DEBUG_FLAGS_CHECK(&ted_state_g.dbg, PATH_TED_DEBUG_BASIC))
|
||||||
|
vty_out(vty, " Path TED debugging is on\n");
|
||||||
|
}
|
||||||
|
|
||||||
int path_ted_cli_debug_set_all(uint32_t flags, bool set)
|
int path_ted_cli_debug_set_all(uint32_t flags, bool set)
|
||||||
{
|
{
|
||||||
DEBUG_FLAGS_SET(&ted_state_g.dbg, flags, set);
|
DEBUG_FLAGS_SET(&ted_state_g.dbg, flags, set);
|
||||||
|
@ -101,6 +101,7 @@ int path_ted_segment_list_refresh(void);
|
|||||||
|
|
||||||
/* TED configuration functions */
|
/* TED configuration functions */
|
||||||
uint32_t path_ted_config_write(struct vty *vty);
|
uint32_t path_ted_config_write(struct vty *vty);
|
||||||
|
void path_ted_show_debugging(struct vty *vty);
|
||||||
|
|
||||||
/* TED util functions */
|
/* TED util functions */
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
Loading…
Reference in New Issue
Block a user