summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/configuration.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/configuration.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/configuration.md')
-rw-r--r--docs/sources/configuration.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md
index 56c14a78..6c8b2f85 100644
--- a/docs/sources/configuration.md
+++ b/docs/sources/configuration.md
@@ -141,6 +141,9 @@
[[defined-sets.bgp-defined-sets.as-path-sets]]
as-path-set-name = "as0"
as-path-list = ["^100", "200$"]
+[[defined-sets.bgp-defined-sets.large-community-sets]]
+ large-community-set-name = "ls0"
+ large-community-list = ["100:100:100", "200:200:200"]
[[policy-definitions]]
name = "policy1"
@@ -154,6 +157,9 @@
[policy-definitions.statements.conditions.bgp-conditions.match-community-set]
community-set = "cs0"
match-set-options = "all"
+ [policy-definitions.statements.conditions.bgp-conditions.match-large-community-set]
+ community-set = "ls0"
+ match-set-options = "all"
[policy-definitions.statements.actions.bgp-actions.set-as-path-prepend]
as = "last-as"
repeat-n = 5
@@ -228,4 +234,32 @@
route-type = "external"
[policy-definitions.statements.actions.route-disposition]
accept-route = true
+
+[[policy-definitions]]
+ name = "large-communty-policy"
+ [[policy-definitions.statements]]
+ # this statement adds specified large communities
+ [policy-definitions.statements.actions.route-disposition]
+ accept-route = true
+ [policy-definitions.statements.actions.bgp-actions.set-large-community]
+ options = "add"
+ [policy-definitions.statements.actions.bgp-actions.set-large-community.set-large-community-method]
+ communities-list = ["100:200:300"]
+ [[policy-definitions.statements]]
+ # this statement adds specified large communities
+ [policy-definitions.statements.actions.route-disposition]
+ accept-route = true
+ [policy-definitions.statements.actions.bgp-actions.set-large-community]
+ options = "replace"
+ [policy-definitions.statements.actions.bgp-actions.set-large-community.set-large-community-method]
+ communities-list = ["100:200:300"]
+ [[policy-definitions.statements]]
+ # this statement removes specified large communities
+ # regular expression is also supported
+ [policy-definitions.statements.actions.route-disposition]
+ accept-route = true
+ [policy-definitions.statements.actions.bgp-actions.set-large-community]
+ options = "remove"
+ [policy-definitions.statements.actions.bgp-actions.set-large-community.set-large-community-method]
+ communities-list = ["100:200:300", "^200:"]
```