aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-elalto/features/vfc
diff options
context:
space:
mode:
authorItohan <itohan.ukponmwan@intel.com>2019-09-12 23:14:58 +0000
committerItohan Ukponmwan <itohan.ukponmwan@intel.com>2019-09-13 00:44:50 +0000
commit972f3d52ba96f1b4a2630fdea963855550feb565 (patch)
tree085113a6d64ca89106c6dbaee12ef290e0409f4a /products/onap-elalto/features/vfc
parent97830fdd6e1b596219f8759716c75776ba10121f (diff)
Added feature commands not added from dublin
- Added commands that were not added from dublin - Removed extra info parameter from cloud-create command Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com> Issue-ID: CLI-224 Change-Id: I559ab38dbc6f23ad7a2d38faae77192c0b98ed44
Diffstat (limited to 'products/onap-elalto/features/vfc')
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml70
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml69
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml53
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml48
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml61
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml51
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml53
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml82
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml63
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml74
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-schema.yaml56
15 files changed, 904 insertions, 0 deletions
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml
new file mode 100644
index 00000000..5d22a202
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml
@@ -0,0 +1,70 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-create-ns
+description: vfc create ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: user-key
+ description: user defined data key eg:"key1"
+ type: string
+ short_option: c
+ long_option: user-key
+ is_optional: false
+ - name: user-value
+ description: user defined data value eg:"value1"
+ type: string
+ short_option: e
+ long_option: user-value
+ is_optional: false
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: id
+ description: id
+ scope: short
+ type: string
+ - name: state
+ description: state
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nsd/v1/ns_descriptors
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "userDefinedData": {"${user-key}": "${user-value}"}
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.id}
+ state: $b{$.nsdOnboardingState}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml
new file mode 100644
index 00000000..81c23b9a
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml
@@ -0,0 +1,69 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-create-vnf
+description: vfc create vnf
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: user-key
+ description: user defined data key eg:"key2"
+ type: string
+ short_option: c
+ long_option: user-key
+ is_optional: false
+ - name: user-value
+ description: user defined data value eg:"value2"
+ type: string
+ short_option: e
+ long_option: user-value
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: id
+ description: id
+ scope: short
+ type: string
+ - name: state
+ description: state
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/vnfpkgm/v1/vnf_packages
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "userDefinedData": {"${user-key}": "${user-value}"}
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.id}
+ state: $b{$.onboardingState}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml
new file mode 100644
index 00000000..08581c98
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml
@@ -0,0 +1,56 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-delete-ns
+description: vfc delete onboard ns from catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-csar-uuid
+ description: ns's uuid of csar file
+ type: string
+ short_option: c
+ long_option: ns-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/nspackages/${ns-csar-uuid}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ job-id: $b{$.jobId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml
new file mode 100644
index 00000000..7feb33a7
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml
@@ -0,0 +1,56 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-delete-vnf
+description: vfc delete onboard vnf to catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: vnf-csar-uuid
+ description: vnf's uuid of csar file
+ type: string
+ short_option: c
+ long_option: vnf-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ job-id: $b{$.jobId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml
new file mode 100644
index 00000000..73a55371
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml
@@ -0,0 +1,53 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-get-ns
+description: vfc get onboard ns status
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: csar-id
+ description: csar-id
+ scope: short
+ type: string
+ - name: package-info
+ description: package-info
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/nspackages
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ csar-id: $b{$.[*].csarId}
+ package-info: $b{$.[*].packageInfo}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml
new file mode 100644
index 00000000..e965bb72
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml
@@ -0,0 +1,48 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-get-vnf
+description: vfc get onboard vnf status
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: csar-id
+ description: csar-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/vnfpackages
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ csar-id: $b{$.[*].csarId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml
new file mode 100644
index 00000000..dce68dae
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml
@@ -0,0 +1,61 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-onboard-ns
+description: vfc onboard ns to catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-csar-uuid
+ description: ns's uuid of csar file
+ type: string
+ short_option: c
+ long_option: ns-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: status-desc
+ description: status-desc
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/nspackages
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{"csarId": "${ns-csar-uuid}"}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ status: $b{$.status}
+ status-desc: $b{$.statusDescription}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml
new file mode 100644
index 00000000..4a8b1008
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml
@@ -0,0 +1,56 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-onboard-vnf
+description: vfc onboard vnf to catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: vnf-csar-uuid
+ description: vnf's uuid of csar file
+ type: string
+ short_option: c
+ long_option: vnf-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/vnfpackages
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{"csarId": "${vnf-csar-uuid}"}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ job-id: $b{$.jobId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml
new file mode 100644
index 00000000..d3177e0c
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml
@@ -0,0 +1,51 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-upload-ns-package
+description: Upload NS package into VFC
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: ns-id
+ description: NS id created in VFC
+ type: string
+ short_option: c
+ long_option: ns-id
+ is_optional: false
+ - name: ns-package
+ description: NS package
+ type: binary
+ short_option: e
+ long_option: ns-package
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nsd/v1/ns_descriptors/${ns-id}/nsd_content
+ method: PUT
+ body:
+ multipart:
+ - name: file
+ content: ${ns-package}
+ type: file
+ success_codes:
+ - 201
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml
new file mode 100644
index 00000000..04859532
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml
@@ -0,0 +1,53 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-upload-vnf-package
+description: Upload VNF package into VFC
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vnf-id
+ description: VNF id created in VFC
+ type: string
+ short_option: c
+ long_option: vnf-id
+ is_optional: false
+ - name: vnf-package
+ description: VNF package
+ type: binary
+ short_option: e
+ long_option: vnf-package
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/vnfpkgm/v1/vnf_packages/${vnf-id}/package_content
+ method: PUT
+ body:
+ body:
+ multipart:
+ - name: file
+ content: ${vnf-package}
+ type: file
+ multipart_entity_name: file
+ success_codes:
+ - 201
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
new file mode 100644
index 00000000..4402b113
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
@@ -0,0 +1,82 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-create
+description: vfc nslcm create ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-csar-uuid
+ description: ns's uuid of csar file
+ type: string
+ short_option: c
+ long_option: ns-csar-uuid
+ is_optional: false
+ - name: ns-csar-name
+ description: ns's name of csar
+ type: string
+ short_option: n
+ long_option: ns-csar-name
+ is_optional: false
+ - name: customer-name
+ description: customer name
+ type: string
+ short_option: q
+ long_option: customer-name
+ is_optional: false
+ - name: service-type
+ description: service type
+ type: string
+ short_option: S
+ long_option: service-type
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: ns-instance-id
+ description: ns-instance-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "context": {
+ "globalCustomerId": "${customer-name}",
+ "serviceType": "${service-type}"
+ },
+ "csarId": "${ns-csar-uuid}",
+ "nsName": "${ns-csar-name}",
+ "description": "description"
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ ns-instance-id: $b{$.nsInstanceId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml
new file mode 100644
index 00000000..4856637a
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml
@@ -0,0 +1,56 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-delete
+description: vfc nslcm delete ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: c
+ long_option: ns-instance-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: status
+ description: status
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 204
+ result_map:
+ status: ${success_codes}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml
new file mode 100644
index 00000000..dc464944
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml
@@ -0,0 +1,63 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-get
+description: vfc nsclm get the status of creating ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: ns-instance-id
+ description: ns-instance-id
+ scope: short
+ type: string
+ - name: ns-name
+ description: ns-name
+ scope: short
+ type: string
+ - name: description
+ description: description
+ scope: short
+ type: string
+ - name: nsd-id
+ description: nsd-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ ns-instance-id: $b{$.nsInstanceId}
+ ns-name: $b{$.nsName}
+ description: $b{$.description}
+ nsd-id: $b{$.nsdId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml
new file mode 100644
index 00000000..8741eff4
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml
@@ -0,0 +1,74 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-instantiate
+description: vfc nslcm instantiate ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: i
+ long_option: ns-instance-id
+ is_optional: false
+ - name: location
+ description: localtion(vimid)
+ type: string
+ short_option: c
+ long_option: location
+ is_optional: false
+ - name: sdn-controller-id
+ description: sdn controller id
+ type: string
+ short_option: n
+ long_option: sdn-controller-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}/instantiate
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "additionalParamForNs":
+ {
+ "sdncontroller": "${sdn-controller-id}",
+ "location": "${location}"
+ }
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ job-id: $b{$.jobId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-schema.yaml
new file mode 100644
index 00000000..24b0ba61
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-schema.yaml
@@ -0,0 +1,56 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-terminate
+description: vfc nslcm terminate ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: i
+ long_option: ns-instance-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}/terminate
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ job-id: $b{$.jobId}