Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 config-assign and config-deploy using CDS REST API interfaces.

...

              Day-0 : config-assign parameters                          

                             pnf-ipv4-address, netconf-server-port, netconf-username, netconf-password, stream-count


curl -v --location --request POST 'http://localhost:304998000/api/v1/execution-service/process' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Accept: application/json;charset=UTF-8,application/json' \
--header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \
--header 'Host: cds-blueprints-processor-http:8080' \
--header 'Content-Type: text/plainjson' \
--data-raw '
{
"actionIdentifiers": {
"mode": "sync",
"blueprintName": "pnf-netconf_config",
"blueprintVersion": "1.0.0",
"actionName": "config-assingassign"
},
"payload": {
"config-assign-request": {
"template-prefix": [
"pnf"
],
"resolution-key": "day-0",
"config-assign-properties": {
"pnf-id": "abcd",
"pnf-ipv4-address": "192.168.122.20",
"netconf-password": "admin",
"netconf-username": "admin",
"netconf-server-port": "netconf-server-port",
"stream-count": "5"
}
}
},
"commonHeader": {
"subRequestId": "143748f9-3cd5-4910-81c9-a4601ff2ea58",
"requestId": "e5eb1f1e-3386-435d-b290-d49d8af8db4c",
"originatorId": "SDNC_DG"
}
}
'

              Day-1 : config-assign parameters

                            pnf-ipv4-address, netconf-server-port, netconf-username, netconf-password, stream-count

...