1 # Copyright 2018 ZTE Corporation.
3 # Licensed under the Apache License, Version 2.0 (the 'License');
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an 'AS IS' BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
20 'operation': 'INSTANTIATE',
21 'isAutomaticInvocation': True,
22 'instantiationLevelId': '5',
28 'resourceTemplateId': '3',
30 'vimConnectionId': '4',
31 'resourceProviderId': '5',
33 'vimLevelResourceType': '7'
37 'placementConstraints': [
39 'affinityOrAntiAffinity': 'AFFINITY',
45 'vimConnectionId': '2',
46 'resourceProviderId': '3'
53 'sameResourceGroup': True,
58 'vimConnectionId': '2',
59 'resourceProviderId': '3'
64 'additionalParams': {},
75 VNF_LCM_OP_OCC_NOTIFICATION_DATA = {
77 'notificationType': 'VnfLcmOperationOccurrenceNotification',
78 'subscriptionId': 'string',
79 'timeStamp': 'string',
80 'notificationStatus': 'START',
81 'operationState': 'STARTING',
82 'vnfInstanceId': 'string',
83 'operation': 'INSTANTIATE',
84 'isAutomaticInvocation': True,
85 'vnfLcmOpOccId': 'string',
89 'changeType': 'ADDED',
91 'vimConnectionId': 'string',
92 'resourceProviderId': 'string',
93 'resourceId': 'string',
94 'vimLevelResourceType': 'string'
97 'affectedVnfcCpIds': [],
98 'addedStorageResourceIds': [],
99 'removedStorageResourceIds': [],
101 'affectedVirtualLinks': [{
103 'virtualLinkDescId': 'string',
104 'changeType': 'ADDED',
106 'vimConnectionId': 'string',
107 'resourceProviderId': 'string',
108 'resourceId': 'string',
109 'vimLevelResourceType': 'network',
112 'affectedVirtualStorages': [{
114 'virtualStorageDescId': 'string',
115 'changeType': 'ADDED',
117 'vimConnectionId': 'string',
118 'resourceProviderId': 'string',
119 'resourceId': 'string',
120 'vimLevelResourceType': 'network',
125 'vnfInstanceName': 'string',
126 'vnfInstanceDescription': 'string',
127 'vnfConfigurableProperties': {
128 'additionalProp1': 'string',
129 'additionalProp2': 'string',
130 'additionalProp3': 'string'
133 'additionalProp1': 'string',
134 'additionalProp2': 'string',
135 'additionalProp3': 'string'
138 'additionalProp1': 'string',
139 'additionalProp2': 'string',
140 'additionalProp3': 'string'
142 'vimConnectionInfo': [{
147 'additionalProp1': 'string',
148 'additionalProp2': 'string',
149 'additionalProp3': 'string'
152 'additionalProp1': 'string',
153 'additionalProp2': 'string',
154 'additionalProp3': 'string'
157 'additionalProp1': 'string',
158 'additionalProp2': 'string',
159 'additionalProp3': 'string'
162 'vnfPkgId': 'string',
164 'vnfProvider': 'string',
165 'vnfProductName': 'string',
166 'vnfSoftwareVersion': 'string',
167 'vnfdVersion': 'string'
169 'changedExtConnectivity': [{
172 'vimConnectionId': 'string',
173 'resourceProviderId': 'string',
174 'resourceId': 'string',
175 'vimLevelResourceType': 'string'
180 'vimConnectionId': 'string',
181 'resourceProviderId': 'string',
182 'resourceId': 'string',
183 'vimLevelResourceType': 'string'
185 'cpInstanceId': 'string'
196 'vnfInstance': {'href': 'string'},
197 'subscription': {'href': 'string'},
198 'vnfLcmOpOcc': {'href': 'string'}
202 VNF_IDENTIFIER_CREATION_NOTIFICATION_DATA = {
203 'id': 'Identifier of this notification',
204 'notificationType': 'VnfIdentifierCreationNotification',
205 'subscriptionId': 'Identifier of the subscription',
206 'timeStamp': '2018-9-12T00:00:00',
207 'vnfInstanceId': '2',
209 'vnfInstance': {'href': 'URI of the referenced resource'},
210 'subscription': {'href': 'URI of the referenced resource'},
211 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'}
215 VNF_IDENTIFIER_DELETION_NOTIFICATION_DATA = {
216 'id': 'Identifier of this notification',
217 'notificationType': 'VnfIdentifierDeletionNotification',
218 'subscriptionId': 'Identifier of the subscription',
219 'timeStamp': '2018-9-12T00:00:00',
220 'vnfInstanceId': '2',
222 'vnfInstance': {'href': 'URI of the referenced resource'},
223 'subscription': {'href': 'URI of the referenced resource'},
224 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'}