SDN-R Development
Directory structure
In the gerrit ccsdk/feature repository in the path sdnr/wt the sources for all feature bundles are located.
In the following directory tree there are two sdnr services northbound and wt:
|
In sdnr/wt the features apigateway, helpserver, devicemodel, devicemanager, websocketmanager2, odlux are providing the functionality.
In sdnr/northbound there are the "development examples" helloworld and goodbyworld and the services energysavings and oofpcipoc.
Each feature contains a substructure
The sdnr/wt/featureaggregator and sdnr/northbound/features
is packaging all the above sdnr wt feature bundles (apigateway, .. ,odlux) into one ZIP installer to integrate them into a distribution image
providing a single karaf feature that can be used to install the complete service "sdnr-wt-feature-aggregator", but also provides the sub-features and its repositories
Template structure for feature
The SDN-R template structure for one feature has the elements:
name | content |
|---|---|
feature | (mandatory) OSGi xml feature and dependency |
installer | (mandatory) ZIP file containg mavenrepository content of helloworld feature for delivery to distribution ODL Karaf container. |
model | (optional) OSGi bundles export interface source files as java or yang source |
provider | (optional) OSGi bundles implementation source files as java or yang source |
A functional implementation should normally provide all elements, but it could be a subset only.
feature aggregator: Feature xml and installer are required.
model provider: feature, installer, model
Subsequent descriptions
The decriptions for creating a feature are:
The descriptions are provided with ONAP Casablance release. So the version numbers are related to Casablanca.
What is the easiest way to build sdnr (dublin) source code?
I am getting below errors: Many pom versions are missing in repository as below:
Non-resolvable parent POM for org.onap.ccsdk.features.sdnr.northbound:sdnr-oofpcipoc:0.5.0-SNAPSHOT: Failure to find org.onap.ccsdk.parent:single-feature-parent:pom:1.3.1-SNAPSHOT in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath'
I have fixed by available versions, but at the end it is giving error in repository downloaded pom file.
Non-resolvable parent POM for org.onap.ccsdk.sli.core:sli-core-artifacts:0.5.0-SNAPSHOT: Failure to find org.onap.ccsdk.parent:parent:pom:1.3.1-SNAPSHOT in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.onap.ccsdk.sli.core:sli-core-artifacts:0.5.0-SNAPSHOT, /root/.m2/repository/org/onap/ccsdk/sli/core/sli-core-artifacts/0.5.0-SNAPSHOT/sli-core-artifacts-0.5.0-SNAPSHOT.pom, line 17, column 10
Please help me to overcome from this issue.