diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-07-08 21:40:41 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-11 21:45:21 +0900 |
commit | f10d7c3b4594dd2b18145723bb7ead4cdd3e59e3 (patch) | |
tree | 4c8638900d1d98116310be4371760b3219e5095e | |
parent | 17cf262d1c94abee1066c4282e9bb0bac2ea53b2 (diff) |
tool: update example_toml.go
-rw-r--r-- | tools/config/example_toml.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/config/example_toml.go b/tools/config/example_toml.go index a6afe9d3..2be6b8e2 100644 --- a/tools/config/example_toml.go +++ b/tools/config/example_toml.go @@ -77,6 +77,11 @@ func policy() config.RoutingPolicy { CommunityMembers: []string{"65100:10"}, } + ecs := config.ExtCommunitySet{ + ExtCommunitySetName: "ecommunity1", + ExtCommunityMembers: []string{"RT:65001:200"}, + } + as := config.AsPathSet{ AsPathSetName: "aspath1", AsPathSetMembers: []string{"^65100"}, @@ -84,6 +89,7 @@ func policy() config.RoutingPolicy { bds := config.BgpDefinedSets{ CommunitySetList: []config.CommunitySet{cs}, + ExtCommunitySetList: []config.ExtCommunitySet{ecs}, AsPathSetList: []config.AsPathSet{as}, } @@ -106,6 +112,7 @@ func policy() config.RoutingPolicy { MatchSetOptions: config.MATCH_SET_OPTIONS_TYPE_ALL, BgpConditions: config.BgpConditions{ MatchCommunitySet: "community1", + MatchExtCommunitySet: "ecommunity1", MatchAsPathSet: "aspath1", AsPathLength: al, }, |