summaryrefslogtreecommitdiff
path: root/docs/configuration/policy
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2023-12-11 20:17:41 +0100
committerGitHub <noreply@github.com>2023-12-11 20:17:41 +0100
commit6e4faf0188bbdd1cdf281f4800d22f442a16f98c (patch)
tree85111f4501e8d2ec273f35ea3bf4e424bd815c57 /docs/configuration/policy
parenta141b96427c5fe070b49203e5142035c6ac77e5f (diff)
parent4fc7bdf5db129752bd4e4a97a210570491d3e6f6 (diff)
downloadvyos-documentation-6e4faf0188bbdd1cdf281f4800d22f442a16f98c.tar.gz
vyos-documentation-6e4faf0188bbdd1cdf281f4800d22f442a16f98c.zip
Merge pull request #1177 from vyos/mergify/bp/sagitta/pr-1173
policy: T4704: Added set metric (MED) to (+/-)rtt in route-map (backport #1173)
Diffstat (limited to 'docs/configuration/policy')
-rw-r--r--docs/configuration/policy/route-map.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/configuration/policy/route-map.rst b/docs/configuration/policy/route-map.rst
index 9fe1eef7..07cfcf02 100644
--- a/docs/configuration/policy/route-map.rst
+++ b/docs/configuration/policy/route-map.rst
@@ -318,10 +318,12 @@ Route Map
Set BGP local preference attribute.
.. cfgcmd:: set policy route-map <text> rule <1-65535> set metric
- <+/-metric|0-4294967295>
+ <+/-metric|0-4294967295|rtt|+rtt|-rtt>
- Set destination routing protocol metric. Add or subtract metric, or set
- metric value.
+ Set the route metric. When used with BGP, set the BGP attribute MED
+ to a specific value. Use ``+/-`` to add or subtract the specified value
+ to/from the existing/MED. Use ``rtt`` to set the MED to the round trip
+ time or ``+rtt/-rtt`` to add/subtract the round trip time to/from the MED.
.. cfgcmd:: set policy route-map <text> rule <1-65535> set metric-type
<type-1|type-2>