1 # Copyright 2018 Huawei Technologies Co., Ltd.
\r
3 # Licensed under the Apache License, Version 2.0 (the "License");
\r
4 # you may not use this file except in compliance with the License.
\r
5 # You may obtain a copy of the License at
\r
7 # http://www.apache.org/licenses/LICENSE-2.0
\r
9 # Unless required by applicable law or agreed to in writing, software
\r
10 # distributed under the License is distributed on an "AS IS" BASIS,
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 # See the License for the specific language governing permissions and
\r
13 # limitations under the License.
\r
15 open_cli_schema_version: 1.0
\r
17 description: Create a pnf
\r
20 product: onap-beijing
\r
22 author: ONAP CLI Team onap-discuss@lists.onap.org
\r
26 description: pnf-name
\r
38 description: equip-type
\r
41 long_option: equipType
\r
43 - name: equip-vendor
\r
44 description: equip-vendor
\r
47 long_option: equip-vendor
\r
50 description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true)
\r
53 long_option: in-maint
\r
56 description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]
\r
59 long_option: prov-status
\r
61 - name: relationship
\r
62 description: relationship
\r
65 long_option: relationship
\r
72 uri: /aai/v11/network/pnfs/pnf/${pnf-name}
\r
75 remove_empty_node: true
\r
76 body: '{"pnf-name": "${pnf-name}" ,"pnf-id": "${pnf-id}","equip-type": "${equip-type}","equip-vendor": "${equip-vendor}","in-maint": ${in-maint},"prov-status": "${prov-status}","relationship-list": ["${relationship}"]}'
\r