diff options
author | Juliusz Chroboczek <jch@pps.jussieu.fr> | 2012-02-11 14:02:10 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 18:06:54 +0200 |
commit | c428edba5fb151844d28fbb41fce1df466a74e42 (patch) | |
tree | 739698e02d1d1e1108015980a6e3fba7a0e64404 /babeld/babeld.c | |
parent | babeld: remove port and group setting commands. (diff) | |
download | frr-c428edba5fb151844d28fbb41fce1df466a74e42.tar.xz frr-c428edba5fb151844d28fbb41fce1df466a74e42.zip |
babeld: vty commands (hello-interval, update-interval, resend-delay).
Diffstat (limited to 'babeld/babeld.c')
-rw-r--r-- | babeld/babeld.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index f42a81b6b..07dd92a37 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -629,6 +629,22 @@ DEFUN (no_router_babel, return CMD_SUCCESS; } +/* [Babel Command] */ +DEFUN (babel_set_resend_delay, + babel_set_resend_delay_cmd, + "babel resend-delay <20-655340>", + "Babel commands\n" + "Time before resending a message\n" + "Milliseconds\n") +{ + int interval; + + VTY_GET_INTEGER_RANGE("milliseconds", interval, argv[0], 20, 10 * 0xFFFE); + + resend_delay = interval; + return CMD_SUCCESS; +} + void babeld_quagga_init(void) { @@ -639,6 +655,7 @@ babeld_quagga_init(void) install_element(CONFIG_NODE, &no_router_babel_cmd); install_default(BABEL_NODE); + install_element(BABEL_NODE, &babel_set_resend_delay_cmd); babel_if_init(); |