summaryrefslogtreecommitdiffhomepage
path: root/tools/config
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-05 13:23:12 +0900
committerNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-05 15:04:03 +0900
commitb7d8d53c486eff0370e9908e75a97b7d8816725c (patch)
treec47a6749af89f6116ea2a6675727237002e152f1 /tools/config
parent064c8834e94349f611be6e9555ec355bd1aef351 (diff)
config: change the structure of AsPathSet, CommunitySet and ExtCommunitySet as the PrefixSet
Diffstat (limited to 'tools/config')
-rw-r--r--tools/config/example_toml.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/config/example_toml.go b/tools/config/example_toml.go
index 8a80e540..51ab4ae6 100644
--- a/tools/config/example_toml.go
+++ b/tools/config/example_toml.go
@@ -95,17 +95,23 @@ func policy() config.RoutingPolicy {
cs := config.CommunitySet{
CommunitySetName: "community1",
- CommunityMember: []string{"65100:10"},
+ CommunityList: []config.Community{
+ config.Community{"65100:10"},
+ },
}
ecs := config.ExtCommunitySet{
ExtCommunitySetName: "ecommunity1",
- ExtCommunityMember: []string{"RT:65001:200"},
+ ExtCommunityList: []config.ExtCommunity{
+ config.ExtCommunity{"RT:65001:200"},
+ },
}
as := config.AsPathSet{
- AsPathSetName: "aspath1",
- AsPathSetMember: []string{"^65100"},
+ AsPathSetName: "aspath1",
+ AsPathList: []config.AsPath{
+ config.AsPath{"^65100"},
+ },
}
bds := config.BgpDefinedSets{