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