diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-09 18:53:16 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-13 15:41:27 +0900 |
commit | 16aec4acef8f580b7b1b62abedc6365c176feb3f (patch) | |
tree | 8308775fb4c28b97416e30c837aa41d2882180df /docs/sources/cli-command-syntax.md | |
parent | c0d597433f6a3bcd7009fd60806d6b5906faa65d (diff) |
doc: add the description of aspath prepend action
Diffstat (limited to 'docs/sources/cli-command-syntax.md')
-rw-r--r-- | docs/sources/cli-command-syntax.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md index 730d712e..6faac956 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -273,7 +273,7 @@ If you want to remove one element(community) of CommunitySet, to specify a addre #### - example If you want to add the RoutePolicy: ```shell -% gobgp policy routepolicy add policy1 state1 --c-prefix=ps1 --c-neighbor=ns1 --c-aspath=ass1 --c-community=cs1 --c-aslen=eq,3 --c-option=all --a-route=reject --a-community=ADD[65100:20] --a-med=+100 +% gobgp policy routepolicy add policy1 state1 --c-prefix=ps1 --c-neighbor=ns1 --c-aspath=ass1 --c-community=cs1 --c-aslen=eq,3 --c-option=all --a-route=reject --a-community=ADD[65100:20] --a-med=+100 --a-asprepend=65100,10 ``` However, it is not necessary to specify all of the options at once. @@ -296,15 +296,16 @@ The following options can be specified in the policy 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 |pecify the name that added community set in CommunitySet 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) | - options of action -| short |long | description | -|--------|------------|-----------------------------------------------------------------------------| -|- |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 | -|- |a-med |specify the med operation of the route that match to the conditions | +| short |long | description | +|--------|------------|---------------------------------------------------------------------------------------------------------------| +|- |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 | +|- |a-med |specify the med operation of the route that match to the conditions | +|- |a-asprepend |specify a combination of an AS number and repeat count(e.g. 65100,10) to prepend if the path matches conditions| |