From 5d15b3f290a4305e0c8b7d651834c997d2b09910 Mon Sep 17 00:00:00 2001 From: urban Date: Tue, 20 Feb 2018 21:48:23 +0000 Subject: table: support nexthop match policy --- docs/sources/cli-command-syntax.md | 2 +- docs/sources/configuration.md | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'docs') 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 } # mod a condition to a statement -% gobgp policy statement { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } [{ any | all | invert }] | as-path-length { eq | ge | le } | rpki { valid | invalid | not-found } } +% gobgp policy statement { add | del | set } condition { { prefix | neighbor | as-path | community | ext-community | large-community } [{ any | all | invert }] | as-path-length { eq | ge | le } | rpki { valid | invalid | not-found } | next-hop-in-list [, , ...] } # mod an action to a statement % gobgp policy statement { add | del | set } action { reject | accept | { community | ext-community | large-community } { add | remove | replace } ... | med { add | sub | set } | local-pref | as-prepend { | last-as } } # 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" -- cgit v1.2.3