Versions Compared

Key

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

This page describes how to get the release A version of NonRTRIC up and running locally with two separate NearRT-RIC simulator docker containers.

All four components of the NonRTRIC repo run inside docker containers , and communicate via a docker network. Details of the architecture can be found in the link: Release A.

...

  • Download the nonrtric repo: 
     git clone "https://gerrit.o-ran-sc.org/r/nonrtric" -b Amber
  • For local testing, To support local test with two separate NearRT-RIC simulator instances the following modifications must be done:  cd
    • vi nonrtric/policy-agent/config/application.yaml

    • replace application_configuration.yaml of policy-agent with the following content:
          vi nonrtric/policy-agent/config/application_configuration.yaml


Code Block
languageyml
titleapplication_configuration.yaml
{
   "config": {
      "//description": "Application configuration",
      "ric": [
            {
               "name": "ric1",
               "baseUrl": "http://nearRtRic-sim1:8085/",  
               "managedElementIds": [
                  "kista_1",
                  "kista_2"
               ]
            },
            {
               "name": "ric2",
               "baseUrl": "http://nearRtRic-sim2:8085/",
               "managedElementIds": [
                  "kista_3",
                  "kista_4"
               ]
            }
         ]
      }
}


  • Build the code and create docker images. 
    cd ../..nonrtric
    mvn clean install

Run A1 Controller Docker Container

  • A1 Controller must be started first to set up docker network
  • Change directory to: 
    cd nonrtric/sdnc-a1-controller/oam/installation/src/main/yaml
  • Run docker container using the command below and wait until this message appears 'Healthcheck Passed in XX seconds'. 
    docker-compose up a1-controller
  • The Karaf logs of A1 controller can be seen using the following commands: 
    docker exec -it a1-controller-container sh
    cd opt/opendaylight/data/log/
    tail -f karaf.log

...

Run Near-RT-RIC Simulator Docker ContainerContainers

  • Run Start two docker container containers using this commandfollowing commands
    docker run -p 81818085:8085 --network=nonrtric-docker-net --name=ric1 o-ran-sc/near-rt-ric-simulator:1.0.01-SNAPSHOT
  • Change directory to:  
    cd nonrtric/near-rt-ric-simulator/ric-plt/a1
  • Put an example policy_type inside the near-rt-ric-simulator by running this curl command:
    curl -X PUT -v "http://localhost:8181/policytypes/STD_QoSNudging_0.2.0" -H "accept: application/json" 
    -H "Content-Type: application/json" --data-binary @policy_type_STD_QoSNudging_0.2.0.json

...