summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-05 17:21:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-05 22:12:24 +0900
commitad4bfac371e545e2713e9157cc6e5f6af5278635 (patch)
tree46e44865c4b74af43c262f366c5fa3d0cb870b11 /docs/sources
parent0b5bb073128b3000f383927a997d4a40d274f569 (diff)
config: change type of Prefix in the PrefixSet
Diffstat (limited to 'docs/sources')
-rw-r--r--docs/sources/filter-detail.md45
-rw-r--r--docs/sources/filter.md8
2 files changed, 18 insertions, 35 deletions
diff --git a/docs/sources/filter-detail.md b/docs/sources/filter-detail.md
index 792185c8..b096ed27 100644
--- a/docs/sources/filter-detail.md
+++ b/docs/sources/filter-detail.md
@@ -65,10 +65,8 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
[[DefinedSets.PrefixSets.PrefixSetList]]
PrefixSetName = "ps1"
[[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ IpPrefix = "10.33.0.0/16"
MasklengthRange = "21..24"
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.33.0.0
- Mask = [255, 255, 0, 0]
# neighbor match part
[DefinedSets.NeighborSets]
@@ -85,12 +83,11 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
PrefixSetList has 3 elements.
- | Element |Description | Example | Optional |
- |-----------------|-------------------|------------|------------|
- | PrefixSetName | name of PrefixSet | "10.33.0.0"| |
- | IP | prefix address | "10.33.0.0"| |
- | MASK | prefix length | 16 | |
- | MasklengthRange | range of length | "21..24" | Yes |
+ | Element |Description | Example | Optional |
+ |-----------------|-------------------|---------------|------------|
+ | PrefixSetName | name of PrefixSet | "ps1" | |
+ | IpPrefix | prefix value | "10.33.0.0/16"| |
+ | MasklengthRange | range of length | "21..24" | Yes |
##### Examples
@@ -102,11 +99,9 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
[DefinedSets.PrefixSets]
[[DefinedSets.PrefixSets.PrefixSetList]]
PrefixSetName = "ps1"
- [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ IpPrefix = "10.33.0.0/16"
MasklengthRange = "21..24"
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.33.0.0"
- Mask = [255, 255, 0, 0]
```
- If you define a PrefixList that doesn't have MasklengthRange, it matches routes that have just 10.33.0.0/16 as NLRI.
@@ -120,16 +115,12 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
[DefinedSets.PrefixSets]
[[DefinedSets.PrefixSets.PrefixSetList]]
PrefixSetName = "ps1"
- [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ IpPrefix = "10.33.0.0/16"
MasklengthRange = "21..24"
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.33.0.0"
- Mask = [255, 255, 0, 0]
- [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ IpPrefix = "10.50.0.0/16"
MasklengthRange = "21..24"
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.50.0.0"
- Mask = [255, 255, 0, 0]
```
- This prefix match checks if a route has 10.33.0.0/21 to 24 **or** 10.50.0.0/21 to 24.
@@ -144,19 +135,15 @@ PrefixSets and NeighborSets section are prefix match part and neighbor match par
# PrefixSetList
[[DefinedSets.PrefixSets.PrefixSetList]]
PrefixSetName = "ps1"
- [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ IpPrefix = "10.33.0.0/16"
MasklengthRange = "21..24"
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.33.0.0"
- Mask = [255, 255, 0, 0]
# another PrefixSetList
[[DefinedSets.PrefixSets.PrefixSetList]]
PrefixSetName = "ps2"
- [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ [[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
+ IpPrefix = "10.50.0.0/16"
MasklengthRange = "21..24"
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.50.0.0
- Mask = [255, 255, 0, 0]
```
----
diff --git a/docs/sources/filter.md b/docs/sources/filter.md
index 0cd23a37..3f64f500 100644
--- a/docs/sources/filter.md
+++ b/docs/sources/filter.md
@@ -69,13 +69,9 @@ define an import policy for neighbor 10.0.255.2 that drops
[[DefinedSets.PrefixSets.PrefixSetList]]
PrefixSetName = "ps2"
[[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.33.0.0
- Mask = [255, 255, 0, 0]
+ IpPrefix = "10.33.0.0/16"
[[DefinedSets.PrefixSets.PrefixSetList.PrefixList]]
- [DefinedSets.PrefixSets.PrefixSetList.PrefixList.IpPrefix]
- IP = "10.50.0.0"
- Mask = [255, 255, 0, 0]
+ IpPrefix = "10.50.0.0/16"
[DefinedSets.NeighborSets]