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
19 product: onap-amsterdam
21 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: product-family
38 description: service type for serivce (e.g. vLB)
41 long_option: product-family
44 description: service instance name
47 long_option: instance-name
49 - name: service-instance-id
50 description: unique id for service instance
53 long_option: service-instance-id
55 - name: vf-model-invariant-id
56 description: vf model invariant id
59 long_option: vf-model-invariant-id
62 description: model uuid for vf
65 long_option: vf-model-uuid
68 description: vf model name
71 long_option: vf-model-name
73 - name: vf-model-version
74 description: vf model version
77 long_option: vf-model-version
79 - name: vf-model-customization-id
80 description: vf model customization id
83 long_option: vf-model-customization-id
85 - name: service-model-invariant-id
86 description: model invariant id
89 long_option: service-model-invariant-id
91 - name: service-model-uuid
92 description: model name version id
95 long_option: service-model-uuid
97 - name: service-model-name
98 description: service model name
101 long_option: service-model-name
103 - name: service-model-version
104 description: service model version
107 long_option: service-model-version
115 description: id for the created vnf
126 uri: /ecomp/mso/infra/serviceInstances/v3/${service-instance-id}/vnfs
128 body: '{"requestDetails": {"modelInfo": {"modelType": "vnf","modelInvariantId": "${vf-model-invariant-id}","modelVersionId": "${vf-model-uuid}","modelName": "${vf-model-name}","modelVersion": "${vf-model-version}","modelCustomizationId": "${vf-model-customization-id}"},"cloudConfiguration": {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"requestInfo": {"instanceName": "${instance-name}","source": "VID","productFamilyId": "${product-family}" },"relatedInstanceList": [{"relatedInstance": {"instanceId": "${service-instance-id}","modelInfo": {"modelType": "service","modelInvariantId": "${service-model-invariant-id}","modelVersionId": "${service-model-uuid}","modelName": "${service-model-name}","modelVersion": "${service-model-version}"}}}],"requestParameters": {}}}'
133 vf-id: $b{$.requestReferences.instanceId}
135 body: '{"requestReferences": {"instanceId": "2a152730-f6eb-4dc6-9b81-7a6f6f263d71","requestId": "6402628f-7f67-4605-9e60-0d8632616d02"}}'