diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-03-06 20:58:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-03-06 20:58:35 +0900 |
commit | 5b7e1238205820027b891c3a4cd0f7240a4eca65 (patch) | |
tree | 805b01c7e4baffffa939b4eb5378da655406bda7 | |
parent | cd5671baee534da4a4e4d70f7597919b315b04bf (diff) |
docs: add next-hop action examples
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
-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 7cfa3abb..3a72d352 100644 --- a/docs/sources/policy.md +++ b/docs/sources/policy.md @@ -103,7 +103,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 +- set next-hop (specific address/own local address/don't modify) - set local-pref - prepend AS number in the AS_PATH attribute @@ -766,6 +766,7 @@ evaluate routes from neighbors, if matched, action will be applied. # statement without route-disposition continues to the next statement [policy-definitions.statements.actions.bgp-actions] set-med = "+100" + set-next-hop = "keep" [[policy-definitions.statements]] # if matched with "ps1", reject the route and stop evaluating # following statements @@ -788,6 +789,7 @@ evaluate routes from neighbors, if matched, action will be applied. prefix-set = "ps3" [policy-definitions.statements.actions.bgp-actions] set-med = "+10" + set-next-hop = "unchanged" ``` ### 4. Attaching policy |