1 # Copyright 2017-18 Huawei Technologies Co., Ltd.
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.
15 open_cli_schema_version: 1.0
17 description: Create a VF module
20 product: onap-amsterdam
22 author: ONAP CLI Team onap-discuss@lists.onap.org
26 description: cloud region identifier
29 long_option: cloud-region
32 description: openstack tenant id
35 long_option: tenant-id
37 - name: vfmodule-invariant-id
38 description: vfmodule model invariant id
41 long_option: vfmodule-invariant-id
44 description: model uuid for vfmodule
47 long_option: vfmodule-uuid
50 description: vfmodule model name
53 long_option: vfmodule-name
55 - name: vfmodule-version
56 description: vf module version
59 long_option: vfmodule-version
62 description: vfmodule name
65 long_option: module-name
68 description: unique id for service
71 long_option: service-id
74 description: unique id for related VF
79 - name: vf-model-invariant-id
80 description: vf model invariant id
83 long_option: vf-model-invariant-id
86 description: model uuid for vf
89 long_option: vf-model-uuid
92 description: vf model name
95 long_option: vf-model-name
97 - name: vf-model-version
98 description: vf model version
101 long_option: vf-model-version
103 - name: vf-model-customization-id
104 description: vf model customization id. This can be obtained using SDC portal (Home -> service:xxx -> Composition -> click on VF for customization id).
107 long_option: vf-model-customization-id
109 - name: service-model-invariant-id
110 description: model invariant id
113 long_option: service-model-invariant-id
115 - name: service-model-uuid
116 description: model name version id
119 long_option: service-model-uuid
121 - name: service-model-name
122 description: service model name
125 long_option: service-model-name
127 - name: service-model-version
128 description: service model version
131 long_option: service-model-version
139 description: id for the created vnf
150 uri: /ecomp/mso/infra/serviceInstances/v3/${service-id}/vnfs/${vf-id}/vfModules
152 body: '{"requestDetails": {"modelInfo": {"modelType": "vfModule","modelInvariantId": "${vfmodule-invariant-id}","modelNameVersionId": "${vfmodule-uuid}","modelName": "${vfmodule-name}","modelVersion": "${vfmodule-version}"},"cloudConfiguration": {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"requestInfo": {"instanceName": "${module-name}","source": "VID"},"relatedInstanceList": [{"relatedInstance": {"instanceId": "${service-id}","modelInfo": {"modelType": "service","modelInvariantId": "${service-model-invariant-id}","modelNameVersionId": "${service-model-uuid}","modelName": "${service-model-name}","modelVersion": "${service-model-version}"}}},{"relatedInstance": {"instanceId": "${vf-id}","modelInfo": {"modelType": "vnf","modelInvariantId": "${vf-model-invariant-id}","modelNameVersionId": "${vf-model-uuid}","modelName": "${vf-model-name}","modelVersion": "${vf-model-version}","modelCustomizationName": "${vf-model-customization-id}"}}}],"requestParameters": {"userParams": []}}}'
157 vfmodule-id: $b{$.requestReferences.instanceId}