From: Naveen Thanikachalam Date: Fri, 20 Dec 2019 09:25:30 +0000 (-0800) Subject: lib: Optimizing route-maps - Part-4 X-Git-Tag: base_7.4~322^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=009d25a06408d5911588b961745ff2d6049fe3a9;p=matthieu%2Ffrr.git lib: Optimizing route-maps - Part-4 The commit includes the documentation for the newly introduced commands to enable/disable the optimization. Signed-off-by: NaveenThanikachalam --- diff --git a/doc/user/routemap.rst b/doc/user/routemap.rst index 435639c291..8526b0f984 100644 --- a/doc/user/routemap.rst +++ b/doc/user/routemap.rst @@ -346,6 +346,27 @@ Route Map Exit Action Command Proceed processing the route-map at the first entry whose order is >= N +.. _route-map-optimization-command: + +Route Map Optimization Command +============================== + +.. index:: route-map optimization +.. clicmd:: route-map optimization + + Enable route-map processing optimization. The optimization is + enabled by default. + Instead of sequentially passing through all the route-map indexes + until a match is found, the search for the best-match index will be + based on a look-up in a prefix-tree. A per-route-map prefix-tree + will be constructed for this purpose. The prefix-tree will compose + of all the prefixes in all the prefix-lists that are included in the + match rule of all the sequences of a route-map. + +.. index:: no route-map optimization +.. clicmd:: no route-map optimization + + Disable the route-map processing optimization. Route Map Examples ==================