From d46da74d4fba3fe169d0c4f05b0e657ec95f5336 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Thu, 6 Oct 2016 05:38:00 +0000 Subject: policy: support large-community match/action close #1133 Signed-off-by: Wataru Ishida --- docs/sources/cli-command-syntax.md | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 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 c6e009fb..be30307b 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -337,22 +337,48 @@ If you want to remove one element(extended community) of ExtCommunitySet, to spe % gobgp policy prefix del ecs1 RT:65100:10 ``` -### 3.6 Statement Operation - add/del/show - +### 3.6. Operations for LargeCommunitySet - add/del/show - +#### Syntax +```shell +# add LargeCommunitySet +% gobgp policy large-community add ... +# delete a specific LargeCommunitySet +% gobgp policy large-community del +# delete a large-community from a LargeCommunitySet +% gobgp policy large-community del +# show all LargeCommunitySet information +% gobgp policy large-community +# show a specific LargeCommunitySet information +% gobgp policy large-community +``` + +#### Example +```shell +% gobgp policy large-community add l0 100:100:100 +% gobgp policy large-community add l0 ^100: +% gobgp policy large-community add l0 :100$ +% gobgp policy large-community del l0 100:100:100 +% gobgp policy large-community add l0 200:100:100 +% gobgp policy large-community +% gobgp policy large-community set l0 100:100:100 200:200:200 300:300:300 +``` + +### 3.7 Statement Operation - add/del/show - #### Syntax ```shell # mod statement % gobgp policy statement { add | del } # mod a condition to a statement -% gobgp policy statement { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community } [{ any | all | invert }] | as-path-length { eq | ge | le } | rpki { valid | invalid | not-found } } +% gobgp policy statement { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } [{ any | all | invert }] | as-path-length { eq | ge | le } | rpki { valid | invalid | not-found } } # mod an action to a statement -% gobgp policy statement { add | del | set } action { reject | accept | { community | ext-community } { add | remove | replace } ... | med { add | sub | set } | local-pref | as-prepend { | last-as } } +% gobgp policy statement { add | del | set } action { reject | accept | { community | ext-community | large-community } { add | remove | replace } ... | med { add | sub | set } | local-pref | as-prepend { | last-as } } # show all statements % gobgp policy statement # show a specific statement % gobgp policy statement ``` -### 3.7 Policy Operation - add/del/show - +### 3.8 Policy Operation - add/del/show - #### Syntax ```shell # mod policy -- cgit v1.2.3