1 # Copyright 2019 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
16 name: tosca-vnf-provision
18 Provision TOSCA based VNF using ONAP.
19 More details: https://wiki.lfnetworking.org/display/LN/TOSCA+VNF+Validation+Planning
20 NOTE: Before using this command, configure the $OPEN_CLI_HOME/conf/ovp-tosca-vnf-provision.json
24 service: vnf-validation
25 author: ONAP VTP Team onap-discuss@lists.onap.org
29 description: Configuration file path
32 long_option: config-json
33 default_value: $s{env:OPEN_CLI_HOME}/conf/ovp-tosca-vnf-provision.json
36 description: Path to the ONAP vendor service product (VSP) for the VNF to provision
42 description: Path to the TOSCA CSAR for the VNF to provision
48 description: Path to the TOSCA CSAR for the NS service to provision
55 description: VNFM driver to use
58 long_option: vnfm-driver
65 description: ONAP VNF instance id
69 description: Onap VNF status
73 description: Onap NS service instance id
77 description: Onap NS status
81 description: VNFM driver used
86 - python $s{env:OPEN_CLI_HOME}/script/ovp-tosca-vnf-provision.py --result-json $s{tmp:result.json} --config-json ${config-json} --vsp ${vsp} --vnf-csar ${vnf-csar} --ns-csar ${ns-csar} --vnfm-driver ${vnfm-driver}
90 output: $s{tmp:result.json}
93 vnf-status: $o{$.vnf_status}
95 ns-status: $o{$.ns_status}
96 vnfm-driver: ${vnfm-driver}