summaryrefslogtreecommitdiffhomepage
path: root/policy/policy.go
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-07-13 17:12:15 +0900
committerNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-07-15 19:12:55 +0900
commitb56ddd477bccd5ae0bd830b95de977ba516f066b (patch)
tree56d8390df6b37d28a0022d3ba7ba3d5fb5e9e182 /policy/policy.go
parentb73c4df33906a09acce12a4159f96626ae045797 (diff)
scenaio_test: add extended community test
Diffstat (limited to 'policy/policy.go')
-rw-r--r--policy/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy/policy.go b/policy/policy.go
index 788f4a7a..5f97e12e 100644
--- a/policy/policy.go
+++ b/policy/policy.go
@@ -719,6 +719,7 @@ func NewExtCommunityCondition(extComSetName string, defExtComSetList []config.Ex
matchAll := false
e := &ExtCommunityElement{
isRegExp: false,
+ comStr: c,
}
matchType, val := getECommunitySubType(c)
if !matchType {
@@ -863,7 +864,6 @@ func (c *ExtCommunityCondition) evaluate(path *table.Path) bool {
matched := false
matchStr := ""
-
for _, member := range c.ExtCommunityList {
for _, eCommunity := range eCommunities {
ec := eCommunity.(bgp.ExtendedCommunityInterface)