summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-04-01 20:26:34 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-04-01 20:26:34 +0900
commit5ae7bd597ebcf41db191a6db943e63e35d8658d1 (patch)
tree9cb3895f01aab77ae84b089b6e4182a10275c8f7
parent405add832c12ce522f19c956f577d49d61704a01 (diff)
policy: remove continue
-rw-r--r--policy/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy/policy.go b/policy/policy.go
index 73ffc74d..bcbc5f82 100644
--- a/policy/policy.go
+++ b/policy/policy.go
@@ -66,7 +66,6 @@ func NewPolicy(name string, pd config.PolicyDefinition, ds config.DefinedSets) *
"prefix": prefix,
"msg": e,
}).Warn("failed to generate a NewPrefix from configration.")
- continue
}
prefixList = append(prefixList, prefix)
}
@@ -162,6 +161,7 @@ func (c *PrefixConditions) evaluatePrefix(path table.Path) bool {
for _, cp := range c.PrefixList {
if IpPrefixCalculate(path, cp) {
+ log.Debug("prefix matched : ",cp)
return true
}
}