bgpd: Do not allow a timers connect of 0, this can hammer the CPU
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 4fd255f..0b5be73 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -3402,7 +3402,7 @@
DEFUN (neighbor_timers_connect,
neighbor_timers_connect_cmd,
- NEIGHBOR_CMD "timers connect <0-65535>",
+ NEIGHBOR_CMD "timers connect <1-65535>",
NEIGHBOR_STR
NEIGHBOR_ADDR_STR
"BGP per neighbor timers\n"
@@ -3426,7 +3426,7 @@
ALIAS (no_neighbor_timers_connect,
no_neighbor_timers_connect_val_cmd,
- NO_NEIGHBOR_CMD "timers connect <0-65535>",
+ NO_NEIGHBOR_CMD "timers connect <1-65535>",
NO_STR
NEIGHBOR_STR
NEIGHBOR_ADDR_STR