...
where modifynssi.json is,
|
To push the policy:
curl --silent -k --user 'policyadmin:zb!XztG34' -X POST "https://policy-pap:6969/policy/pap/v1/pdps/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @push_modifynssi.json
where push_modifynssi.json is,
|
Deployment Prerequisite/dependencies
...
- Download the configDb source files from configdb-3.0.0.zip
- cd configdb (after extracting the files)
- Setup and run maridb container
- sudo docker run -p 3306:3306 -v $PWD/SDNC_ConfigDB_SchemaV4.sql:/docker-entrypoint-initdb.d/SDNC_ConfigDB_SchemaV4.sql --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb
- Navigate to project directory
- cd configdb/Config-DB-API-App
- Build the application
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ mvn clean install
- Run the application
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ mvn spring-boot:run &
- Run this script to load sample data data config_requests_script_intelligent_slicing.shSample data to insert slice-profile configdb-data.txt
CPS and CPS-TBDMT:
CPS:
- git clone "https://gerrit.onap.org/r/cps"
- cd cps/
- mvn clean install
- cd docker-compose/
- docker-compose up
...
Creating dataspace:
curl --location --user cpsuser:cpsr0cks! -H "Accept: application/json" -H "Content-Type: application/json" \
--request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces?dataspace-name=E2EDemo
Creating schema set:
ran-network.zip
curl --location --user cpsuser:cpsr0cks! \
--request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces/E2EDemo/schema-sets --form 'file=@"ran-network.zip"' --form 'schema-set-name="ran-network"'
...
Uploading cps sample data:
payload-ran-network.json
curl --location --user cpsuser:cpsr0cks! --request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces/E2EDemo/anchors/11/nodes \
--header 'Content-Type: application/json' \
-d @payload-ran-network.json
ran-inventory-sample-data.json
curl --location --user cpsuser:cpsr0cks! --request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces/E2EDemo/anchors/ran-inventory-anchor/nodes \
--header 'Content-Type: application/json' \
-d @ran-inventory-sample-data.json ran-inventory-sample-data.json
Uploading tbdmt-templates:
...
- git clone "https://gerrit.onap.org/r/dcaegen2/services"(use patchset ml-prediction-ms if code not merged)
- cd services/components/ml-prediction-ms
- Update Ransim, Dmaap and ConfigDB IPAddress/Port details in ml-prediction-ms.config
- Build docker image using: 'docker build -t ml-prediction-ms:latest .'
- Run the ml-prediction-ms container.
- docker run -d --name ml-prediction-ms -p "5000:5000" ml-prediction-ms:latest
- To view the logs:
- docker exec -ti ml-prediction-ms bash
- tail -f IntelligentSliceMl.log
...