summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2016-12-07 10:32:34 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-12-10 07:51:20 -0800
commit2c66865d5ee574d868284dd6a8e104ebe2aab283 (patch)
tree49ac4f5fa526164a0a0b5925e969614997410a2e /api/grpc_server.go
parentcbf72956de08a8dd2bedac077a2f2d78837f44e3 (diff)
policy: ext-community and large-community can be included in conditions
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r--api/grpc_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index 5c83ca8c..395f3bc2 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -1239,13 +1239,13 @@ func toStatementApi(s *config.Statement) *Statement {
}
}
if s.Conditions.BgpConditions.MatchExtCommunitySet.ExtCommunitySet != "" {
- cs.CommunitySet = &MatchSet{
+ cs.ExtCommunitySet = &MatchSet{
Type: MatchType(s.Conditions.BgpConditions.MatchExtCommunitySet.MatchSetOptions.ToInt()),
Name: s.Conditions.BgpConditions.MatchExtCommunitySet.ExtCommunitySet,
}
}
if s.Conditions.BgpConditions.MatchLargeCommunitySet.LargeCommunitySet != "" {
- cs.CommunitySet = &MatchSet{
+ cs.LargeCommunitySet = &MatchSet{
Type: MatchType(s.Conditions.BgpConditions.MatchLargeCommunitySet.MatchSetOptions.ToInt()),
Name: s.Conditions.BgpConditions.MatchLargeCommunitySet.LargeCommunitySet,
}