]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: increase the maximum number of neighbors 8378/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 31 Mar 2021 15:51:34 +0000 (17:51 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 2 Apr 2021 07:01:02 +0000 (09:01 +0200)
increase the maximum number of neighbors in a bgp group.
Set the maximum value to 50000 instead of 5000.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_vty.c
bgpd/bgpd.h
doc/user/bgp.rst
yang/frr-bgp-common.yang

index a1c85757d4978b191c39174ed0a3ce3e02f4980a..9ecf02aae035481f2e215f11e02739b747c38e82 100644 (file)
@@ -3990,7 +3990,7 @@ void cli_show_router_global_neighbor_config(struct vty *vty,
 
 DEFUN_YANG(bgp_listen_limit,
           bgp_listen_limit_cmd,
-          "bgp listen limit (1-5000)",
+          "bgp listen limit (1-65535)",
           "BGP specific commands\n"
           "BGP Dynamic Neighbors listen commands\n"
           "Maximum number of BGP Dynamic Neighbors that can be created\n"
@@ -4007,7 +4007,7 @@ DEFUN_YANG(bgp_listen_limit,
 
 DEFUN_YANG(no_bgp_listen_limit,
           no_bgp_listen_limit_cmd,
-          "no bgp listen limit [(1-5000)]",
+          "no bgp listen limit [(1-65535)]",
           NO_STR
           "BGP specific commands\n"
           "BGP Dynamic Neighbors listen commands\n"
index 3f5f4ce4a15a79c1f43ec42f02f80e21806d7ca0..51134dc8c57f4086d5a5417ec183be453cba2389 100644 (file)
@@ -1824,7 +1824,7 @@ struct bgp_nlri {
 /* BGP Dynamic Neighbors feature */
 #define BGP_DYNAMIC_NEIGHBORS_LIMIT_DEFAULT    100
 #define BGP_DYNAMIC_NEIGHBORS_LIMIT_MIN          1
-#define BGP_DYNAMIC_NEIGHBORS_LIMIT_MAX       5000
+#define BGP_DYNAMIC_NEIGHBORS_LIMIT_MAX      65535
 
 /* Flag for peer_clear_soft().  */
 enum bgp_clear_type {
index 57c1ae65ffb3e65cbcd8d4c9e75f989dae4978d4..09bb275684baee265f4fab5d910a4f69e03ff214 100644 (file)
@@ -1363,6 +1363,15 @@ Defining Peers
    ``net.core.optmem_max`` to allow the kernel to allocate the necessary option
    memory.
 
+.. clicmd:: bgp listen limit <1-65535>
+
+   Define the maximum number of peers accepted for one BGP instance. This
+   limit is set to 100 by default. Increasing this value will really be
+   possible if more file descriptors are available in the BGP process. This
+   value is defined by the underlying system (ulimit value), and can be
+   overriden by `--limit-fds`. More information is available in chapter
+   (:ref:`common-invocation-options`).
+
 .. clicmd:: coalesce-time (0-4294967295)
 
    The time in milliseconds that BGP will delay before deciding what peers
index 1840e3728c9ea52f066661c0ae181c98d8fe060d..1a19d529656261664772b073489f767f2fb9c660 100644 (file)
@@ -393,7 +393,7 @@ submodule frr-bgp-common {
     container global-neighbor-config {
       leaf dynamic-neighbors-limit {
         type uint32 {
-          range "1..5000";
+          range "1..65535";
         }
         description
           "Maximum number of BGP Dynamic Neighbors that can be created.";