summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-08-17 09:47:38 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-17 21:23:08 +0900
commit4a5828daf195c998b6844fbdf9bbc101f4734358 (patch)
tree9939d1ba2f49f8b9b85acedeefb4ef9671bfb453
parentcd4b0107c3b6855a8bf495cb972d04f8863d95c9 (diff)
docs: add a route-type condition example
[ci skip] Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--docs/sources/configuration.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md
index ef2025c0..d383023a 100644
--- a/docs/sources/configuration.md
+++ b/docs/sources/configuration.md
@@ -195,4 +195,25 @@
options = "remove"
[policy-definitions.statements.actions.bgp-actions.set-ext-community.set-ext-community-method]
communities-list = ["soo:500:600", "rt:700:800"]
+
+[[policy-definitions]]
+ name = "route-type-policy"
+ [[policy-definitions.statements]]
+ # 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]]
+ # 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]]
+ # 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
```