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

Compare with Current View Page History

« Previous Version 6 Next »

SDN-R microservices in ONAP Dublin are compiled in gerrit since first version of 0.4.2 for Opendaylight Flourine SR2. 

If there is the need to run this services in Opendaylight Flourine SR1 environment the adaption can be done in a few simple steps, that are descirbed here.

Test environment for creating and running docker container is located here: https://github.com/onap-oof-pci-poc/ccsdk/tree/master/distribution/odlwt-alpine-standalone-0.4.1-SNAPSHOT

Opendaylight Background

The parent used in the pom file for a CCSDK feature is defining the Opendaylight Version that is targeted as run time environment. The interfaces provided by an Opendaylight main version, like Flourine, are not changed from one SRn to SRn+1. 

If the feature needs to be executed by using a different opendaylight version, all pom.xml need to be adjusted and the features need to be compiled. That's it.

The artifacts version number should be use the schema from table below to prevent confusion.

Artifacts version numberParents version numberTarget ODL Version
0.4.1/0.4.1-SNAPSHOT1.2.1/1.2.1-SNAPSHOTFlourine SR1
0.4.2/0.4.2-SNAPSHOT1.2.2/1.2.2-SNAPSHOTFlourine SR2

Example for adapting to a different Opendaylight version

Prerequ:

  • Server with Ubuntu with development setup for ONAP with access to ONAP Nexus.

Example uses:

  • onap microservice: ccsdk/features:sdnr/wt
  • artifact version/parent version: 0.4.2-SNAPSHOT with 1.2.2-SNAPSHOT
  • Target version is: 0.4.1-SNAPSHOT/1.2.1-SNAPSHOT

Steps to create a Flourine SR1 Version, by example for using 0.4.2-SNAPSHOT.

  1. Clone gerrit ccsdk/feature repository to features
  2. Copy recurse sdnr/wt tree into new sdnr/wt-0.4.1 directory
  3. Change the version numbers in th pom files accordingly
  4. Compile the microservice that the result is in local .m2 repository for related use
  5. in .m2/repository  under org/onap/ccsdk/features/sdnr/wt the bundles are now available with version 0.4.1-SNAPSHOT
  6. All bundles are included into sdnr-wt-feature-aggregator. See dependency below.


<dependency>
	<groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
	<artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
	<version>0.4.1-SNAPSHOT</version>
	<classifier>repo</classifier>
	<type>zip</type>
</dependency>

Related command sequence

Ubuntu and bash, ONAP dev environment.

cd ~
git clone git clone https://gerrit.onap.org/r/ccsdk/features
cd features/sdnr/wt
cp -r wt wt-0.4.1 
cd wt-0.4.1 
sed -i 's#<version>1.2.2-SNAPSHOT</version>#<version>1.2.1-SNAPSHOT</version>#g' $(find . -name "pom.xml") 
sed -i 's#<version>0.4.2-SNAPSHOT</version>#<version>0.4.1-SNAPSHOT</version>#g' $(find . -name "pom.xml")
mvn clean install

Hint: It can not be excluded that the version number to replace is used by something in the pom.xml. 

As a check use grep command with the version numbers to replace:


grep "<version>1\.2\.2-SNAPSHOT</version>" $(find . -name pom.xml)
grep "<version>0\.4\.2-SNAPSHOT</version>" $(find . -name pom.xml)

  • No labels