Versions Compared

Key

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

...

Create the file type_config.json with the content below:


Code Block
titletype_config.json
{

...


    "types":

...

 [
        {
            "id":

...

 "STD_Fault_Messages",

...


            "dmaapTopicUrl":

...

 "/events/unauthenticated.dmaapmed.json/dmaapmediatorproducer/STD_Fault_Messages?timeout=15000&limit=100"

...


        }
    ]
}


There are a number of environment variables that need to be set when starting the application. See these example settings:

...

Start the Dmaap Mediator Producer in a separate shell with the following command:

docker run --rm

 

-v

 

\
<absolute-path-to-config-

file>

file>/type_config.json:/configs/type_config.json \
-p 8885:8085 -p 8985:8185 --network=nonrtric-docker-net --name=dmaapmediatorservice \
-e

 

"INFO_COORD_ADDR=https://information-service-container:8434"

 

\
-e

 

"DMAAP_MR_ADDR=https://message-router:3905"

 

\
-e

 

"LOG_LEVEL=Debug"

 

\
-e

 

"INFO_PRODUCER_HOST=https://dmaapmediatorservice"

 

\
-e

 

"INFO_PRODUCER_PORT=8185"

 

\
nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-dmaapmediatorproducer:1.


1.0


Setup jobs to produce data according to the types in type_config.json

Create a file job3.json with the job definition (replace paths <url-for-jod-data-delivery> and <url-for-jod-status-delivery> to fit your environment:

Code Block
titlejob3.json
{

...


  "info_type_id":

...

 "STD_Fault_Messages",

...


  "job_result_uri":

...

 "<url-for-job-data-delivery>",

...


  "job_owner":

...

 "job3owner",

...


  "status_notification_uri":

...

 "<url-for-job-status-delivery>",

...


  "job_definition": {}

...


}


Create job3 for type 'ExampleInformationType'

curl -k -v -X PUT -H Content-Type:application/json  https://localhost:80838434/data-consumer/v1/info-jobs/job3  --data-binary @job3.json

Check that the job has been enabled - job accepted by the Dmaap Adapter Service

...

Data posted on the message router topic unauthenticated.dmaapmed.json will be delivered to the path as specified in the job3.json

Run usecases

Within NON-RT RIC a number of usecase implementations are provided. Follow the links below to see how to run them.

...

Run use cases

Within NON-RT RIC a number of use case implementations are provided. Follow the links below to see how to run them.

...