From 69b36e90ba70131bf67127968e6bb8fa80460161 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 26 Jun 2015 13:10:15 +0900 Subject: cli: add support of route filtering in show commands $ gobgp global rib Network Next Hop AS_PATH Age Attrs *> 10.0.0.0/24 0.0.0.0 65000 00:10:17 [{Origin: IGP}] *> 10.0.0.0/25 0.0.0.0 65000 00:10:16 [{Origin: IGP}] *> 10.0.0.0/26 0.0.0.0 65000 00:10:15 [{Origin: IGP}] *> 10.0.1.0/24 0.0.0.0 65000 00:10:21 [{Origin: IGP}] *> 10.0.2.0/24 0.0.0.0 65000 00:10:20 [{Origin: IGP}] $ gobgp global rib 10.0.0.0/24 Network Next Hop AS_PATH Age Attrs *> 10.0.0.0/24 0.0.0.0 65000 00:10:54 [{Origin: IGP}] $ gobgp global rib 10.0.0.10 Network Next Hop AS_PATH Age Attrs *> 10.0.0.0/26 0.0.0.0 65000 00:11:16 [{Origin: IGP}] Signed-off-by: ISHIDA Wataru --- docs/sources/cli-command-syntax.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs/sources/cli-command-syntax.md') diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md index f183d281..fa7747dd 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -26,6 +26,8 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. % gobgp global rib del [-a
] # show all Route information % gobgp global rib [-a
] +# show a specific route information +% gobgp global rib [|] [-a
] ``` - **Option** - \-a , \-\-address-family: specify the ipv4, ipv6, evpn, encap, or rtc @@ -58,9 +60,10 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. ### Show Rib - local-rib/adj-rib-in/adj-rib-out - ```shell -% gobgp neighbor local [-a
] -% gobgp neighbor adj-in [-a
] -% gobgp neighbor adj-out [-a
] +# show all routes in [local|adj-in|adj-out] table +% gobgp neighbor [local|adj-in|adj-out] [-a
] +# show a specific route in [local|adj-in|adj-out] table +% gobgp neighbor [local|adj-in|adj-out] [|] [-a
] ``` - **Option** - \-a , \-\-address-family: specify the ipv4 or ipv6 @@ -167,4 +170,4 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. Specify the options of action when you use the routepolicy add subcommand. - \-\-a-route : specify the action(accept, reject) of the route that match to the conditions - - \-\-a-community : specify the community operation of the route that match to the conditions \ No newline at end of file + - \-\-a-community : specify the community operation of the route that match to the conditions -- cgit v1.2.3