summaryrefslogtreecommitdiffhomepage
path: root/policy/policy.go
diff options
context:
space:
mode:
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)