From 91e9aee0877ca08b36f844756c6563ef175ab118 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 12 Oct 2022 21:04:35 +0300 Subject: [PATCH] doc: Add documentation for AIGP bgp bestpath aigp neighbor PEER aigp route-map X permit 10 set aigp-metric Signed-off-by: Donatas Abraitis --- doc/user/bgp.rst | 17 +++++++++++++++++ doc/user/routemap.rst | 5 +++++ 2 files changed, 22 insertions(+) diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index 7d7dd3d805..c3318833c7 100644 --- a/doc/user/bgp.rst +++ b/doc/user/bgp.rst @@ -148,6 +148,12 @@ bottom until one of the factors can be used. Prefer higher local preference routes to lower. + If ``bgp bestpath aigp`` is enabled, and both paths that are compared have + AIGP attribute, BGP uses AIGP tie-breaking unless both of the paths have the + AIGP metric attribute. This means that the AIGP attribute is not evaluated + during the best path selection process between two paths when one path does + not have the AIGP attribute. + 3. **Local route check** Prefer local routes (statics, aggregates, redistributed) to received routes. @@ -401,6 +407,17 @@ Route Selection paths learned from any of eBGP, iBGP, or confederation neighbors will be multipath if they are otherwise considered equal cost. +.. clicmd:: bgp bestpath aigp + + Use the bgp bestpath aigp command to evaluate the AIGP attribute during + the best path selection process between two paths that have the AIGP + attribute. + + When bgp bestpath aigp is disabled, BGP does not use AIGP tie-breaking + rules unless paths have the AIGP attribute. + + Disabled by default. + .. clicmd:: maximum-paths (1-128) Sets the maximum-paths value used for ecmp calculations for this diff --git a/doc/user/routemap.rst b/doc/user/routemap.rst index 5e222576ca..c205122b0b 100644 --- a/doc/user/routemap.rst +++ b/doc/user/routemap.rst @@ -310,6 +310,11 @@ Route Map Set Command trip time or `+rtt`/`-rtt` to add/subtract the round trip time to/from the MED. +.. clicmd:: set aigp-metric + + Set the BGP attribute AIGP to a specific value. If ``igp-metric`` is specified, + then the value is taken from the IGP protocol, otherwise an arbitrary value. + .. clicmd:: set as-path prepend AS_PATH Set the BGP AS path to prepend. -- 2.39.5