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
    • 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: 
      • Local 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-provider-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 ODL
  • Run the local container with patch in your local dev environment according to this description: https://wiki.onap.org/display/DW/SDN-R+on+docker-compose
  • No labels