summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/policy.md
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-06 05:38:00 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-10 05:18:17 +0000
commitd46da74d4fba3fe169d0c4f05b0e657ec95f5336 (patch)
tree94b962ebdf526bc4f84e5aef5ce18707dbfd933f /docs/sources/policy.md
parent2cd0de0139cb47edac0c418f4efd4e5c6d185f63 (diff)
policy: support large-community match/action
close #1133 Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/policy.md')
-rw-r--r--docs/sources/policy.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/sources/policy.md b/docs/sources/policy.md
index f746f6a7..e9d4b8be 100644
--- a/docs/sources/policy.md
+++ b/docs/sources/policy.md
@@ -99,6 +99,7 @@ Conditions are categorized into attributes below:
- extended community
- rpki validation result
- route type (internal/external/local)
+- large community
As showed in the figure above, some of the conditions point to defined sets,
which are a container for each condition item (e.g. prefixes).
@@ -124,6 +125,7 @@ $ gobgp policy neighbor
$ gobgp policy as-path
$ gobgp policy community
$ gobgp policy ext-community
+$ gobgp policy large-community
```
## <a name="configuration"> Policy Configuration
@@ -148,6 +150,7 @@ Below are the steps for policy configuration
1. define community-sets
1. define ext-community-sets
1. define as-path-setList
+ 1. define large-community-sets
1. define policy-definitions
1. attach policies to global rib (or neighbor local rib when neighbor is [route-server-client](https://github.com/osrg/gobgp/blob/master/docs/sources/route-server.md)).
@@ -320,6 +323,10 @@ part. Like prefix-sets and neighbor-sets, each can have multiple sets and each s
[[defined-sets.bgp-defined-sets.as-path-sets]]
as-path-set-name = "aspath1"
as-path-list = ["^65100"]
+# Large Community match part
+ [[defined-sets.bgp-defined-sets.large-community-sets]]
+ large-community-set-name = "lcommunity1"
+ large-community-list = ["65100:100:100"]
```
----