summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/policy.md
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.im>2016-02-16 12:17:38 +0100
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 02:35:19 +0900
commit415e6257e826f37644878d3168c678655d83cd07 (patch)
tree6f2dcf6b33f7a1189ae974c6f7f36e613d48d2ac /docs/sources/policy.md
parent6f783bf0a3d83da51b4988322541bef784a0114e (diff)
doc: fix formatting in policy configuration documentation
Due to a bad indentation, tables and titles weren't rendered properly on GitHub. Signed-off-by: Vincent Bernat <vincent@bernat.im>
Diffstat (limited to 'docs/sources/policy.md')
-rw-r--r--docs/sources/policy.md95
1 files changed, 48 insertions, 47 deletions
diff --git a/docs/sources/policy.md b/docs/sources/policy.md
index b98fa1f5..ed131d76 100644
--- a/docs/sources/policy.md
+++ b/docs/sources/policy.md
@@ -97,7 +97,7 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
- DefinedSets example
-```toml
+ ```toml
# prefix match part
[[defined-sets.prefix-sets]]
prefix-set-name = "ps1"
@@ -109,7 +109,7 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
[[defined-sets.neighbor-sets]]
prefix-set-name = "ps1"
neighbor-info-list = ["10.0.255.1"]
-```
+ ```
----
@@ -136,49 +136,49 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
- Match routes whose high order 2 octets of NLRI is 10.33 and its prefix length is between from 21 to 24
- If you define a PrefixList that doesn't have MasklengthRange, it matches routes that have just 10.33.0.0/16 as NLRI.
-```toml
-# example 1
-[[defined-sets.prefix-sets]]
- prefix-set-name = "ps1"
- [[defined-sets.prefix-sets.prefix-list]]
- ip-prefix = "10.33.0.0/16"
- masklength-range = "21..24"
-```
+ ```toml
+ # example 1
+ [[defined-sets.prefix-sets]]
+ prefix-set-name = "ps1"
+ [[defined-sets.prefix-sets.prefix-list]]
+ ip-prefix = "10.33.0.0/16"
+ masklength-range = "21..24"
+ ```
- example 2
- If you want to evaluate multiple routes with a single PrefixSetList, you can do this by adding an another PrefixList like this:
- This PrefixSetList match checks if a route has 10.33.0.0/21 to 24 or 10.50.0.0/21 to 24.
-```toml
-# example 2
-[[defined-sets.prefix-sets]]
- prefix-set-name = "ps1"
- [[defined-sets.prefix-sets.prefix-list]]
- ip-prefix = "10.33.0.0/16"
- masklength-range = "21..24"
- [[defined-sets.prefix-sets.prefix-list]]
- ip-prefix = "10.50.0.0/16"
- masklength-range = "21..24"
-```
+ ```toml
+ # example 2
+ [[defined-sets.prefix-sets]]
+ prefix-set-name = "ps1"
+ [[defined-sets.prefix-sets.prefix-list]]
+ ip-prefix = "10.33.0.0/16"
+ masklength-range = "21..24"
+ [[defined-sets.prefix-sets.prefix-list]]
+ ip-prefix = "10.50.0.0/16"
+ masklength-range = "21..24"
+ ```
- example 3
- PrefixSetName under PrefixSetList is reference to a single PrefixSet.
- If you want to add different PrefixSet more, you can add other blocks that form the same structure with example 1.
-```toml
-# example 3
-[[defined-sets.prefix-sets]]
- prefix-set-name = "ps1"
- [[defined-sets.prefix-sets.prefix-list]]
- ip-prefix = "10.33.0.0/16"
- masklength-range = "21..24"
-[[defined-sets.prefix-sets]]
- prefix-set-name = "ps2"
- [[defined-sets.prefix-sets.prefix-list]]
- ip-prefix = "10.50.0.0/16"
- masklength-range = "21..24"
-```
+ ```toml
+ # example 3
+ [[defined-sets.prefix-sets]]
+ prefix-set-name = "ps1"
+ [[defined-sets.prefix-sets.prefix-list]]
+ ip-prefix = "10.33.0.0/16"
+ masklength-range = "21..24"
+ [[defined-sets.prefix-sets]]
+ prefix-set-name = "ps2"
+ [[defined-sets.prefix-sets.prefix-list]]
+ ip-prefix = "10.50.0.0/16"
+ masklength-range = "21..24"
+ ```
----
@@ -202,23 +202,24 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
##### Examples
- example 1
-```toml
-# example 1
-[[defined-sets.neighbor-sets]]
- prefix-set-name = "ns1"
- neighbor-info-list = ["10.0.255.1"]
-```
+ ```toml
+ # example 1
+ [[defined-sets.neighbor-sets]]
+ prefix-set-name = "ns1"
+ neighbor-info-list = ["10.0.255.1"]
+ ```
- example 2
- As with PrefixSetList, NeighborSetList can have multiple NeighborInfoList like this.
-```toml
-# example 2
-[[defined-sets.neighbor-sets]]
- prefix-set-name = "ns1"
- neighbor-info-list = ["10.0.255.1", "10.0.255.2"]
-```
-- example 3
+ ```toml
+ # example 2
+ [[defined-sets.neighbor-sets]]
+ prefix-set-name = "ns1"
+ neighbor-info-list = ["10.0.255.1", "10.0.255.2"]
+ ```
+
+ - example 3
- As with PrefixSetList, multiple NeighborSetLists can be defined.
```toml