update link to upper-constraints.txt
[optf/osdf.git] / test / policy-local-files / Placement_Optimization_1.json
1 {
2   "OSDF_FRANKFURT.Placement_optimization_1": {
3     "type": "onap.policies.optimization.resource.OptimizationPolicy",
4     "version": "1.0.0",
5     "type_version": "1.0.0",
6     "metadata": {
7       "policy-id": "OSDF_FRANKFURT.Placement_optimization_1",
8       "policy-version": 1
9     },
10     "properties": {
11       "scope": [
12         "OSDF_FRANKFURT"
13       ],
14       "services": [
15         "vCPE"
16       ],
17       "resources": [
18         "vG",
19         "vGMuxInfra"
20       ],
21       "geography": [
22         "US",
23         "INTERNATIONAL"
24       ],
25       "identity": "optimization",
26       "objective": "minimize",
27       "objectiveParameter": {
28             "parameterAttributes": [
29                 {
30                     "resources": ["vGMuxInfra"],
31                     "customerLocationInfo": "customer_loc",
32                     "parameter": "distance",
33                     "weight": "1",
34                     "operator": "product"
35                 },
36                 {
37                     "resources": ["vG"],
38                     "customerLocationInfo": "customer_loc",
39                     "parameter": "distance",
40                     "weight": "1",
41                     "operator": "product"
42                 },
43                 {
44                     "resources": ["vG"],
45                     "parameter": "hpa_score",
46                     "weight": "200",
47                     "operator": "product"
48                 },
49                 {
50                     "resources": ["vFW"],
51                     "customerLocationInfo": "customer_loc",
52                     "parameter": "distance",
53                     "weight": "100",
54                     "operator": "product"
55                 },
56                 {
57                     "resources": ["vFW"],
58                     "parameter": "hpa_score",
59                     "weight": "200",
60                     "operator": "product"
61                 }
62             ],
63             "operator": "sum"
64         }
65     }
66   }
67 }