summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sources')
-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
```