This page describes how to get the New-Delhi release version of A1-Policy functions up and running using Docker.
...
Component | Release image and version tag | Staging images and version tag | Manual snapshot (only available if manually built) and version tag |
---|---|---|---|
A1 Policy Management Service | nexus3.onap.org:10002/onap/ccsdk-oran-a1policymanagementservice:1.7.1 | nexus3.onap.org:10004/onap/ccsdk-oran-a1policymanagementservice:1.7.2-STAGING-latest | onap/ccsdk-oran-a1policymanagementservice:1.7.2-SNAPSHOT |
SDNC image | nexus3.onap.org:10002/onap/sdnc-image:2.6.1 | nexus3.onap.org:10004/onap/sdnc-image:2.8.0-STAGING-latest | onap/sdnc-image:2.8.0-SNAPSHOT |
...
Sample A1-Policy Instance data that corresponds to A1-Policy Type “
STD_QOS2_0.1.0
” is shown below. This can be used to create a new A1-Policy instance on "ric3
" or "ric4
".Code Block language js title Instance#1: policy_data payload: Type: "STD_QOS2_0.1.0" { "scope": { "ueId": "ue5000", "qosId": "qos5000" }, "qosObjectives": { "priorityLevel": 5000 } }
The payload to create a new A1-Policy Instance () of type “
STD_QOS2_0.1.0
” on "ric3
" is shown belowCode Block language js title Instance#1: instance_1.json { "ric_id": "ric3", "policy_id": "aa8feaa88d", "service_id": "myapp", "policytype_id": "STD_QOS2_0.1.0", "policy_data": { "scope": { "ueId": "ue5000", "qosId": "qos5000" }, "qosObjectives": { "priorityLevel": 5000 } } }
Code Block language bash curl -X PUT -v "http://localhost:8081/a1-p/policies" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @instance_1.json curl "http://localhost:8081/a1-p/policies" Result: {"policy_ids":["aa8feaa88d"]}curl "localhost:8081/a1-policy/v2/policies/aa8feaa88d944d919ef0e83f2172a5000" Result: {"ric_id":"ric3","policy_id":"aa8feaa88d944d919ef0e83f2172a5000","service_id":"controlpanel","policy_data":{"scope":{"ueId":"ue5000","qosId":"qos5000"},"qosObjectives":{"priorityLevel":5000}},"status_notification_uri":null, "policytype_id":"STD_QOS2_0.1.0","transient":false}
Sample A1-Policy Instance data that corresponds to A1-Policy Type
1
is shown below. This can be used to create a new A1-Policy instance on "ric1
" or "ric2
".Code Block language js title Instance#2: policy_data payload: Type: 1 { "scope": { "ueId": "ue6000", "qosId": "qos6000" }, "qosObjectives": { "priorityLevel": 6000 } }
The payload to create a new A1-Policy Instance () of type “
STD_QOS2_0.1.0
” on "ric2
" is shown belowCode Block language js title Instance#2: instance_2.json { "ric_id": "ric2", "policy_id": "172a5100", "service_id": "myapp", "policytype_id": "1", "policy_data": { "scope": { "ueId": "ue6000", "qosId": "qos6000" }, "qosObjectives": { "priorityLevel": 6000 } } }
Code Block language bash curl -X PUT -v "http://localhost:8081/a1-p/policies" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @instance_2.json curl "http://localhost:8081/a1-p/policies" Result: {"policy_ids":["172a5000", "aa8feaa88d"]} curl "localhost:8081/a1-policy/v2/policies/172a5000" Result: {"ric_id":"ric2","policy_id":"172a5000","service_id":"myapp","policy_data":{"scope":{"ueId":"ue6000","qosId":"qos6000"},"qosObjectives":{"priorityLevel":6000}},"status_notification_uri":null,"policytype_id":"1","transient":false}
...