Skip to content

Commit

Permalink
lib: Optimizing route-maps - Part-4
Browse files Browse the repository at this point in the history
The commit includes the documentation for the newly introduced
commands to enable/disable the optimization.

Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com>
  • Loading branch information
NaveenThanikachalam committed Dec 22, 2019
1 parent 3c7628a commit b00f495
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/user/routemap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
==================
Expand Down

0 comments on commit b00f495

Please sign in to comment.