From 34382909f09cb9758132a3653306a917ef4a61c3 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 10 Apr 2018 22:29:58 +0900 Subject: docs: update policy about route server setup Signed-off-by: FUJITA Tomonori --- docs/sources/policy.md | 18 +- docs/sources/rs-policy.svg | 899 +++++++++++++++++++++++++++++++++------------ 2 files changed, 671 insertions(+), 246 deletions(-) diff --git a/docs/sources/policy.md b/docs/sources/policy.md index ee051a1c..053a8701 100644 --- a/docs/sources/policy.md +++ b/docs/sources/policy.md @@ -63,20 +63,14 @@ The following figure shows how policy works in ![route server policy model](./rs-policy.png) -In route server mode, adding to **Import** and **Export**, we have **In** -policy. - -**Import** and **Export** policies are defined with respect to the -local routing table. The **Import** policy defines what routes will be -imported into its local RIBs. The **Export** policy defines what -routes will be exported from its local RIBs. **In** polices are -defined with respect to a peer. The **In** policy defines what routes will go -to other peers' local routing tables. +In route server mode, **Import** and **Export** policies are defined +with respect to a peer. The **Import** policy defines what routes +will be imported into the master RIB. The **Export** policy defines +what routes will be exported from the master RIB. You can check each policy by the following commands. ```shell -$ gobgp neighbor policy in $ gobgp neighbor policy import $ gobgp neighbor policy export ``` @@ -836,10 +830,8 @@ and *policy3* is used as the In policy. [neighbors.apply-policy.config] import-policy-list = ["policy1"] export-policy-list = ["policy2"] - in-policy-list = ["policy3"] default-import-policy = "accept-route" default-export-policy = "accept-route" - default-in-policy = "accept-route" ``` neighbors has a section to specify policies and the section's name is @@ -849,10 +841,8 @@ apply-policy. The apply-policy has 6 elements. |-------------------------|---------------------------------------------------------------------------------------------|----------------| | import-policy | policy-definitions.name for Import policy | "policy1" | | export-policy | policy-definitions.name for Export policy | "policy2" | -| in-policy | policy-definitions.name for In policy | "policy3" | | default-import-policy | action when the route doesn't match any policy or none of the matched policy specifies `route-disposition`:
"accept-route" or "reject-route". default is "accept-route" | "accept-route" | | default-export-policy | action when the route doesn't match any policy or none of the matched policy specifies `route-disposition`:
"accept-route" or "reject-route". default is "accept-route" | "accept-route" | -| default-in-policy | action when the route doesn't match any policy or none of the matched policy specifies `route-disposition`:
"accept-route" or "reject-route". default is "accept-route" | "accept-route" | ## Policy Configuration Example diff --git a/docs/sources/rs-policy.svg b/docs/sources/rs-policy.svg index fbf7685c..d62146c8 100644 --- a/docs/sources/rs-policy.svg +++ b/docs/sources/rs-policy.svg @@ -1,246 +1,681 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + - - - + + + + + - - - + + + - - - - - - - - - - - - - + + + + + - - - + + + - - A - - - A - - - A - - - B - - - B - - - B - - - C - - - C - - - C - - - Adj-IN - - - Loc-RIB - - - Adj-OUT - - - In - Policy - - - Import - Policy - - - Export - Policy - - - - + + + + + - - - + + + - - - + + + + + - - - + + + - - - + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A + + + A + + + B + + + B + + + C + + + C + + + Adj-IN + + + Master RIB + + + Adj-OUT + + + Import + Policy + + + Export + Policy + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3