summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/configuration.md
diff options
context:
space:
mode:
authortamihiro <dead6oy@gmail.com>2017-01-15 13:16:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-01-15 06:30:26 -0800
commit512b156be685a4d32c727554a8409453272c7c0d (patch)
treeb963bf4f2201a35d8f03d1f21b9a68c50181779e /docs/sources/configuration.md
parentf591da3beb7e98e59764f40187be4112ec47adfb (diff)
fix configuration examples with correct route-disposition policy syntax
Diffstat (limited to 'docs/sources/configuration.md')
-rw-r--r--docs/sources/configuration.md48
1 files changed, 24 insertions, 24 deletions
diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md
index 6c8b2f85..c6162db4 100644
--- a/docs/sources/configuration.md
+++ b/docs/sources/configuration.md
@@ -163,21 +163,21 @@
[policy-definitions.statements.actions.bgp-actions.set-as-path-prepend]
as = "last-as"
repeat-n = 5
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[[policy-definitions.statements]]
[policy-definitions.statements.conditions.bgp-conditions.match-ext-community-set]
ext-community-set = "es0"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = false
+ [policy-definitions.statements.actions]
+ route-disposition = "reject-route"
[[policy-definitions]]
name = "policy2"
[[policy-definitions.statements]]
[policy-definitions.statements.conditions.bgp-conditions.match-as-path-set]
as-path-set = "as0"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions.set-community]
options = "add"
[policy-definitions.statements.actions.bgp-actions.set-community.set-community-method]
@@ -188,8 +188,8 @@
[[policy-definitions.statements]]
[policy-definitions.statements.conditions.bgp-conditions.match-as-path-set]
as-path-set = "as0"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions.set-community]
options = "add"
[policy-definitions.statements.actions.bgp-actions.set-community.set-community-method]
@@ -198,8 +198,8 @@
[policy-definitions.statements.conditions.match-prefix-set]
prefix-set = "ps0"
match-set-options = "invert"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions.set-ext-community]
options = "replace"
[policy-definitions.statements.actions.bgp-actions.set-ext-community.set-ext-community-method]
@@ -207,8 +207,8 @@
[[policy-definitions.statements]]
[policy-definitions.statements.conditions.match-neighbor-set]
neighbor-set = "ns0"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions.set-ext-community]
options = "remove"
[policy-definitions.statements.actions.bgp-actions.set-ext-community.set-ext-community-method]
@@ -220,35 +220,35 @@
# this statement matches with locally generated routes
[policy-definitions.statements.conditions.bgp-conditions]
route-type = "local"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[[policy-definitions.statements]]
# this statement matches with routes from iBGP peers
[policy-definitions.statements.conditions.bgp-conditions]
route-type = "internal"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[[policy-definitions.statements]]
# this statement matches with routes from eBGP peers
[policy-definitions.statements.conditions.bgp-conditions]
route-type = "external"
- [policy-definitions.statements.actions.route-disposition]
- accept-route = true
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[[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]
+ route-disposition = "accept-route"
[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]
+ route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions.set-large-community]
options = "replace"
[policy-definitions.statements.actions.bgp-actions.set-large-community.set-large-community-method]
@@ -256,8 +256,8 @@
[[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]
+ route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions.set-large-community]
options = "remove"
[policy-definitions.statements.actions.bgp-actions.set-large-community.set-large-community-method]