From 5fbd0cb24324f1569377ce5c627bb2db97b76ce7 Mon Sep 17 00:00:00 2001 From: Marcin Ptaszyński Date: Tue, 5 Jun 2018 14:44:53 -0700 Subject: table: support AfiSafiIn Policy Condition match --- docs/sources/cli-command-syntax.md | 2 +- docs/sources/policy.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/sources') 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 } # mod a condition to a statement -% gobgp policy statement { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } [{ any | all | invert }] | as-path-length { eq | ge | le } | rpki { valid | invalid | not-found } | next-hop-in-list [, , ...] } +% gobgp policy statement { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } [{ any | all | invert }] | as-path-length { eq | ge | le } | rpki { valid | invalid | not-found } | next-hop-in-list [, , ...] | afi-safi-in { ... } } # mod an action to a statement % gobgp policy statement { add | del | set } action { reject | accept | { community | ext-community | large-community } { add | remove | replace } ... | med { add | sub | set } | local-pref | as-prepend { | last-as } } # 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] -- cgit v1.2.3