The objective of this page is to give you some basics about setting up ONAP PNF simulator and how to create a simple CDS blueprint model to perform DAY-N config-assign and config-deploy using CDS REST API interfaces.
- Setting up PNF simulator integration project
...
- Start PNF simulator docker containers. You can consider changing the netopeer image verion to image: sysrepo/sysrepo-netopeer2:iop in docker-compose.yml file If you find any issues with the default image.
cd $HOME
git clone https://github.com/onap/integration.git
...
sysrepoctl -i -g /etc/sysrepo/yang/pg.yang
- Connect to netopeer docker container and execute the following commands to initialise the pg.yang model. You can leave this terminal up and running.
cd /opt/dev/Netopeer2/cli/build > quitexit |
---|
- Now create a simple CDS blue print to update the number of streams using NETCONF.
- You can use the attached demoPNF-DEMO-pnfENRICHED-bpCBA.zip.zip file file to enrich, save, publish and deploy from CDS UI.
- You can extract the above BP archive to find the Scripts/dd.json & Scripts/dd.sh. You execute the below command to populate the data dictionary (CDS_UI_PORT = 3000)
bash -x ./dd.sh CDS_UI_PORT ./dd.json
- CDS UI you should the all operation successful as shown below
Config-Assign
- The assumption is that all the below parameters for config-assign will sent as part of config-assing REST call
Day-0 : config-assign parameters
pnf-ipv4-address, netconf-server-port, netconf-username, netconf-password, stream-count
...
Day-1 : config-assign parameters
pnf-ipv4-address, netconf-server-port, netconf-username, netconf-password, stream-count
...
On success you should get HTTP status 200 for the above CURL commands. The below is the reference output
...
- Otherwise you can clone the CDS source code
git clone "https://gerrit.onap.org/r/ccsdk/cds" |
---|
- Setup CDS k8s environment by following Running CDS on Microk8s wiki page
- After Verify if you can see CDS k8s PODs
Config-Deploy
- config-deploy request will send the Day-0 or Day-1 resolution key as part of the REST call.
...