--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: pnf-create\r
+description: Create a pnf\r
+\r
+info:\r
+ product: onap-beijing\r
+ service: aai\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+parameters:\r
+ - name: pnf-name\r
+ description: pnf-name\r
+ type: string\r
+ short_option: n\r
+ long_option: name\r
+ is_optional: false\r
+ - name: pnf-id\r
+ description: pnf-id\r
+ type: string\r
+ short_option: i\r
+ long_option: pnf-id\r
+ is_optional: true\r
+ - name: equip-type\r
+ description: equip-type\r
+ type: string\r
+ short_option: t\r
+ long_option: equipType\r
+ is_optional: true\r
+ - name: equip-vendor\r
+ description: equip-vendor\r
+ type: string\r
+ short_option: v\r
+ long_option: equip-vendor\r
+ is_optional: true\r
+ - name: in-maint\r
+ description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true)\r
+ type: bool\r
+ short_option: i\r
+ long_option: in-maint\r
+ is_optional: true\r
+ - name: prov-status\r
+ description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]\r
+ type: string\r
+ short_option: s\r
+ long_option: prov-status\r
+ is_optional: true\r
+ - name: relationship\r
+ description: relationship\r
+ type: json\r
+ short_option: r\r
+ long_option: relationship\r
+ is_optional: true\r
+http:\r
+ service:\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /aai/v11/network/pnfs/pnf/${pnf-name}\r
+ method: PUT\r
+ context:\r
+ remove_empty_node: true\r
+ 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
+ success_codes:\r
+ - 200\r
+ - 201\r
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: pnf-delete\r
+description: Delete pnf from Onap\r
+\r
+info:\r
+ product: onap-beijing\r
+ service: aai\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+\r
+parameters:\r
+ - name: pnf-name\r
+ description: Onap pnf name\r
+ type: string\r
+ short_option: n\r
+ long_option: pnf-name\r
+ is_optional: false\r
+ - name: resource-version\r
+ description: Onap pnf resource version\r
+ type: uuid\r
+ short_option: v\r
+ long_option: resource-version\r
+ is_optional: false\r
+http:\r
+ service:\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /aai/v11/network/pnfs/pnf/${pnf-name}?resource-version=${resource-version}\r
+ method: DELETE\r
+ success_codes:\r
+ - 204\r
+ - 404\r
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: pnf-list\r
+description: Lists the pnfs\r
+\r
+info:\r
+ product: onap-beijing\r
+ service: aai\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+results:\r
+ direction: landscape\r
+ attributes:\r
+ - name: pnf-name\r
+ description: Onap pnf name\r
+ scope: short\r
+ type: string\r
+ - name: pnf-id\r
+ description: Onap pnf id\r
+ scope: short\r
+ type: string\r
+http:\r
+ service:\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /aai/v11/network/pnfs\r
+ method: GET\r
+ success_codes:\r
+ - 200\r
+ result_map:\r
+ pnf-name: $b{pnf.[*].pnf-name}\r
+ pnf-id: $b{pnf.[*].pnf-id}\r
+ resource-version: $b{pnf.[*].resource-version}\r