summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/cli-command-syntax.md
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-05-25 11:21:25 +0900
committerNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-05-26 17:32:05 +0900
commit349f74e4e7e990a221d747243a7810a0bf31f8f0 (patch)
treed35bab9746db2a7dab46cc602020f2b7f20ca438 /docs/sources/cli-command-syntax.md
parent9532a3e6cf1fd03946155d73d22bcaf07551c620 (diff)
docs: add update docs about the new CLI syntax
Diffstat (limited to 'docs/sources/cli-command-syntax.md')
-rw-r--r--docs/sources/cli-command-syntax.md29
1 files changed, 17 insertions, 12 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md
index da2cf384..1c5a9ed9 100644
--- a/docs/sources/cli-command-syntax.md
+++ b/docs/sources/cli-command-syntax.md
@@ -62,15 +62,15 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand.
### Operations for Policy - add/del/show -
```shell
# add policy to import-policy configuration
-% gobgp neighbor <neighbor address> policy add import <import policy name> <default import policy> -a <address family>
+% gobgp neighbor <neighbor address> policy add import <import policy name> <default import policy>
# add policy to export-policy configuration
-% gobgp neighbor <neighbor address> policy add export <export policy name> <default export policy> -a <address family>
+% gobgp neighbor <neighbor address> policy add export <export policy name> <default export policy>
# delete import-policy configuration from specific neighbor
-% gobgp neighbor <neighbor address> policy del import -a <address family>
+% gobgp neighbor <neighbor address> policy del import
# delete export-policy configuration from specific neighbor
-% gobgp neighbor <neighbor address> policy del export -a <address family>
-# show a specific policy information
-% gobgp neighbor <neighbor address> policy -a <address family>
+% gobgp neighbor <neighbor address> policy del export
+# show a specific policy information
+% gobgp neighbor <neighbor address> policy
```
### Operations for Static Route - add/del/show -
@@ -93,9 +93,10 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand.
# add PrefixSet
% gobgp policy prefix add <prefix set name> <prefix>
# delete all PrefixSet
-% gobgp policy prefix del
+% gobgp policy prefix del all
# delete a specific PrefixSet
% gobgp policy prefix del <prefix set name>
+% gobgp policy prefix del <prefix set name> <prefix> <mask length range>
# show all PrefixSet information
% gobgp policy prefix
# show a specific PrefixSet
@@ -104,11 +105,12 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand.
### Operations for NeighborSet - add/del/show -
```shell
# add NeighborSet
-% gobgp policy neighbor add <neighbor-set name> <neighbor address>
+% gobgp policy neighbor add <neighbor set name> <neighbor address>
# delete all NeighborSet
-% gobgp policy neighbor del
+% gobgp policy neighbor del all
# delete a specific NeighborSet
% gobgp policy neighbor del <neighbor set name>
+% gobgp policy neighbor del <neighbor set name> <address>
# show all NeighborSet information
% gobgp policy neighbor
# show a specific NeighborSet information
@@ -116,12 +118,15 @@ Note: Currently gobgp supports only **global** and **neighbor** subcommand.
```
### Operations for RoutePolicy - add/del/show -
```shell
-# add RoutePolicy
-% gobgp policy routepoilcy add <route policy name> condition <condtion> action <aciton>
+# add conditions to RoutePolicy
+% gobgp policy routepoilcy add <route policy name> <statement name> condition <condtion>
+# add actions to RoutePolicy
+% gobgp policy routepoilcy add <route policy name> <statement name> action <aciton>
# delete all RoutePolicy
-% gobgp policy routepoilcy del
+% gobgp policy routepoilcy del all
# delete a specific RoutePolicy
% gobgp policy routepoilcy del <route policy name>
+% gobgp policy routepoilcy del <route policy name> <statement name>
# show all RoutePolicy information
% gobgp policy routepoilcy
# show a specific RoutePolicy information