diff options
author | tamihiro <dead6oy@gmail.com> | 2016-04-18 16:21:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-04-21 12:27:59 +0900 |
commit | 7e1b1868193bb2a6bbf49d17f2af7dc1f6a962bf (patch) | |
tree | 65aa7e0333ee90406d8682361852d68f574149c9 /docs/sources/policy.md | |
parent | e5896c901ae7b66a5ad03230575ccd5e8a24665b (diff) |
config: add set-next-hop option
Diffstat (limited to 'docs/sources/policy.md')
-rw-r--r-- | docs/sources/policy.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/sources/policy.md b/docs/sources/policy.md index ef9fa7e0..5b99c52e 100644 --- a/docs/sources/policy.md +++ b/docs/sources/policy.md @@ -98,6 +98,7 @@ Actions are categorized into attributes below: - accept or reject - add/replace/remove community or remove all communities - add/subtract or replace MED value +- set next-hop - prepend AS number in the AS_PATH attribute If All condition in the statement are true, the action(s) in the statement are executed. @@ -686,7 +687,7 @@ You can write condition and action under Statements. - AsPathSet: *aspath1* - AsPath length: *equal 2* - - If a route matches all these conditions, the route is accepted and added community "65100:20" and subtracted 200 from med value and prepended 65005 five times in its AS_PATH attribute. + - If a route matches all these conditions, the route is accepted and added community "65100:20" and subtracted 200 from med value and prepended 65005 five times in its AS_PATH attribute, and also next-hop 10.0.0.1 is set. ```toml # example 4 @@ -711,6 +712,7 @@ You can write condition and action under Statements. accept-route = true [policy-definitions.statements.actions.bgp-actions] set-med = "-200" + set-next-hop = "10.0.0.1" [policy-definitions.statements.actions.bgp-actions.set-as-path-prepend] as = "65005" repeat-n = 5 |