summaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
Diffstat (limited to 'products')
-rw-r--r--products/onap-dublin/features/integration/src/main/resources/open-cli-schema/vnf-tosca-provision-dublin-schema.yaml11
-rw-r--r--products/onap-dublin/features/integration/src/main/resources/script/vnf-tosca-provision.py6
-rw-r--r--products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml2
3 files changed, 12 insertions, 7 deletions
diff --git a/products/onap-dublin/features/integration/src/main/resources/open-cli-schema/vnf-tosca-provision-dublin-schema.yaml b/products/onap-dublin/features/integration/src/main/resources/open-cli-schema/vnf-tosca-provision-dublin-schema.yaml
index ecc629c1..e7c509a6 100644
--- a/products/onap-dublin/features/integration/src/main/resources/open-cli-schema/vnf-tosca-provision-dublin-schema.yaml
+++ b/products/onap-dublin/features/integration/src/main/resources/open-cli-schema/vnf-tosca-provision-dublin-schema.yaml
@@ -17,11 +17,12 @@ name: vnf-tosca-provision
description: |
ONAP TOSCA VNF validation using ONAP CLI and Open Command Platform (OCOMP)
- This command runs in 4 mode:
+ This command runs in 5 mode:
1. setup: Create requires Vendor, Service Subscription and VNF cloud in ONAP
2. standup: From the given VSP csar, VNF csar and NS csar, it creates VF Model, NS Model and NS service
3. cleanup: Remove those entries provided in onap-objects parameter
- 4. validate: Run setup -> standup -> cleanup
+ 4. provision:Run setup -> standup
+ 5. validate: Run setup -> standup -> cleanup
On every execution, it reports the ONAP managed object's ids in result onap-objects attribute. so
if requires, these attribute value could be passed in input parameter onap-objects on subsequent
@@ -85,7 +86,7 @@ description: |
e. Verify these details once by typing 'set'
- e. Exit from the interactive console by typing 'exit'
+ f. Exit from the interactive console by typing 'exit'
2. Setup SDC consumer
oclip --product onap-dublin --profile onap-dublin sdc-consumer-create --consumer-name ocomp
@@ -138,12 +139,12 @@ parameters:
is_optional: true
default_value: {}
- name: mode
- description: setup or standup or cleanup
+ description: setup or standup or cleanup or provision or validate
type: string
short_option: Y
long_option: mode
is_optional: true
- default_value: validate
+ default_value: checkup
- name: vnf-name
description: VNF Name
type: string
diff --git a/products/onap-dublin/features/integration/src/main/resources/script/vnf-tosca-provision.py b/products/onap-dublin/features/integration/src/main/resources/script/vnf-tosca-provision.py
index 6dc7310e..40f00a77 100644
--- a/products/onap-dublin/features/integration/src/main/resources/script/vnf-tosca-provision.py
+++ b/products/onap-dublin/features/integration/src/main/resources/script/vnf-tosca-provision.py
@@ -619,8 +619,9 @@ if __name__ == '__main__':
'\ncleanup - Remove the ONAP objects which are either created during \nsetup and standup phase or provided by the user in result-json file ' \
'\nCAUTION: If required, do not provide the existing ONAP object ids \nin result-json while doing the cleanup, to avoid them getting deleted.'\
'\ncheckup - Check the deployment weather OCOMP is working properly or not' \
+ '\nprovision - Run thru setup -> standup' \
'\nvalidate - run thru setup -> standup -> cleanup modes for end to end vnf validation',
- choices=('setup', 'standup', 'cleanup', 'checkup', 'validate'))
+ choices=('setup', 'standup', 'cleanup', 'checkup', 'provision', 'validate'))
args = parser.parse_args()
print (args)
@@ -713,6 +714,9 @@ if __name__ == '__main__':
elif mode == 'checkup':
onap.ocomp.product = 'open-cli'
onap.ocomp.run(command='schema-list', params={'product': 'open-cli'})
+ elif mode == 'provision':
+ _setup()
+ _standup()
elif mode == 'validate':
_setup()
_standup()
diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
index 9b59a71b..29fceccd 100644
--- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
+++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
@@ -13,7 +13,7 @@
# limitations under the License.
open_cli_schema_version: 1.0
-name: vfc-nslcm-create1
+name: vfc-nslcm-create
description: vfc nslcm create ns
info: