summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-08-02 20:38:26 +0200
committerRenato Westphal <renato@opensourcerouting.org>2021-08-02 22:19:45 +0200
commit58e2857d23b2a9f90e704019c4b58d9460a3625e (patch)
tree5342d5468112d101789c4a0f6b96c1a7a56ca253 /doc
parentzebra: add "json" option to "show interface" (diff)
downloadfrr-58e2857d23b2a9f90e704019c4b58d9460a3625e.tar.xz
frr-58e2857d23b2a9f90e704019c4b58d9460a3625e.zip
lib: add "json" option to "show ip[v6] prefix-list"
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/user/filter.rst20
1 files changed, 13 insertions, 7 deletions
diff --git a/doc/user/filter.rst b/doc/user/filter.rst
index 7a7eda2e0..c1146e50a 100644
--- a/doc/user/filter.rst
+++ b/doc/user/filter.rst
@@ -123,19 +123,25 @@ ip prefix-list description
Showing ip prefix-list
----------------------
-.. clicmd:: show ip prefix-list
+.. clicmd:: show ip prefix-list [json]
Display all IP prefix lists.
-.. clicmd:: show ip prefix-list NAME
+ If the ``json`` option is specified, output is displayed in JSON format.
+
+.. clicmd:: show ip prefix-list NAME [json]
Show IP prefix list can be used with a prefix list name.
-.. clicmd:: show ip prefix-list NAME seq NUM
+ If the ``json`` option is specified, output is displayed in JSON format.
+
+.. clicmd:: show ip prefix-list NAME seq NUM [json]
Show IP prefix list can be used with a prefix list name and sequential
number.
+ If the ``json`` option is specified, output is displayed in JSON format.
+
.. clicmd:: show ip prefix-list NAME A.B.C.D/M
If the command longer is used, all prefix lists with prefix lengths equal to
@@ -144,10 +150,10 @@ Showing ip prefix-list
.. clicmd:: show ip prefix-list NAME A.B.C.D/M longer
.. clicmd:: show ip prefix-list NAME A.B.C.D/M first-match
-.. clicmd:: show ip prefix-list summary
-.. clicmd:: show ip prefix-list summary NAME
-.. clicmd:: show ip prefix-list detail
-.. clicmd:: show ip prefix-list detail NAME
+.. clicmd:: show ip prefix-list summary [json]
+.. clicmd:: show ip prefix-list summary NAME [json]
+.. clicmd:: show ip prefix-list detail [json]
+.. clicmd:: show ip prefix-list detail NAME [json]
.. clicmd:: debug prefix-list NAME match <A.B.C.D/M|X:X::X:X/M> [address-mode]