diff options
Diffstat (limited to 'test/scenario_test/policy/policy_generator.go')
-rw-r--r-- | test/scenario_test/policy/policy_generator.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 |