Versions Compared

Key

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

Question: Request

  • What is the best way to verify code changes locally and how do i patch my changes to the SDNR setup?
  • For example, i have done some changes in ORanFaultNotificationListener.java and want to verify it on my SDNR setup.

Prerequisite a ONAP dev environment

Have dev environment running (

...

Ubuntu 20.04 or later) with

  • Maven, Java 11, docker
  • ONAP specific "settings.xml" for maven in "$USER/.m2"

Steps

...

for the example using SDNC Istanbul 2.2.3 / CCSDK 1.2.5

  • Pull [ccsdk/features] repository from gerrit version 1.2.5
  • Compile releated artifact with your new code in your local dev environment
    • Compile For example compile devicemanger o-ran/ru-fh here: features/sdnr/wt/devicemanager-o-ran-sc/o-ran/ru-fh
  • Create a local docker container FROM "nexus3.onap.org:10001/onap/sdnc-image:2.2.3" image that is replacing the local bundle within the bundle in the repository
    • For example replace sdnr-wt-devicemanager-o-ran-sc-oran-provider-1.2.5.jar
      • Changed oneLocal dev repo contains changed bundle: ~/.m2/repository/org/onap/ccsdk/features/sdnr/wt/sdnr-wt-devicemanager-o-ran-sc-oran-provider/1.2.5/sdnr-wt-devicemanager-o-ran-sc-oran-providerPatch/replace -1.2.5.jar
      • Replace in the new image with: /opt/opendaylight/system/org/onap/ccsdk/features/sdnr/wt/sdnr-wt-devicemanager-o-ran-sc-oran-provider/1.2.5/sdnr-wt-devicemanager-o-ran-sc-oran-provider-1.2.5.jar
      • Owner should be User user ODL
  • Run the local container with patch in your local dev environment according to this description: https://wikilf-onap.onapatlassian.orgnet/wiki/display/DW/SDN-R+on+docker-compose