diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-10 20:02:29 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-11 07:13:49 +0900 |
commit | 54092b2703c6df26e40787696a9ac8afbacb5b5e (patch) | |
tree | a475f04ab0f460b10a5927d1b7b9b0be4d2f0e91 /docs | |
parent | 331721e167b1d43213acf77f5c039b8b7b5c0c17 (diff) |
config: rename distributed-policy to in-policy
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sources/cli-command-syntax.md | 8 | ||||
-rw-r--r-- | docs/sources/filter-detail.md | 26 |
2 files changed, 17 insertions, 17 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md index c34a62e6..e78e4062 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -108,14 +108,14 @@ The following options can be specified in the neighbor subcommand: % gobgp neighbor <neighbor address> policy add import <policy names> <default policy action> # add policy to export-policy configuration % gobgp neighbor <neighbor address> policy add export <policy names> <default policy action> -# add policy to distribute-policy configuration -% gobgp neighbor <neighbor address> policy add distribute <policy names> <default policy action> +# add policy to in-policy configuration +% gobgp neighbor <neighbor address> policy add in <policy names> <default policy action> # delete import-policy configuration from specific neighbor % gobgp neighbor <neighbor address> policy del import # delete export-policy configuration from specific neighbor % gobgp neighbor <neighbor address> policy del export -# delete distribute-policy configuration from specific neighbor -% gobgp neighbor <neighbor address> policy del distribute +# delete in-policy configuration from specific neighbor +% gobgp neighbor <neighbor address> policy del in # show a specific policy information % gobgp neighbor <neighbor address> policy ``` diff --git a/docs/sources/filter-detail.md b/docs/sources/filter-detail.md index 3a65652c..6f87a3f5 100644 --- a/docs/sources/filter-detail.md +++ b/docs/sources/filter-detail.md @@ -5,9 +5,9 @@ This page shows how to write your own policies. As [Policy configuration](https://github.com/osrg/gobgp/blob/master/docs/sources/policy.md) shows, -you can define import or export policies or distribute policies to control the route advertisement. +you can define Import or Export policies or In policies to control the route advertisement. -Note: The distribute policy is applied only when the peer is Route Server client. +Note: The In policy is applied only when the peer is Route Server client. Basically a policy has condition part and an action part. The condition part can be defined with attributes below: - prefix @@ -709,13 +709,13 @@ You can write condition and action under Statements. --- ### 4. Attaching policy -You can use policies defined above as import or export or distribtue policy by +You can use policies defined above as Import or Export or In policy by attaching them to neighbors. - Note: The distribute policy is applied only when the peer is Route Server client. + Note: The In policy is applied only when the peer is Route Server client. To attach policies to neighbors, you need to add policy's name to Neighbors.NeighborList.ApplyPolicy in the neighbor's setting. -This example attatches *policy1* to import policy and *policy2* to export policy and *policy3* is used as the distribute policy. +This example attatches *policy1* to Import policy and *policy2* to Export policy and *policy3* is used as the In policy. ``` [Neighbors] @@ -729,10 +729,10 @@ This example attatches *policy1* to import policy and *policy2* to export policy [Neighbors.NeighborList.ApplyPolicy.ApplyPolicyConfig] ImportPolicy = ["policy1"] ExportPolicy = ["policy2"] - DistributedPolicy = ["policy3"] + InPolicy = ["policy3"] DefaultImportPolicy = 0 DefaultExportPolicy = 0 - DefaultDistributePolicy = 0 + DefaultInPolicy = 0 ``` Neighbors.NeighborList has a section to specify policies and the section's name is ApplyPolicy. @@ -740,9 +740,9 @@ The ApplyPolicy has 6 elements. | Element | Description | Example | |-------------------------|---------------------------------------------------------------------------------------------|------------| -| ImportPolicy | PolicyDefinitions.PolicyDefinitionList.name for import policy | "policy1" | -| ExportPolicy | PolicyDefinitions.PolicyDefinitionList.name for export policy | "policy2" | -| DistributedPolicy | PolicyDefinitions.PolicyDefinitionList.name for distribute policy | "policy3" | -| DefaultImportPolicy | action when the route doesn't match any policy:<br> 0 means import,<br> 1 means reject | 0 | -| DefaultExportPolicy | action when the route doesn't match any policy:<br> 0 means export,<br> 1 means discard | 0 | -| DefaultDistributePolicy | action when the route doesn't match any policy:<br> 0 means distribute,<br> 1 means reject | 0 | +| ImportPolicy | PolicyDefinitions.PolicyDefinitionList.name for Import policy | "policy1" | +| ExportPolicy | PolicyDefinitions.PolicyDefinitionList.name for Export policy | "policy2" | +| InPolicy | PolicyDefinitions.PolicyDefinitionList.name for In policy | "policy3" | +| DefaultImportPolicy | action when the route doesn't match any policy:<br> 0 means Import,<br> 1 means reject | 0 | +| DefaultExportPolicy | action when the route doesn't match any policy:<br> 0 means Export,<br> 1 means discard | 0 | +| DefaultInPolicy | action when the route doesn't match any policy:<br> 0 means In,<br> 1 means reject | 0 | |