...
- Connect to netopeer docker container and execute the following commands to initialise the pg.yang model. You can leave this terminal up and running.
In the below steps we just initialise the Yang model with one pg-stream record. We will be using CDS to perform the day-1 configuration and day-2 configuration changes.
cd /opt/dev/Netopeer2/cli/build > edit-config --target running --config=/dev-models/sample-plugin-data.xml > |
---|
- You can use the attached PNF-DEMO-ENRICHED-CBA.zip file to enrich, save, publish and deploy from CDS UI. 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
kubectl get pods -n onap NAME READY STATUS RESTARTS AGE |
---|
CDS Boot strap
The below script will load the CDS model artifacts into CDS DB. You should get HTTP status 200 for the below command.
cd PNF_DEMO/Scripts/ bash -x ./bootstrap-cds.sh |
---|
Get the default model "artifactName": "vFW-CDS" loaded by bootstrap
bash -x ./get-cds-blueprint-models.sh |
---|
Load PNF CDS blueprint model data dictionary
cd PNF_DEMO/Scripts bash -x ./dd-microk8s.sh ./dd.json |
---|
Check CDS database for PNF data dictionaries
You should see 6 rows as shown below
./connect-cds-mariadb.sh
+---------------------+-----------+ quit exit |
---|
Create PNF CDS Blueprint archive pnf-demo.zip
cd PNF_DEMO/
zip -r pnf-demo.zip * # You should see the below ZIP file |
---|
Enrich PNF Bluerprint archive
cd PNF_DEMO/Scripts
|
---|
Verify Enriched Blue pring archive /tmp/CBA/ENRICHED-CBA.zip
cd /tmp/CBA/ unzip ENRICHED-CBA.zip tree |
---|
Deploy/Save the Blueprint into CDS database
cd PNF_DEMO/Scripts # You should see the new model "artifactName": "pnf_netconf" |
---|
Config-Assign
# The assumption is that we are using the same host to run PNF NETCONF simulator as well as CDS
# bash -x ./create-config-assing-data.sh day-1 LOCAL_HOST_IP_ADDRESS 5
- Create PNF configuration for day-1 (stream-count = 5)
You can verify the CURL command JSON pay load file /tmp/day-n-pnf-config.json
cd PNF_DEMO/Scripts
|
---|
Verify the day-1 NETCONF RPC payload in CDS DB you should see the NETCONF RPC with 5 streams (fw_udp_5)
./connect-cds-mariadb.sh MariaDB [sdnctl]> select * from TEMPLATE_RESOLUTION where resolution_key='day-1' AND artifact_name='netconfrpc'; |
---|
- Create PNF configuration for day-2 (stream-count = 10)
Config-Deploy
- config-deploy request will send the Day-0 or Day-1 resolution key as part of the REST call.
...