Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Question: 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 (Tested with ubuntu 20.04 or later)
    • Maven, Java 11, docker
    • ONAP specific settings.xml for maven in $USER/.m2

Steps

  • Example with 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 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: 
      • Changed one: ~/.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
      • Patch/replace in the new image: /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