summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorurban <bodozoglou@gmail.com>2018-02-20 21:48:23 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-06-05 19:57:21 +0900
commit5d15b3f290a4305e0c8b7d651834c997d2b09910 (patch)
treebce6c7e82f8a2c9f1d400ffeabbb3f791a989e68 /docs
parent5c506b6db14dac32e60bb2f880faf6317ede46e6 (diff)
table: support nexthop match policy
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/cli-command-syntax.md2
-rw-r--r--docs/sources/configuration.md7
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md
index 16a4f254..ab2007e1 100644
--- a/docs/sources/cli-command-syntax.md
+++ b/docs/sources/cli-command-syntax.md
@@ -464,7 +464,7 @@ If you want to remove one element(extended community) of ExtCommunitySet, to spe
# mod statement
% gobgp policy statement { add | del } <statement name>
# mod a condition to a statement
-% gobgp policy statement <statement name> { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } <set name> [{ any | all | invert }] | as-path-length <len> { eq | ge | le } | rpki { valid | invalid | not-found } }
+% gobgp policy statement <statement name> { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } <set name> [{ any | all | invert }] | as-path-length <len> { eq | ge | le } | rpki { valid | invalid | not-found } | next-hop-in-list <next-hop>[, <next-hop2>, ...] }
# mod an action to a statement
% gobgp policy statement <statement name> { add | del | set } action { reject | accept | { community | ext-community | large-community } { add | remove | replace } <value>... | med { add | sub | set } <value> | local-pref <value> | as-prepend { <asn> | last-as } <repeat-value> }
# show all statements
diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md
index 9bef5ec3..641a7d98 100644
--- a/docs/sources/configuration.md
+++ b/docs/sources/configuration.md
@@ -262,6 +262,13 @@
options = "remove"
[policy-definitions.statements.actions.bgp-actions.set-ext-community.set-ext-community-method]
communities-list = ["soo:500:600", "rt:700:800"]
+ [[policy-definitions.statements]]
+ [policy-definitions.statements.conditions.bgp-conditions]
+ next-hop-in-list = [
+ "10.0.100.1/32"
+ ]
+ [policy-definitions.statements.actions]
+ route-disposition = "accept-route"
[[policy-definitions]]
name = "route-type-policy"