...
- put the VL information under a folder with its import properties json. Refer to the files below.
View file name sotnConnectivity.zip height 250 View file name sdwanConnectivity.zip height 250 - Copy the unziped folder to SDC BE Container. Script example if the ONAP installed by OOM:
kubectl -n onap cp sotnConnectivity dev-sdc-sdc-be-5c97bbdf68-z2hj5:/tmp/jetty-0.0.0.0-8080-catalog-be-1.3.2.war-_catalog-be-1.3.2-any-1083601271032916979.dir/webapp/WEB-INF/classes/import/tosca/normative-types/ -c sdc-be
kubectl -n onap cp sdwanConnectivity dev-sdc-sdc-be-5c97bbdf68-z2hj5:/tmp/jetty-0.0.0.0-8080-catalog-be-1.3.2.war-_catalog-be-1.3.2-any-1083601271032916979.dir/webapp/WEB-INF/classes/import/tosca/normative-types/ -c sdc-be - run SDC BE scripts to import the VLs(note: the sdc be of Casablanca release have no python by default , you need to install it).
cd /tmp/jetty-0.0.0.0-8080-catalog-be-1.3.2.war-_catalog-be-1.3.2-any-1083601271032916979.dir/webapp/WEB-INF/classes/scripts/import/tosca
vi importNormativeTypes.py to add our VLs.(normativeTypes = [ "root", "compute","sotnConnectivity","sdwanConnectivity", "softwareComponent", "webServer", ,,,,)
python importNormativeTypes.py
Import VFCs
import sppartner, device, site , sitewanport, sotnvpnattachment, sdwanvpnattachment as VFC.
We do this by SDC portal.