From b38154da1aa53763cd3515163501dfef305c63e7 Mon Sep 17 00:00:00 2001 From: Naoto Hanaue Date: Wed, 17 Jun 2015 15:49:25 +0900 Subject: docs: update cli-command-syntax.md --- docs/sources/cli-command-syntax.md | 98 ++++++++++++++++++++++++++------------ 1 file changed, 67 insertions(+), 31 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 1c5a9ed9..f183d281 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -21,12 +21,14 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. ### Operations for Global-Rib - add/del/show - ```shell # add Route -% gobgp global rib add -a
+% gobgp global rib add [-a
] # delete a specific Route -% gobgp global rib del -a
+% gobgp global rib del [-a
] # show all Route information -% gobgp global rib -a
+% gobgp global rib [-a
] ``` + - **Option** + - \-a , \-\-address-family: specify the ipv4, ipv6, evpn, encap, or rtc
@@ -45,19 +47,23 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. ```shell % gobgp neighbor shutdown % gobgp neighbor reset -% gobgp neighbor softreset -a
-% gobgp neighbor softresetin -a
-% gobgp neighbor softresetout -a
+% gobgp neighbor softreset [-a
] +% gobgp neighbor softresetin [-a
] +% gobgp neighbor softresetout [-a
] % gobgp neighbor enable % gobgp neighbor disable ``` + - **Option** + - \-a , \-\-address-family: specify the ipv4 or ipv6 ### 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
+% gobgp neighbor local [-a
] +% gobgp neighbor adj-in [-a
] +% gobgp neighbor adj-out [-a
] ``` + - **Option** + - \-a , \-\-address-family: specify the ipv4 or ipv6 ### Operations for Policy - add/del/show - ```shell @@ -73,18 +79,6 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. % gobgp neighbor policy ``` -### Operations for Static Route - add/del/show - -```shell -# add Route -% gobgp neighbor route add -a
-# delete all Route -% gobgp neighbor route del -a
-# delete a specific Route -% gobgp neighbor route del -a
-# show all Route information -% gobgp neighbor route -a
-``` -
## policy subcommand @@ -95,13 +89,13 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. # delete all PrefixSet % gobgp policy prefix del all # delete a specific PrefixSet -% gobgp policy prefix del -% gobgp policy prefix del +% gobgp policy prefix del [ ] # show all PrefixSet information % gobgp policy prefix # show a specific PrefixSet % gobgp policy prefix ``` + ### Operations for NeighborSet - add/del/show - ```shell # add NeighborSet @@ -109,26 +103,68 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand. # delete all NeighborSet % gobgp policy neighbor del all # delete a specific NeighborSet -% gobgp policy neighbor del -% gobgp policy neighbor del
+% gobgp policy neighbor del [
] # show all NeighborSet information % gobgp policy neighbor # show a specific NeighborSet information % gobgp policy neighbor ``` + +### Operations for AsPathSet - add/del/show - +```shell +# add AsPathSet +% gobgp policy aspath add +# delete all AsPathSet +% gobgp policy aspath del all +# delete a specific AsPathSet +% gobgp policy aspath del [] +# show all AsPathSet information +% gobgp policy aspath +# show a specific AsPathSet information +% gobgp policy aspath +``` + +### Operations for CommunitySet - add/del/show - +```shell +# add CommunitySet +% gobgp policy community add +# delete all CommunitySet +% gobgp policy community del all +# delete a specific CommunitySet +% gobgp policy community del [] +# show all CommunitySet information +% gobgp policy community +# show a specific CommunitySet information +% gobgp policy community +``` + + ### Operations for RoutePolicy - add/del/show - ```shell -# add conditions to RoutePolicy -% gobgp policy routepoilcy add condition -# add actions to RoutePolicy -% gobgp policy routepoilcy add action +# add RoutePolicy +% gobgp policy routepoilcy add [] # delete all RoutePolicy % gobgp policy routepoilcy del all # delete a specific RoutePolicy -% gobgp policy routepoilcy del -% gobgp policy routepoilcy del +% gobgp policy routepoilcy del [] # show all RoutePolicy information % gobgp policy routepoilcy # show a specific RoutePolicy information % gobgp policy routepoilcy ``` + - **Option (Conditon)** + + Specify the options of condition when you use the routepolicy add subcommand. + - \-\-c-prefix : specify the name that added prefix set in PrefixSet subcommand + - \-\-c-neighbor : specify the name that added neighbor set in NeighborSet subcommand + - \-\-c-aspath : specify the name that added as path set in AsPathSet subcommand + - \-\-c-community : specify the name that added community set in CommunitySet subcommand + - \-\-c-aslen : specify the operator(eq, ge, le) and value(numric) + - \-\-c-option : specify the match option(any, all, invert) + +
+ - **Option (Action)** + + 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 -- cgit v1.2.3