diff options
| author | Stephen Worley <sworley@nvidia.com> | 2022-11-22 12:02:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-22 12:02:15 -0500 |
| commit | f5a6f8202d179a904256d46cdaf7fe4d26d11661 (patch) | |
| tree | aae05b025fb9c4d32cedcb7c05787962fb266ffb /zebra/debug.c | |
| parent | c8b92cd80adcd566294f6d018204510adf09fd08 (diff) | |
| parent | f2ae263bb70b76274e7df9cd0fe5472f0597bf3c (diff) | |
Merge pull request #11908 from sigeryang/tc-state-mgmt
zebra: traffic control state management & ZAPI
Diffstat (limited to 'zebra/debug.c')
| -rw-r--r-- | zebra/debug.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zebra/debug.c b/zebra/debug.c index 16aac7909f..953f0423af 100644 --- a/zebra/debug.c +++ b/zebra/debug.c @@ -42,6 +42,7 @@ unsigned long zebra_debug_nexthop; unsigned long zebra_debug_evpn_mh; unsigned long zebra_debug_pbr; unsigned long zebra_debug_neigh; +unsigned long zebra_debug_tc; DEFINE_HOOK(zebra_debug_show_debugging, (struct vty *vty), (vty)); @@ -374,6 +375,17 @@ DEFPY (debug_zebra_neigh, return CMD_SUCCESS; } +DEFUN (debug_zebra_tc, + debug_zebra_tc_cmd, + "debug zebra tc", + DEBUG_STR + "Zebra configuration\n" + "Debug zebra tc events\n") +{ + SET_FLAG(zebra_debug_tc, ZEBRA_DEBUG_TC); + return CMD_SUCCESS; +} + DEFPY (debug_zebra_mlag, debug_zebra_mlag_cmd, "[no$no] debug zebra mlag", @@ -797,6 +809,7 @@ void zebra_debug_init(void) install_element(ENABLE_NODE, &debug_zebra_nexthop_cmd); install_element(ENABLE_NODE, &debug_zebra_pbr_cmd); install_element(ENABLE_NODE, &debug_zebra_neigh_cmd); + install_element(ENABLE_NODE, &debug_zebra_tc_cmd); install_element(ENABLE_NODE, &debug_zebra_dplane_dpdk_cmd); install_element(ENABLE_NODE, &no_debug_zebra_events_cmd); install_element(ENABLE_NODE, &no_debug_zebra_nht_cmd); |
