summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-06 15:13:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-06 21:59:43 +0900
commitf90d8c6620fba0eafd5bd5528ef8f4b3311a3343 (patch)
tree6ec535a11bb8357be3990a550f466363bc3860d9 /docs/sources
parent87a71be40f37a3d39e56d8452bcf122a6b5ce422 (diff)
policy: support the match of consecutive AsPath and regular expressions to AsPath Condition
Diffstat (limited to 'docs/sources')
-rw-r--r--docs/sources/filter-detail.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/sources/filter-detail.md b/docs/sources/filter-detail.md
index b096ed27..f6147547 100644
--- a/docs/sources/filter-detail.md
+++ b/docs/sources/filter-detail.md
@@ -340,6 +340,11 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part.
- Origin: "65100$" means the route is originated by AS 65100.
- Only: "^65100$" means the route is originated by AS 65100 and comes from it directly.
+ Further you can specify the consecutive aspath and use regexp in each element as follows:
+ - ^65100_65001
+ - 65100_[0-9]+_.*$
+ - ^6[0-9]_5.*_65.?00$
+
##### Examples
- example 1
- Match routes which come from AS 65100.
@@ -354,6 +359,19 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part.
AsPath = "^65100"
```
+ - example 2
+ - Match routes which come Origin AS 65100 and use regular expressions to other AS.
+
+ ```
+ # example 2
+ [DefinedSets.BgpDefinedSets]
+ [DefinedSets.BgpDefinedSets.AsPathSets]
+ [[DefinedSets.BgpDefinedSets.AsPathSets.AsPathSetList]]
+ AsPathSetName = "aspath2"
+ [[DefinedSets.BgpDefinedSets.AsPathSets.AsPathSetList.AsPathList]]
+ AsPath = "[0-9]+_65[0-9]+_65100$"
+ ```
+
---
### 3. Defining PolicyDefinitions