diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-03-24 09:40:46 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2023-01-13 15:32:12 -0300 |
| commit | d8c78a8db541868e709d56b715d08be94cf6be59 (patch) | |
| tree | a1fdcf85f39a9f5a1de5badc666eaf3432d554be /staticd/static_vty.c | |
| parent | e4c3da43cef0a20231bf63d0cf9b49be3d5b4df8 (diff) | |
staticd: add command to show monitored routes
Add command to visualize all monitored routes and their state.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'staticd/static_vty.c')
| -rw-r--r-- | staticd/static_vty.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 0d4a91f347..d62ea092b3 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1471,6 +1471,18 @@ DEFPY_YANG(debug_staticd, debug_staticd_cmd, return CMD_SUCCESS; } +DEFPY(staticd_show_bfd_routes, staticd_show_bfd_routes_cmd, + "show bfd static route [json]$isjson", + SHOW_STR + BFD_INTEGRATION_STR + STATICD_STR + ROUTE_STR + JSON_STR) +{ + static_bfd_show(vty, !!isjson); + return CMD_SUCCESS; +} + DEFUN_NOSH (show_debugging_static, show_debugging_static_cmd, "show debugging [static]", @@ -1517,4 +1529,6 @@ void static_vty_init(void) install_element(ENABLE_NODE, &show_debugging_static_cmd); install_element(ENABLE_NODE, &debug_staticd_cmd); install_element(CONFIG_NODE, &debug_staticd_cmd); + + install_element(ENABLE_NODE, &staticd_show_bfd_routes_cmd); } |
