diff options
author | Christian Franke <chris@opensourcerouting.org> | 2018-11-23 04:26:19 +0100 |
---|---|---|
committer | Rodny Molina <rmolina@linkedin.com> | 2018-12-07 20:45:14 +0100 |
commit | e923107c7b25c26b07e47153e2f1042748390f96 (patch) | |
tree | 6b22a8654d2383468b7219ecac317514a413dab4 /isisd/isis_vty_fabricd.c | |
parent | fabricd: Improve LSP flooding log (diff) | |
download | frr-e923107c7b25c26b07e47153e2f1042748390f96.tar.xz frr-e923107c7b25c26b07e47153e2f1042748390f96.zip |
fabricd: make triggered csnp delay configurable
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_vty_fabricd.c')
-rw-r--r-- | isisd/isis_vty_fabricd.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/isisd/isis_vty_fabricd.c b/isisd/isis_vty_fabricd.c index bd4020104..aa4ccdd07 100644 --- a/isisd/isis_vty_fabricd.c +++ b/isisd/isis_vty_fabricd.c @@ -57,6 +57,37 @@ DEFUN (no_fabric_tier, return CMD_SUCCESS; } +DEFUN (triggered_csnp, + triggered_csnp_cmd, + "triggered-csnp-delay (100-10000) [always]", + "Configure the delay for triggered CSNPs\n" + "Delay in milliseconds\n" + "Trigger CSNP for all LSPs, not only circuit-scoped\n") +{ + VTY_DECLVAR_CONTEXT(isis_area, area); + + int csnp_delay = atoi(argv[1]->arg); + bool always_send_csnp = (argc == 3); + + fabricd_configure_triggered_csnp(area, csnp_delay, always_send_csnp); + return CMD_SUCCESS; +} + +DEFUN (no_triggered_csnp, + no_triggered_csnp_cmd, + "no triggered-csnp-delay [(100-10000) [always]]", + NO_STR + "Configure the delay for triggered CSNPs\n" + "Delay in milliseconds\n" + "Trigger CSNP for all LSPs, not only circuit-scoped\n") +{ + VTY_DECLVAR_CONTEXT(isis_area, area); + + fabricd_configure_triggered_csnp(area, FABRICD_DEFAULT_CSNP_DELAY, + false); + return CMD_SUCCESS; +} + static void lsp_print_flooding(struct vty *vty, struct isis_lsp *lsp) { char lspid[255]; @@ -154,6 +185,8 @@ void isis_vty_daemon_init(void) { install_element(ROUTER_NODE, &fabric_tier_cmd); install_element(ROUTER_NODE, &no_fabric_tier_cmd); + install_element(ROUTER_NODE, &triggered_csnp_cmd); + install_element(ROUTER_NODE, &no_triggered_csnp_cmd); install_element(ENABLE_NODE, &show_lsp_flooding_cmd); } |