CPS:
Follow the steps below to setup the CPS environment:
- Clone the repo from : https://gerrit.onap.org/r/admin/repos/cps
- Build the project – When building the project run from the root cps folder : mvn clean install
- From docker-compose folder, run the following after building the images locally : VERSION=latest DB_USERNAME=cps DB_PASSWORD=cps docker-compose up -d
- Create the dataspace, schemaset, anchor and datanode using CPS APIs. This file has the sample APIs for CPS and the CPS-TBDMT template creation for the CoverageArea TA list mapping : CPS APIs.txt
Kindly check this page for more details on CPS APIs : R9 TBDMT Enhancements
CPS-TBDMT:
Follow the steps below to setup the CPS-TBDMT environment:
- Clone the repo from : cps/cps-tbdmt · Gerrit Code Review (onap.org)
Build the project – mvn clean install
Change the docker image name to avoid docker login issues : docker tag nexus3.onap.org:10003/onap/cps-tbdmt:latest cps-tbdmt:latest
From the docker-compose folder, edit the application.yml file
cpsCoreConfiguration url – change to VM's IP and the created dataspace's name
schemaToAnchor mapping – provide the created schemaset and anchor name
- From the docker-compose folder, run the following to bring up the containers : docker-compose up -d
Configure CPS in OOF deployment <WIP>
In oof/components/oof-has/values.yaml, provide the cps ip as the value for serviceName as below,
In oof/components/oof-has/resources/config/conductor.conf, change the server_url and get_ta_list_url as mentioned below,
After the configuration make OOF component and deploy it.
Policy changes for CoverageArea TA List Mapping: <WIP>
Add the below attribute in the NSI policies
"coverage_area_ta_list": {"derive_from":{"method":"get_tracking_area","args": {"coverage_area": {"get_param": "coverage_area_ta_list"}}}}