summaryrefslogtreecommitdiffhomepage
path: root/policy
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-08-19 11:39:46 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-08-19 17:31:29 +0900
commitfb91965dd47045339a78f2231169a9d32be52985 (patch)
tree91e6785c25bb3d1c753352615884d529b077ff5c /policy
parent34c10c943f9b581285316f529a982d69bf9d8fd5 (diff)
scenario_test: add ext-community action test
Diffstat (limited to 'policy')
-rw-r--r--policy/policy.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/policy/policy.go b/policy/policy.go
index 4755860a..a07dbc4a 100644
--- a/policy/policy.go
+++ b/policy/policy.go
@@ -69,7 +69,6 @@ func NewPolicy(pd config.PolicyDefinition, ds config.DefinedSets) *Policy {
}
for _, statement := range stmtList {
- fmt.Println(statement.Conditions.BgpConditions)
conditions := make([]Condition, 0)
// prefix match
@@ -1109,6 +1108,14 @@ func (a *CommunityAction) apply(path *table.Path) *table.Path {
func (a *CommunityAction) extApply(path *table.Path) *table.Path {
path.SetExtCommunities(a.ext, false)
+
+ log.WithFields(log.Fields{
+ "Topic": "Policy",
+ "Action": "extended community",
+ "Values": a.ext,
+ "Method": a.action,
+ }).Debug("extended community action applied")
+
return path
}