Update optimization policy type
[policy/api.git] / main / src / test / resources / policies / vCPE.policies.optimization.input.tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 topology_template:
3   policies:
4     -
5         OSDF_CASABLANCA.Affinity_vCPE_1:
6             type: onap.policies.optimization.AffinityPolicy
7             version: 1.0.0
8             metadata:
9                 policy-id: OSDF_CASABLANCA.Affinity_vCPE_1
10                 policy-version: 1
11             properties:
12                 scope: []
13                 services: [vCPE]
14                 resources: [vGMuxInfra, vG]
15                 geography: [US, INTERNATIONAL]
16                 identity: affinity_vCPE
17                 applicableResources: any
18                 affinityProperties:
19                     qualifier: same
20                     category: complex
21     -
22         OSDF_CASABLANCA.Capacity_vG_1:
23             type: onap.policies.optimization.Vim_fit
24             version: 1.0.0
25             metadata:
26                 policy-id: OSDF_CASABLANCA.Capacity_vG_1
27                 policy-version: 1
28             properties:
29                 scope: []
30                 services: [vCPE]
31                 resources: [vG]
32                 geography: [US, INTERNATIONAL]
33                 identity: capacity_vG
34                 applicableResources: any
35                 capacityProperty:
36                    controller: multicloud
37                    request: "{\"vCPU\": 10, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"
38     -
39         OSDF_CASABLANCA.Distance_vG_1:
40             type: onap.policies.optimization.DistancePolicy
41             version: 1.0.0
42             metadata:
43                 policy-id: OSDF_CASABLANCA.Distance_vG_1
44                 policy-version: 1
45             properties:
46                 scope: []
47                 services: [vCPE]
48                 resources: [vG]
49                 geography: [US, INTERNATIONAL]
50                 identity: distance-vG
51                 applicableResources: any
52                 distanceProperties:
53                     locationInfo: customer_loc
54                     distance:
55                         value: 1500
56                         operator: "<"
57                         unit: km
58     -
59         OSDF_CASABLANCA.hpa_policy_vG_1:
60             type: onap.policies.optimization.HpaPolicy
61             version: 1.0.0
62             metadata:
63                 policy-id: OSDF_CASABLANCA.hpa_policy_vG_1
64                 policy-version: 1
65             properties:
66                 scope: []
67                 services: [vCPE]
68                 resources: [vG]
69                 geography: [US, INTERNATIONAL]
70                 identity: hpa-vG
71                 flavorFeatures:
72                     -
73                          id: vg_1
74                          type: vnfc
75                          directives:
76                              -    type: flavor_directives
77                                   attributes:
78                                       -    attribute_name: flavor_label_vm_01
79                                            attribute_value: ""
80                          flavorProperties:
81                              -
82                                   hpa-feature: basicCapabilities
83                                   mandatory: True
84                                   architecture: generic
85                                   directives: []
86                                   hpa-feature-attributes:
87                                       -    hpa-attribute-key: numVirtualCpu
88                                            hpa-attribute-value: 6
89                                            operator: ['>=']
90                                            unit: ""
91                                       -    hpa-attribute-key: virtualMemSize
92                                            hpa-attribute-value: 4
93                                            operator: ['<=']
94                                            unit: ""
95                              -
96                                   hpa-feature: ovsDpdk
97                                   mandatory: False
98                                   architecture: generic
99                                   directives: []
100                                   hpa-feature-attributes:
101                                       -    hpa-attribute-key: dataProcessingAccelerationLibrary
102                                            hpa-attribute-value: ovsDpdk_version
103                                            operator: [=]
104                                            unit: ""
105     -
106         OSDF_CASABLANCA.queryPolicy_vCPE:
107             type: onap.policies.optimization.QueryPolicy
108             version: 1.0.0
109             metadata:
110                 policy-id: OSDF_CASABLANCA.queryPolicy_vCPE
111                 policy-version: 1
112             properties:
113                 scope: []
114                 services: [vCPE]
115                 resources: [vGMuxInfra, vG]
116                 geography: [US, INTERNATIONAL]
117                 identity: vCPE_Query_Policy
118                 queryProperties:
119                     -
120                         attribute: locationId
121                         attribute_location: customerLocation
122                         value: ""
123                     -
124                         attribute: id
125                         attribute_location: "vpnInfo.vpnId"
126                         value: ""
127                     -
128                         attribute: upstreamBW
129                         attribute_location: "vpnInfo.upstreamBW"
130                         value: ""
131                     -
132                         attribute: customerLatitude
133                         attribute_location: customerLatitude
134                         value: 1.1
135                     - 
136                         attribute: customerLongitude
137                         attribute_location: customerLongitude
138                         value: 2.2
139     -
140         OSDF_CASABLANCA.SubscriberPolicy_v1:
141             type: onap.policies.optimization.SubscriberPolicy
142             version: 1.0.0
143             metadata:
144                 policy-id: OSDF_CASABLANCA.SubscriberPolicy_v1
145                 policy-version: 1
146             properties:
147                 scope: []
148                 services: [vCPE]
149                 identity: subscriber_vCPE
150                 properties:
151                     subscriberName: [subscriber_x, subscriber_y]
152                     subscriberRole: ["PVT Homing"]
153                     provStatus: [CAPPED]
154     -
155         OSDF_CASABLANCA.vnfPolicy_vG:
156             type: onap.policies.optimization.VnfPolicy
157             version: 1.0.0
158             metadata:
159                 policy-id: OSDF_CASABLANCA.vnfPolicy_vG
160                 policy-version: 1
161             properties:
162                 scope: []
163                 services: [vCPE]
164                 resources: [vG]
165                 geography: [US, INTERNATIONAL]
166                 identity: vnf_vG
167                 applicableResources: any
168                 vnfProperties:
169                     -
170                         inventoryProvider: aai
171                         serviceType: ""
172                         inventoryType: cloudRegionId
173                         customerId: ""