Versions Compared

Key

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

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

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

If not using default network, should also add --network=<network-name> in the command.

If you want to run the container in the background, should also add -d in the command.

If you want to set network alias for PMS, add --network-alias=<alias-name> in the command.

nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-policy-agent:2.0.0 is the Bronze release version.

nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-policy-agent is the latest version from master branch.

Example with all above arguments:

Code Block
languagebash
titledocker command with user defined network
docker run -d -p 8081:8081 -p 8344:8433 --name policy-agent --network=sdnc_default --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:1000210004/o-ran-sc/nonrtric-policy-agent

...

Code Block
themeEmacs
titleapplication_configuration.json
{
   "config": {
      "//description": "Application configuration",
      "controller": [
         {
            "name": "a1-controller",
            "baseUrl": "http://a1-controller:8181",
            "userName": "admin",
            "password": "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
         }
      ],
      "ric": [
         {
            "name": "ric1",
            "baseUrl": "http://a1-sim-OSC:8085/",
            "controller": "a1-controller",
            "managedElementIds": [
               "kista_1",
               "kista_2"
            ]
         },
         {
            "name":"ric2",
            "baseUrl":"http://a1-sim-STD:8085/",
            "controller": "a1-controller",
            "managedElementIds":[
               "kista_3",
               "kista_4"
            ]
         }
      ]
   }
}

...

Code Block
languagebash
titleCurl: Create a sample service
curl -k -X PUT -swskw %{http_code} -H accept:application/json -H Content-Type:application/json http://localhost:8081/service --data '{"callbackUrl": "http://callback-receiver:8090/callbacks/1","keepAliveIntervalSeconds": "3600","serviceName": "service1"}'

...

Code Block
languagebash
titleCurl: Create a sample A1 Policy
	curl -k -X PUT -swskw %{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"},"qosObjective": {"priorityLevel": 3101}}'

...

Code Block
languagebash
titleCurl: Create a sample A1 Policy
curl -k -X PUT -swskw %{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"},"qosObjective": {"priorityLevel": 3100}}'

...