From: Quentin Young Date: Fri, 8 Jun 2018 07:55:55 +0000 (+0000) Subject: doc: move find command docs to better spot X-Git-Tag: frr-6.1-dev~341^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8421b1401de79b633b064f6c6ea6c62eebbe5672;p=mirror_frr.git doc: move find command docs to better spot Signed-off-by: Quentin Young --- diff --git a/doc/user/basic.rst b/doc/user/basic.rst index 0c2ef8ccd..a75017c44 100644 --- a/doc/user/basic.rst +++ b/doc/user/basic.rst @@ -326,6 +326,33 @@ Terminal Mode Commands Send a message to all logging destinations that are enabled for messages of the given severity. +.. index:: find COMMAND... +.. clicmd:: find COMMAND... + + This commmand performs a simple substring search across all defined commands + in all modes. As an example, suppose you're in enable mode and can't + remember where the command to turn OSPF segment routing on is: + + :: + + frr# find segment-routing on + (ospf) segment-routing on + + The CLI mode is displayed next to each command. In this example, + :clicmd:`segment-routing on` is under the `router ospf` mode. + + Similarly, suppose you want a listing of all commands that contain "l2vpn": + + :: + + frr# find l2vpn + (view) show [ip] bgp l2vpn evpn [json] + (view) show [ip] bgp l2vpn evpn all [json] + (view) show [ip] bgp l2vpn evpn all neighbors A.B.C.D advertised-routes [json] + (view) show [ip] bgp l2vpn evpn all neighbors A.B.C.D routes [json] + (view) show [ip] bgp l2vpn evpn all overlay + ... + .. _common-invocation-options: @@ -611,33 +638,6 @@ insta-help, and VTY session management. line. Typing :kbd:`?` at any point in the line will show possible completions. -.. index:: find COMMAND... -.. clicmd:: find COMMAND... - - This commmand performs a simple substring search across all defined commands - in all modes. As an example, suppose you're in enable mode and can't - remember where the command to turn OSPF segment routing on is: - - :: - - frr# find segment-routing on - (ospf) segment-routing on - - The CLI mode is displayed next to each command. In this example, - :clicmd:`segment-routing on` is under the `router ospf` mode. - - Similarly, suppose you want a listing of all commands that contain "l2vpn": - - :: - - frr# find l2vpn - (view) show [ip] bgp l2vpn evpn [json] - (view) show [ip] bgp l2vpn evpn all [json] - (view) show [ip] bgp l2vpn evpn all neighbors A.B.C.D advertised-routes [json] - (view) show [ip] bgp l2vpn evpn all neighbors A.B.C.D routes [json] - (view) show [ip] bgp l2vpn evpn all overlay - ... - Pipe Actions ^^^^^^^^^^^^