From d46da74d4fba3fe169d0c4f05b0e657ec95f5336 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Thu, 6 Oct 2016 05:38:00 +0000 Subject: policy: support large-community match/action close #1133 Signed-off-by: Wataru Ishida --- docs/sources/policy.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/sources/policy.md') diff --git a/docs/sources/policy.md b/docs/sources/policy.md index f746f6a7..e9d4b8be 100644 --- a/docs/sources/policy.md +++ b/docs/sources/policy.md @@ -99,6 +99,7 @@ Conditions are categorized into attributes below: - extended community - rpki validation result - route type (internal/external/local) +- large community 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). @@ -124,6 +125,7 @@ $ gobgp policy neighbor $ gobgp policy as-path $ gobgp policy community $ gobgp policy ext-community +$ gobgp policy large-community ``` ## Policy Configuration @@ -148,6 +150,7 @@ Below are the steps for policy configuration 1. define community-sets 1. define ext-community-sets 1. define as-path-setList + 1. define large-community-sets 1. define policy-definitions 1. attach policies to global rib (or neighbor local rib when neighbor is [route-server-client](https://github.com/osrg/gobgp/blob/master/docs/sources/route-server.md)). @@ -320,6 +323,10 @@ part. Like prefix-sets and neighbor-sets, each can have multiple sets and each s [[defined-sets.bgp-defined-sets.as-path-sets]] as-path-set-name = "aspath1" as-path-list = ["^65100"] +# Large Community match part + [[defined-sets.bgp-defined-sets.large-community-sets]] + large-community-set-name = "lcommunity1" + large-community-list = ["65100:100:100"] ``` ---- -- cgit v1.2.3