Versions Compared

Key

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

...

  • To support local test with two separate NearRT-RIC simulator instances the following modifications must be done:  
    • change the 'a1ControllerBaseUrl' in nonrtric/policy-agent/config/application.yaml file of policy-agent to http://a1-controller-container:8181 (The current URL
      • The above hostname and port values come from and must match those defined in nonrtric/sdnc-a1-controller/oam/installation/src/main/yaml/docker-compose.yml
      • The default URL to be replaced (http://sdnc.onap:8282) is used in Kubernetes-based ONAP deployment
      ).
    • replace the content of vi nonrtric/policy-agent/config/application.yaml
      replace application_configuration.yaml of policy-agent yaml with the following content:

...


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


  • (warning) Note also that nonrtric/dashboard/webapp-backend/src/main/resources/application.properties default property value policycontroller.url.prefix = http://policy-agent-container:8081 assumes that policy agent is started with name policy-agent-container and exposes port 8081 (as is done below)! 
  • Build the code and create docker images:
    cd nonrtric
    mvn clean install

...