summaryrefslogtreecommitdiffstats
path: root/doc/user
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2021-05-14 20:57:06 +0200
committerQuentin Young <qlyoung@nvidia.com>2021-07-13 19:19:14 +0200
commit389e4f92d67edc301994fb3b6fe9b178e6b962e4 (patch)
tree659dfef65f42bda39420cb4ad3f8a0ab1bec674a /doc/user
parentMerge pull request #8508 from opensourcerouting/systemd-no-lib (diff)
downloadfrr-389e4f92d67edc301994fb3b6fe9b178e6b962e4.tar.xz
frr-389e4f92d67edc301994fb3b6fe9b178e6b962e4.zip
bgpd: add knob to config cond-adv scanner period
Adds a knob that sets the time between loc-rib scans for conditional advertisement. I chose the range (5-240) because 1 second seems dumb and too easy to hurt yourself at even moderate scale, 5 seconds you can still hurt yourself but I could see a use case for it, and 4 minutes should be enough for anyone (tm) Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'doc/user')
-rw-r--r--doc/user/bgp.rst16
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst
index b5950538d..c93a2833c 100644
--- a/doc/user/bgp.rst
+++ b/doc/user/bgp.rst
@@ -3016,10 +3016,13 @@ The conditional BGP announcements are sent in addition to the normal
announcements that a BGP router sends to its peer.
The conditional advertisement process is triggered by the BGP scanner process,
-which runs every 60 seconds. This means that the maximum time for the conditional
-advertisement to take effect is 60 seconds. The conditional advertisement can take
-effect depending on when the tracked route is removed from the BGP table and
-when the next instance of the BGP scanner occurs.
+which runs every 60 by default. This means that the maximum time for the
+conditional advertisement to take effect is the value of the process timer.
+
+As an optimization, while the process always runs on each timer expiry, it
+determines whether or not the conditional advertisement policy or the routing
+table has changed; if neither have changed, no processing is necessary and the
+scanner exits early.
.. clicmd:: neighbor A.B.C.D advertise-map NAME [exist-map|non-exist-map] NAME
@@ -3027,6 +3030,11 @@ when the next instance of the BGP scanner occurs.
exist-map or non-exist-map command in BGP table and conditionally advertises
the routes specified by advertise-map command.
+.. clicmd:: bgp conditional-advertisement timer (5-240)
+
+ Set the period to rerun the conditional advertisement scanner process. The
+ default is 60 seconds.
+
Sample Configuration
^^^^^^^^^^^^^^^^^^^^^
.. code-block:: frr