From 5b7e1238205820027b891c3a4cd0f7240a4eca65 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 6 Mar 2021 20:58:35 +0900 Subject: docs: add next-hop action examples Signed-off-by: FUJITA Tomonori --- docs/sources/policy.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/sources/policy.md') 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 -- cgit v1.2.3