summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-23 19:55:14 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-28 13:03:47 +0100
commit94f756881314720753b8289aed6529676229f8c0 (patch)
tree73e71201793abea6afc304d72e75605978d9f7bc
parentbgpd: Allow using add/subtract for local-preference in route-maps (diff)
downloadfrr-94f756881314720753b8289aed6529676229f8c0.tar.xz
frr-94f756881314720753b8289aed6529676229f8c0.zip
doc: Use +/- for `set local-preference` to add/subtract the value
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
-rw-r--r--doc/user/routemap.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/user/routemap.rst b/doc/user/routemap.rst
index 435639c29..3b7bd7de1 100644
--- a/doc/user/routemap.rst
+++ b/doc/user/routemap.rst
@@ -273,6 +273,16 @@ Route Map Set Command
Set the BGP local preference to `local_pref`.
+.. index:: set local-preference +LOCAL_PREF
+.. clicmd:: set local-preference +LOCAL_PREF
+
+ Add the BGP local preference to an existing `local_pref`.
+
+.. index:: set local-preference -LOCAL_PREF
+.. clicmd:: set local-preference -LOCAL_PREF
+
+ Subtract the BGP local preference from an existing `local_pref`.
+
.. index:: [no] set distance DISTANCE
.. clicmd:: [no] set distance DISTANCE