diff options
Diffstat (limited to 'docs/sources/configuration.md')
-rw-r--r-- | docs/sources/configuration.md | 34 |
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:"] ``` |