summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorMarcin Ptaszyński <marcin.ptaszynski@ntti3.com>2018-06-05 14:44:53 -0700
committerMarcin Ptaszyński <marcin.ptaszynski@ntti3.com>2018-06-13 20:53:17 -0700
commit5fbd0cb24324f1569377ce5c627bb2db97b76ce7 (patch)
tree4c646607888f8a46b9f9d2ecedfc3f6759950eda /docs
parent964bb04e22fdbf430d9810f5b362d7844b81e251 (diff)
table: support AfiSafiIn Policy Condition match
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/cli-command-syntax.md2
-rw-r--r--docs/sources/policy.md3
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md
index ab2007e1..232f1577 100644
--- a/docs/sources/cli-command-syntax.md
+++ b/docs/sources/cli-command-syntax.md
@@ -464,7 +464,7 @@ If you want to remove one element(extended community) of ExtCommunitySet, to spe
# mod statement
% gobgp policy statement { add | del } <statement name>
# mod a condition to a statement
-% gobgp policy statement <statement name> { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } <set name> [{ any | all | invert }] | as-path-length <len> { eq | ge | le } | rpki { valid | invalid | not-found } | next-hop-in-list <next-hop>[, <next-hop2>, ...] }
+% gobgp policy statement <statement name> { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } <set name> [{ any | all | invert }] | as-path-length <len> { eq | ge | le } | rpki { valid | invalid | not-found } | next-hop-in-list <next-hop>[, <next-hop2>, ...] | afi-safi-in { <afi-safi>... } }
# mod an action to a statement
% gobgp policy statement <statement name> { add | del | set } action { reject | accept | { community | ext-community | large-community } { add | remove | replace } <value>... | med { add | sub | set } <value> | local-pref <value> | as-prepend { <asn> | last-as } <repeat-value> }
# show all statements
diff --git a/docs/sources/policy.md b/docs/sources/policy.md
index 053a8701..95977614 100644
--- a/docs/sources/policy.md
+++ b/docs/sources/policy.md
@@ -92,6 +92,7 @@ Conditions are categorized into attributes below:
- rpki validation result
- route type (internal/external/local)
- large community
+- afi-safi in
As showed in the figure above, some of the conditions point to defined sets,
which are a container for each condition item (e.g. prefixes).
@@ -516,6 +517,8 @@ evaluate routes from neighbors, if matched, action will be applied.
[policy-definitions.statements.conditions.bgp-conditions.as-path-length]
operator = "eq"
value = 2
+ [policy-definitions.statements.conditions.bgp-conditions]
+ afi-safi-in = ["l3vpn-ipv4-unicast", "ipv4-unicast"]
[policy-definitions.statements.actions]
route-disposition = "accept-route"
[policy-definitions.statements.actions.bgp-actions]