struct debug static_dbg_events = {0, "debug static events", "Staticd events"};
struct debug static_dbg_route = {0, "debug static route", "Staticd route"};
struct debug static_dbg_bfd = {0, "debug static bfd", "Staticd bfd"};
+struct debug static_dbg_srv6 = {0, "debug static srv6", "Staticd srv6"};
/* clang-format on */
/*
* Debug general internal events
*
*/
-void static_debug_set(int vtynode, bool onoff, bool events, bool route,
- bool bfd)
+void static_debug_set(int vtynode, bool onoff, bool events, bool route, bool bfd, bool srv6)
{
uint32_t mode = DEBUG_NODE2MODE(vtynode);
DEBUG_MODE_SET(&static_dbg_bfd, mode, onoff);
bfd_protocol_integration_set_debug(onoff);
}
+ if (srv6)
+ DEBUG_MODE_SET(&static_dbg_srv6, mode, onoff);
}
/*
debug_install(&static_dbg_events);
debug_install(&static_dbg_route);
debug_install(&static_dbg_bfd);
+ debug_install(&static_dbg_srv6);
}
extern struct debug static_dbg_events;
extern struct debug static_dbg_route;
extern struct debug static_dbg_bfd;
+extern struct debug static_dbg_srv6;
/*
* Initialize staticd debugging.
* Debug general internal events
*
*/
-void static_debug_set(int vtynode, bool onoff, bool events, bool route,
- bool bfd);
+void static_debug_set(int vtynode, bool onoff, bool events, bool route, bool bfd, bool srv6);
#ifdef __cplusplus
}
#else /* ifdef INCLUDE_MGMTD_CMDDEFS_ONLY */
DEFPY_YANG(debug_staticd, debug_staticd_cmd,
- "[no] debug static [{events$events|route$route|bfd$bfd}]",
+ "[no] debug static [{events$events|route$route|bfd$bfd|srv6$srv6}]",
NO_STR DEBUG_STR STATICD_STR
"Debug events\n"
"Debug route\n"
- "Debug bfd\n")
+ "Debug bfd\n"
+ "Debug srv6\n")
{
/* If no specific category, change all */
if (strmatch(argv[argc - 1]->text, "static"))
- static_debug_set(vty->node, !no, true, true, true);
+ static_debug_set(vty->node, !no, true, true, true, true);
else
- static_debug_set(vty->node, !no, !!events, !!route, !!bfd);
+ static_debug_set(vty->node, !no, !!events, !!route, !!bfd, !!srv6);
return CMD_SUCCESS;
}