Versions Compared

Key

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

...

If they are not using default network, should also append [--network=<network-name>] in the comand.


1.create service1 to policy agent:

curl -k -X PUT -sw %{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"}'

2.create policy 2001 to ric1 with type1 and service1 via policy agent:

curl -k -X PUT -sw %{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}}'


here ric1 is your OSC version near-rt-ric, and make sure service1 and type=1 exists in your ric.

Policy type cannot be created via policy agent, you have to create policy type in ric/gNB first.


3. create policy 2100 to ric2 with service1 via policy agent, no type:

curl -k -X PUT -sw %{http_code} -H accept:application/json -H Content-Type:application/json "http://localhost:8081/policy?id=2100&ric=ric2&service=service1" --data '{"scope": {"ueId": "ue3100","qosId": "qos3100"},"qosObjective": {"priorityLevel": 3100}}'


here ric2 is your STD version near-rt-ric, no type required. Make sure service1 exists in your ric.


4. Get policy agent status:

curl -skw %{http_code} http://localhost:8081/status