From 54092b2703c6df26e40787696a9ac8afbacb5b5e Mon Sep 17 00:00:00 2001 From: Naoto Hanaue Date: Mon, 10 Aug 2015 20:02:29 +0900 Subject: config: rename distributed-policy to in-policy --- test/scenario_test/policy/policy_generator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/scenario_test/policy') diff --git a/test/scenario_test/policy/policy_generator.go b/test/scenario_test/policy/policy_generator.go index af252031..4d94b470 100644 --- a/test/scenario_test/policy/policy_generator.go +++ b/test/scenario_test/policy/policy_generator.go @@ -47,12 +47,12 @@ func bindPolicy(outputDir, peer, target, policyName string, isReplace bool, defa } case "distribute": if isReplace { - ap.DistributePolicy = []string{policyName} + ap.InPolicy = []string{policyName} } else { - ap.DistributePolicy = append(ap.DistributePolicy, policyName) + ap.InPolicy = append(ap.InPolicy, policyName) } if defaultReject { - ap.DefaultDistributePolicy = 1 + ap.DefaultInPolicy = 1 } } newConf.Neighbors.NeighborList[idx] = neighbor -- cgit v1.2.3