From a0c14ca606b6567835a4d50c4b457c036df2cda9 Mon Sep 17 00:00:00 2001 From: Naoto Hanaue Date: Mon, 29 Jun 2015 12:29:24 +0900 Subject: doc: add a description of the med action to filter-detail.md --- docs/sources/filter-detail.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/sources/filter-detail.md b/docs/sources/filter-detail.md index cefb0a83..a5e76fee 100644 --- a/docs/sources/filter-detail.md +++ b/docs/sources/filter-detail.md @@ -305,6 +305,7 @@ You can write condition and action under StatementList. [PolicyDefinitionList.StatementList.Actions] AcceptRoute = true [PolicyDefinitionList.StatementList.Actions.BgpActions] + SetMed = "-200" [PolicyDefinitionList.StatementList.Actions.BgpActions.SetCommunity] Communities = ["65100:20"] Options = "ADD" @@ -355,13 +356,18 @@ You can write condition and action under StatementList. |-------------|-----------------------------------------------------------------------------------|---------| | AcceptRoute | action to accept the route if matches conditions. If true, this route is accepted | true | + - PolicyDefinitionList.StatementList.Actions.BgpActions + + | Element | Description | Example | + |---------|----------------------------------------------------------------------------------|---------| + | SetMed | SetMed used to change the med value of the route.
If only numbers have been specified, replace the med value of route.
if number and operater(+ or -) have been specified, adding or subtracting the med value of route. | "-200" | - PolicyDefinitionList.StatementList.Actions.BgpActions.SetCommunity | Element | Description | Example | |-------------|----------------------------------------------------------------------------------|---------| - | Communities | communities used to manipulate the route's community accodriong to Options below | "eq" | - | Options | operator to manipulate Community attribute in the route | 2 | + | Communities | communities used to manipulate the route's community accodriong to Options below | "65100:20" | + | Options | operator to manipulate Community attribute in the route | "ADD" |
@@ -452,7 +458,7 @@ You can write condition and action under StatementList. - AsPathSet: *aspath1* - AsPath length: *equal 2* - - If a route matches all these conditions, the route is accepted and added community "65100:20". + - If a route matches all these conditions, the route is accepted and added community "65100:20" and subtract 200 from med value. ``` # example 4 @@ -473,6 +479,7 @@ You can write condition and action under StatementList. [PolicyDefinitionList.StatementList.Actions] AcceptRoute = true [PolicyDefinitionList.StatementList.Actions.BgpActions] + SetMed = "-200" [PolicyDefinitionList.StatementList.Actions.BgpActions.SetCommunity] Communities = ["65100:20"] Options = "ADD" -- cgit v1.2.3