Versions Compared

Key

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

...

Note: If not using ONAP SDNC, then start ODL simulator. See https://github.com/blue-onap/opendaylight for details.


...

Upload the CBA blueprint to CDS: 

...

pm_control.zip

...

This is actually a blueprint for PM use case with some modifications.

...

The results are logged by Drools-PDP to POLICY-CL-MGT topic. Also, it can be verified that the new subscription got actually created in the PNF.


Test result

The testing for PNF use case was successfully completed using the details mentioned above. The new subscription was created in the device based on the ONSET event. 

Code Block
BEFORE
root@policy-nfs:~# 
curl --location --request GET 'http://10.2.0.142:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/pnf300/yang-ext:mount/pnf-subscriptions:subscriptions' --header 'Authorization: Basic YWRtaW46YWRtaW4=' --header 'Cookie: JSESSIONID=node01t62zn06d3cessj6iezwak66h219.node0'

{
    "subscriptions": {
        "configuration": [
            {
                "subscriptionName": "sub0",
                "administrativeState": "UNLOCKED",
                "fileLocation": "c://PM",
                "fileBasedGP": 15
            }
        ]
    }
}

root@policy-nfs:~#


AFTER
root@policy-nfs:~# 
curl --location --request GET 'http://10.2.0.142:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/pnf300/yang-ext:mount/pnf-subscriptions:subscriptions' --header 'Authorization: Basic YWRtaW46YWRtaW4=' --header 'Cookie: JSESSIONID=node01t62zn06d3cessj6iezwak66h219.node0'

{
    "subscriptions": {
        "configuration": [
            {
                "subscriptionName": "sub0",
                "administrativeState": "UNLOCKED",
                "fileLocation": "c://PM",
                "fileBasedGP": 15
            },
            {
                "subscriptionName": "demo-subscription",
                "administrativeState": "UNLOCKED",
                "fileLocation": "test/pmx.xml",
                "fileBasedGP": 15
            }
        ]
    }
}

root@policy-nfs:~#