Versions Compared

Key

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

This page is out of date.
Please see the relevant page for the latest release: e.g. Release J - Run in Docker


The A1 A1 Policy Management Service can be executed with a single docker command:

...

Code Block
languagebash
titledocker command with user defined network
docker run -d -p 8081:8081 -p 8344:8433 --name policy-agent --network=sdnc_defaultnonrtric-docker-net --network-alias policy-agent-container --mount type=bind,source=$(pwd)/application_configuration.json,target=/opt/app/policy-agent/data/application_configuration.json nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-policy-agent

...

  • For more information on configuration options see page:  Release B - Build/Run
  • NOTE: There should not be any comma in the end of last configuration.
Code Block
themeEmacs
titleapplication_configuration.json
{
    "config": {
      "//description": "Application configuration",
      "controller": [
 "ric":[
          {
             "name": "a1-controllerric1",
             "baseUrl": "http://a1-sim-controllerOSC:81818085/",
             "userNamemanagedElementIds":[
    "admin            "kista_1",
               "password": "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2Ukista_2"
         }
    ]
   ],
      "ric": [ },
          {
             "name": "ric1ric2",
             "baseUrl": "http://a1-sim-OSCSTD:8085/",
             "controllermanagedElementIds": "a1-controller",
[
                "managedElementIds": [
kista_1",
                "kista_12",
             ]
     "kista_2"
     }
       ],
       "streams_publishes":{
  },
         "dmaap_publisher":{
             "nametype":"ric2",
message_router",
             "dmaap_info":{
                "baseUrltopic_url":"http://a1dmaap-sim-STD:8085/",
mr:3904/events/A1-POLICY-AGENT-WRITE"
             }
          }
       },
       "controllerstreams_subscribes":{
 "a1-controller",         "dmaap_subscriber":{
             "managedElementIdstype":[
  "message_router",
             "kistadmaap_3info",:{
                "kista_4"
topic_url":"http://dmaap-mr:3904/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100"
             ]}
          }
       ]}
    }
 }


Some sample CURL commands :

...

Code Block
languagebash
titleCurl: Create a sample A1 Policy
	curl -k -X PUT -skw %{http_code} -H accept:application/json -H Content-Type:application/json "http://localhost:8081/policy?id=2001&ric=ric1&service=service1&type=1" --data '{"scope": {"ueId": "ue3100","qosId": "qos3100"},"qosObjectiveqosObjectives": {"priorityLevel": 3101}}'

...

Code Block
languagebash
titleCurl: Create a sample A1 Policy
curl -k -X PUT -skw %{http_code} -H accept:application/json -H Content-Type:application/json "http://localhost:8081/policy?id=3100&ric=ric2&service=service1" --data '{"scope": {"ueId": "ue3100","qosId": "qos3100"},"qosObjectiveqosObjectives": {"priorityLevel": 3100}}'

...