summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/cli-command-syntax.md
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-06-26 13:10:15 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-06-26 13:10:15 +0900
commit69b36e90ba70131bf67127968e6bb8fa80460161 (patch)
treefd60319600f9963aa4a29edc4f113eb3a4e38d03 /docs/sources/cli-command-syntax.md
parentdd11fa616a9b22d63669d65712552ef94c85e7ef (diff)
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 <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/cli-command-syntax.md')
-rw-r--r--docs/sources/cli-command-syntax.md11
1 files changed, 7 insertions, 4 deletions
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 <prefix> [-a <address family>]
# show all Route information
% gobgp global rib [-a <address family>]
+# show a specific route information
+% gobgp global rib [<prefix>|<host>] [-a <address family>]
```
- **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 <neighbor address> local [-a <address family>]
-% gobgp neighbor <neighbor address> adj-in [-a <address family>]
-% gobgp neighbor <neighbor address> adj-out [-a <address family>]
+# show all routes in [local|adj-in|adj-out] table
+% gobgp neighbor <neighbor address> [local|adj-in|adj-out] [-a <address family>]
+# show a specific route in [local|adj-in|adj-out] table
+% gobgp neighbor <neighbor address> [local|adj-in|adj-out] [<prefix>|<host>] [-a <address family>]
```
- **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