Init ONAP model imports using the model API 92/121692/4
authorandre.schmid <andre.schmid@est.tech>
Fri, 28 May 2021 18:10:30 +0000 (19:10 +0100)
committerChristophe Closset <christophe.closset@intl.att.com>
Mon, 14 Jun 2021 08:19:21 +0000 (08:19 +0000)
commitddf9aaefc753b492fb72144d597a27df8080a4ab
tree8d998a1287b903f6669df8568bdb6d2edda60eac
parentc82aebcde26e34c4151531b4d7a8f6e7689734ba
Init ONAP model imports using the model API

Creates a client for the model endpoint in the catalog init scripts.
Introduces the directory structure to provide the models along its
imports, separated by init/upgrade phase.
Each model structure will be zipped and uploaded to the endpoint,
based on the model directory name.

Change-Id: I0392c1e6d3a29b30567b11016041a8e9cccbc745
Issue-ID: SDC-3615
Signed-off-by: André Schmid <andre.schmid@est.tech>
catalog-be/src/main/resources/import/tosca/models/init/README.md [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/models/init/etsi-SOL001-v2.5.1/imports/etsi_nfv_sol001_nsd_types.yaml [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/models/init/etsi-SOL001-v2.5.1/imports/etsi_nfv_sol001_vnfd_types.yaml [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/models/init/etsi-SOL001-v2.5.1/payload.json [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/models/upgrade/README.md [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py
catalog-be/src/main/resources/scripts/sdcBePy/common/sdcBeProxy.py
catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/model_client.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/model_import_manager.py [new file with mode: 0644]
catalog-be/src/main/resources/scripts/sdcBePy/tosca/upgrade/run.py