diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-06 19:43:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-06 21:59:43 +0900 |
commit | 74fd2e51ee6746440602250b11477ba96d86c258 (patch) | |
tree | d4ebfee31639ade1596993520031a30e0a19cd3b /docs/sources/cli-command-syntax.md | |
parent | f90d8c6620fba0eafd5bd5528ef8f4b3311a3343 (diff) |
cli: change the parser of cli in accordance with the change of aspath condition
Diffstat (limited to 'docs/sources/cli-command-syntax.md')
-rw-r--r-- | docs/sources/cli-command-syntax.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md index a1ade65f..cd565b74 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -208,11 +208,17 @@ If you want to add the AsPathSet: ```shell % gobgp policy aspath add ass1 ^65100 ``` - You can specify the position using regexp-like expression as follows: - - From: "^65100" means the route is passed from AS 65100 directly. - - Any: "65100" means the route comes through AS 65100. - - 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. + +You can specify the position using regexp-like expression as follows: +- From: "^65100" means the route is passed from AS 65100 directly. +- Any: "65100" means the route comes through AS 65100. +- 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$ An AsPathSet it is possible to have multiple as path, if you want to remove the AsPathSet to specify only AsPathSet name. ```shell |