diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sources/cli-operations.md | 9 | ||||
-rw-r--r-- | docs/sources/filter-detail.md | 40 | ||||
-rw-r--r-- | docs/sources/filter.md | 9 | ||||
-rw-r--r-- | docs/sources/route-server.md | 6 |
4 files changed, 40 insertions, 24 deletions
diff --git a/docs/sources/cli-operations.md b/docs/sources/cli-operations.md index 2af84e1a..66fbe367 100644 --- a/docs/sources/cli-operations.md +++ b/docs/sources/cli-operations.md @@ -41,21 +41,24 @@ should be like the following. NeighborAddress = "10.0.255.1" PeerAs = 65001 [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true [[Neighbors.NeighborList]] [Neighbors.NeighborList.NeighborConfig] NeighborAddress = "10.0.255.2" PeerAs = 65002 [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true [[Neighbors.NeighborList]] [Neighbors.NeighborList.NeighborConfig] NeighborAddress = "10.0.255.3" PeerAs = 65003 [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true ``` After you send `HUP` signal (`kill` command), you should see 10.0.255.3 peer. diff --git a/docs/sources/filter-detail.md b/docs/sources/filter-detail.md index 9a6ba111..792185c8 100644 --- a/docs/sources/filter-detail.md +++ b/docs/sources/filter-detail.md @@ -229,32 +229,35 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part. [DefinedSets.BgpDefinedSets.CommunitySets] [[DefinedSets.BgpDefinedSets.CommunitySets.CommunitySetList]] CommunitySetName = "community1" - CommunityMember = ["65100:10"] + [[DefinedSets.BgpDefinedSets.CommunitySets.CommunitySetList.CommunityList]] + Community = "65100:10" # Extended Community match part [DefinedSets.BgpDefinedSets.ExtCommunitySets] [[DefinedSets.BgpDefinedSets.ExtCommunitySets.ExtCommunitySetList]] ExtCommunitySetName = "ecommunity1" - ExtCommunityMember = ["RT:65001:200"] + [[DefinedSets.BgpDefinedSets.ExtCommunitySets.ExtCommunitySetList.ExtCommunityList]] + ExtCommunity = "RT:65001:200" # AS_PATH match part [DefinedSets.BgpDefinedSets.AsPathSets] [[DefinedSets.BgpDefinedSets.AsPathSets.AsPathSetList]] AsPathSetName = "aspath1" - AsPathSetMember = ["^65100"] + [[DefinedSets.BgpDefinedSets.AsPathSets.AsPathSetList.AsPathList]] + AsPath = "^65100" ``` ---- #### CommunitySets - CommunitySets has CommunitySetList, and CommunitySetList has Community value as its element. The values are used to evaluate communities held by the destination. + CommunitySets has CommunitySetList, and CommunitySetList has CommunityList. The values are used to evaluate communities held by the destination. CommunitySetList has 2 elements. | Element | Description | Example | Optional | |------------------|-------------------------|--------------|----------| | CommunitySetName | name of CommunitySet | "community1" | | - | CommunityMember | list of Community value | ["65100:10"] | | + | Community | community value | "65100:10" | | - You can use regular expressions to specify communities in CommunityMember element. + You can use regular expressions to specify community in CommunityList. ##### Examples - example 1 @@ -266,7 +269,8 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part. [DefinedSets.BgpDefinedSets.CommunitySets] [[DefinedSets.BgpDefinedSets.CommunitySets.CommunitySetList]] CommunitySetName = "community1" - CommunityMember = ["65100:10"] + [[DefinedSets.BgpDefinedSets.CommunitySets.CommunitySetList.CommunityList]] + Community = "65100:10" ``` - example 2 @@ -279,21 +283,22 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part. [DefinedSets.BgpDefinedSets.CommunitySets] [[DefinedSets.BgpDefinedSets.CommunitySets.CommunitySetList]] CommunitySetName = "community2" - CommunityMember = ["6[0-9]+:[0-9]+"] + [[DefinedSets.BgpDefinedSets.CommunitySets.CommunitySetList.CommunityList]] + Community = 6[0-9]+:[0-9]+" ``` ---- #### ExtCommunitySets - ExtCommunitySets has ExtCommunitySetList, and ExtCommunitySetList has Extended Community value as its element. The values are used to evaluate extended communities held by the destination. + ExtCommunitySets has ExtCommunitySetList, and ExtCommunitySetList has ExtCommunityList. The values are used to evaluate extended communities held by the destination. ExtCommunitySetList has 2 elements. | Element | Description | Example | Optional | |---------------------|----------------------------|------------------|----------| | ExtCommunitySetName | name of ExtCommunitySet | "ecommunity1" | | - | ExtCommunityMember | list of ExtCommunity value | ["RT:65001:200"] | | + | ExtCommunity | extended community value | "RT:65001:200" | | - You can use regular expressions to specify extended communities in ExtCommunityMember element. + You can use regular expressions to specify extended community in ExtCommunityList. However, the first one element separated by (part of "RT") does not support to the regular expression. part of "RT" indicate sub type of extended community and using sub type as follows: @@ -311,7 +316,8 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part. [DefinedSets.BgpDefinedSets.ExtCommunitySets] [[DefinedSets.BgpDefinedSets.ExtCommunitySets.ExtCommunitySetList]] ExtCommunitySetName = "ecommunity1" - ExtCommunityMember = ["RT:65001:200"] + [[DefinedSets.BgpDefinedSets.ExtCommunitySets.ExtCommunitySetList.ExtCommunityList]] + ExtCommunity = "RT:65001:200" ``` - example 2 @@ -324,21 +330,22 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part. [DefinedSets.BgpDefinedSets.ExtCommunitySets] [[DefinedSets.BgpDefinedSets.ExtCommunitySets.ExtCommunitySetList]] ExtCommunitySetName = "ecommunity1" - ExtCommunityMember = ["RT:6[0-9]+:[0-9]+"] + [[DefinedSets.BgpDefinedSets.ExtCommunitySets.ExtCommunitySetList.ExtCommunityList]] + ExtCommunity = "RT:6[0-9]+:[0-9]+" ``` ---- #### AsPathSets - AsPathSets has AsPathSetList, and AsPathSetList has AS numbers as its element. The numbers are used to evaluate AS numbers in the destination's AS_PATH attribute. + AsPathSets has AsPathSetList, and AsPathSetList has AsPathList. The numbers are used to evaluate AS numbers in the destination's AS_PATH attribute. AsPathSetList has 2 elements. | Element | Description | Example | Optional | |------------------|-------------------|------------|----------| | AsPathSetName | name of AsPathSet | "aspath1" | | - | AsPathSetMember | list of AS number | ["^65100"] | | + | AsPathSet | as path value | "^65100" | | You can specify the position using regexp-like expression as follows: - From: "^65100" means the route is passed from AS 65100 directly. @@ -356,7 +363,8 @@ CommunitySets, ExtCommunitySets and AsPathSets section are each match part. [DefinedSets.BgpDefinedSets.AsPathSets] [[DefinedSets.BgpDefinedSets.AsPathSets.AsPathSetList]] AsPathSetName = "aspath1" - AsPathSetMember = ["^65100"] + [[DefinedSets.BgpDefinedSets.AsPathSets.AsPathSetList.AsPathList]] + AsPath = "^65100" ``` --- diff --git a/docs/sources/filter.md b/docs/sources/filter.md index d87e9735..0cd23a37 100644 --- a/docs/sources/filter.md +++ b/docs/sources/filter.md @@ -42,14 +42,16 @@ define an import policy for neighbor 10.0.255.2 that drops NeighborAddress = "10.0.255.1" PeerAs = 65001 [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true [[Neighbors.NeighborList]] [Neighbors.NeighborList.NeighborConfig] NeighborAddress = "10.0.255.2" PeerAs = 65002 [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true [Neighbors.NeighborList.ApplyPolicy] [Neighbors.NeighborList.ApplyPolicy.ApplyPolicyConfig] ImportPolicy = ["pd2"] @@ -59,7 +61,8 @@ define an import policy for neighbor 10.0.255.2 that drops NeighborAddress = "10.0.255.3" PeerAs = 65003 [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true [DefinedSets] [DefinedSets.PrefixSets] diff --git a/docs/sources/route-server.md b/docs/sources/route-server.md index db251aa8..f1801e84 100644 --- a/docs/sources/route-server.md +++ b/docs/sources/route-server.md @@ -32,7 +32,8 @@ $ cat gobgpd.conf [Neighbors.NeighborList.Transport.TransportConfig] PassiveMode = true [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true [[Neighbors.NeighborList]] [Neighbors.NeighborList.NeighborConfig] @@ -43,7 +44,8 @@ $ cat gobgpd.conf [Neighbors.NeighborList.Transport.TransportConfig] PassiveMode = true [Neighbors.NeighborList.RouteServer] - RouteServerClient = true + [Neighbors.NeighborList.RouteServer.RouteServerConfig] + RouteServerClient = true ``` ## Starting GoBGP |