From 131f1fab6bea5eeb6467e8836ec00ef7c6bf5eac Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Wed, 28 Feb 2018 21:13:09 -0500 Subject: Nitrogen port : sdnc-northbound Update sdnc/northbound to OpenDaylight Nitrogen release. Change-Id: I6e299418a7ab441899b78b5d3df5f8ee96829222 Issue-ID: SDNC-269 Signed-off-by: Timoney, Dan (dt5972) --- .../features/features-generic-resource-api/pom.xml | 29 +++ generic-resource-api/features/pom.xml | 99 ++-------- .../features/sdnc-generic-resource-api/pom.xml | 45 +++++ .../features/src/main/resources/features.xml | 17 -- generic-resource-api/installer/pom.xml | 29 +-- .../src/main/resources/scripts/install-feature.sh | 9 +- generic-resource-api/model/pom.xml | 210 +++++---------------- generic-resource-api/pom.xml | 37 +--- generic-resource-api/provider/pom.xml | 164 +++++++--------- .../yang/GENERIC-RESOURCE-API-provider-impl.yang | 65 ------- 10 files changed, 228 insertions(+), 476 deletions(-) create mode 100644 generic-resource-api/features/features-generic-resource-api/pom.xml create mode 100644 generic-resource-api/features/sdnc-generic-resource-api/pom.xml delete mode 100644 generic-resource-api/features/src/main/resources/features.xml delete mode 100644 generic-resource-api/provider/src/main/yang/GENERIC-RESOURCE-API-provider-impl.yang (limited to 'generic-resource-api') diff --git a/generic-resource-api/features/features-generic-resource-api/pom.xml b/generic-resource-api/features/features-generic-resource-api/pom.xml new file mode 100644 index 00000000..0275b59d --- /dev/null +++ b/generic-resource-api/features/features-generic-resource-api/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.0.1-SNAPSHOT + + + + org.onap.sdnc.northbound + features-generic-resource-api + 1.3.1-SNAPSHOT + feature + + sdnc-northbound :: generic-resource-api :: ${project.artifactId} + + + + ${project.groupId} + sdnc-generic-resource-api + ${project.version} + xml + features + + + + diff --git a/generic-resource-api/features/pom.xml b/generic-resource-api/features/pom.xml index 8b3e0e49..7c83e30c 100644 --- a/generic-resource-api/features/pom.xml +++ b/generic-resource-api/features/pom.xml @@ -1,96 +1,23 @@ - + 4.0.0 - org.onap.sdnc.northbound - generic-resource-api - 1.3.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + + org.onap.sdnc.northbound generic-resource-api-features - jar + 1.3.1-SNAPSHOT + pom - - - org.onap.sdnc.northbound - generic-resource-api-model - - - org.onap.sdnc.northbound - generic-resource-api-provider - + sdnc-northbound :: generic-resource-api :: ${project.artifactId} - - org.opendaylight.mdsal - features-mdsal - ${odl.mdsal.features.version} - xml - features - runtime - - - - org.opendaylight.odlparent - features-test - ${odl.commons.opendaylight.version} - test - - - - org.opendaylight.yangtools - features-yangtools - ${odl.yangtools.version} - xml - features - runtime - - - - - - - true - src/main/resources - - - - - org.apache.maven.plugins - maven-resources-plugin - - - filter - - resources - - generate-resources - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/${features.file} - xml - features - - - - - - - - + + sdnc-generic-resource-api + features-generic-resource-api + diff --git a/generic-resource-api/features/sdnc-generic-resource-api/pom.xml b/generic-resource-api/features/sdnc-generic-resource-api/pom.xml new file mode 100644 index 00000000..817145d3 --- /dev/null +++ b/generic-resource-api/features/sdnc-generic-resource-api/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.0.1-SNAPSHOT + + + + org.onap.sdnc.northbound + sdnc-generic-resource-api + 1.3.1-SNAPSHOT + feature + + sdnc-northbound :: generic-resource-api :: ${project.artifactId} + + + + org.opendaylight.controller + odl-mdsal-broker + xml + features + + + org.onap.ccsdk.sli.core + ccsdk-sli + ${ccsdk.sli.core.version} + xml + features + + + ${project.groupId} + generic-resource-api-model + ${project.version} + + + ${project.groupId} + generic-resource-api-provider + ${project.version} + + + + diff --git a/generic-resource-api/features/src/main/resources/features.xml b/generic-resource-api/features/src/main/resources/features.xml deleted file mode 100644 index 219c7215..00000000 --- a/generic-resource-api/features/src/main/resources/features.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - odl-mdsal-broker - sdnc-sli - - mvn:org.onap.sdnc.northbound/generic-resource-api-model/${project.version} - mvn:org.onap.sdnc.northbound/generic-resource-api-provider/${project.version} - - - diff --git a/generic-resource-api/installer/pom.xml b/generic-resource-api/installer/pom.xml index e3ca5eb8..ea8967e4 100755 --- a/generic-resource-api/installer/pom.xml +++ b/generic-resource-api/installer/pom.xml @@ -1,20 +1,25 @@ - + 4.0.0 + - generic-resource-api - org.onap.sdnc.northbound - 1.3.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + + + org.onap.sdnc.northbound generic-resource-api-installer - Generic Resource API - Karaf Installer + 1.3.1-SNAPSHOT pom + sdnc-northbound :: generic-resource-api :: ${project.artifactId} + sdnc-generic-resource-api - sdnc-generic-resource-api - mvn:org.onap.sdnc.northbound/generic-resource-api-features/${project.version}/xml/features + ${application.name} + mvn:org.onap.sdnc.northbound/${application.name}/${project.version}/xml/features false @@ -22,10 +27,10 @@ org.onap.sdnc.northbound - generic-resource-api-features + ${application.name} ${project.version} - features xml + features * @@ -100,8 +105,7 @@ true false false - org.onap.sdnc - sli-common,sli-provider,dblib-common,dblib-provider + org.onap.sdnc.northbound provided @@ -136,5 +140,4 @@ - diff --git a/generic-resource-api/installer/src/main/resources/scripts/install-feature.sh b/generic-resource-api/installer/src/main/resources/scripts/install-feature.sh index 6e8620e1..d5f620f1 100644 --- a/generic-resource-api/installer/src/main/resources/scripts/install-feature.sh +++ b/generic-resource-api/installer/src/main/resources/scripts/install-feature.sh @@ -10,9 +10,9 @@ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,7 +23,6 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client} -ODL_KARAF_CLIENT_OPTS=${ODL_KARAF_CLIENT_OPTS:-"-u karaf"} INSTALLERDIR=$(dirname $0) REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip @@ -36,5 +35,5 @@ else exit 1 fi -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:install ${features.boot} +${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories} +${ODL_KARAF_CLIENT} feature:install ${features.boot} diff --git a/generic-resource-api/model/pom.xml b/generic-resource-api/model/pom.xml index 7a140323..c47c915d 100644 --- a/generic-resource-api/model/pom.xml +++ b/generic-resource-api/model/pom.xml @@ -1,172 +1,56 @@ - 4.0.0 + 4.0.0 - - org.onap.sdnc.northbound - generic-resource-api - 1.3.0-SNAPSHOT - + + org.onap.ccsdk.parent + binding-parent + 1.0.1-SNAPSHOT + + - generic-resource-api-model - bundle + org.onap.sdnc.northbound + generic-resource-api-model + 1.3.1-SNAPSHOT + bundle - - - org.opendaylight.mdsal - yang-binding - ${odl.mdsal.yang.binding.version} - - - org.opendaylight.yangtools - yang-common - ${odl.yangtools.version} - - - org.opendaylight.mdsal.model - ietf-inet-types - ${odl.ietf-inet-types.version} - - - org.opendaylight.mdsal.model - ietf-yang-types - ${odl.ietf-yang-types.version} - - + sdnc-northbound :: generic-resource-api :: ${project.artifactId} - - - - - org.apache.felix - maven-bundle-plugin - true - - - * - - - - - org.opendaylight.yangtools - yang-maven-plugin - ${odl.yangtools.yang.maven.plugin.version} - - - org.opendaylight.mdsal - maven-sal-api-gen-plugin - ${odl.sal.api.gen.plugin.version} - jar - - - org.opendaylight.netconf - sal-rest-docgen-maven - ${odl.restconf.version} - jar - - - - - - generate-sources - - - ${yang.file.directory} - - - org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl - ${salGeneratorPath} - - - org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator - target/swagger - - - true - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - - python - - scripts/python/yang2props.py - src/main/yang/GENERIC-RESOURCE-API.yang - target/generic-resource-api.properties - - - generation - generate-resources - - exec - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/generic-resource-api.properties - properties - generic-resource-api - - - - - - + + + org.opendaylight.mdsal.model + ietf-inet-types + + + org.opendaylight.mdsal.model + ietf-yang-types + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + + python + + scripts/python/yang2props.py + src/main/yang/GENERIC-RESOURCE-API.yang + target/generic-resource-api.properties + + + generation + generate-resources + + exec + + + + - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - - org.codehaus.mojo - - - exec-maven-plugin - - - [1.2.1,) - - - exec - - - - - - - - - - - - - + diff --git a/generic-resource-api/pom.xml b/generic-resource-api/pom.xml index 7696de8a..fc43e7d1 100644 --- a/generic-resource-api/pom.xml +++ b/generic-resource-api/pom.xml @@ -3,46 +3,23 @@ 4.0.0 - org.onap.sdnc.northbound - sdnc-northbound - 1.3.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + org.onap.sdnc.northbound generic-resource-api - 1.3.0-SNAPSHOT + 1.3.1-SNAPSHOT pom - - generic-resource-api - + sdnc-northbound :: generic-resource-api + model provider features installer - - - - - - org.onap.sdnc.northbound - generic-resource-api-features - ${project.version} - xml - features - - - org.onap.sdnc.northbound - generic-resource-api-model - ${project.version} - - - org.onap.sdnc.northbound - generic-resource-api-provider - ${project.version} - - - diff --git a/generic-resource-api/provider/pom.xml b/generic-resource-api/provider/pom.xml index 4d82ec99..df15737e 100644 --- a/generic-resource-api/provider/pom.xml +++ b/generic-resource-api/provider/pom.xml @@ -1,116 +1,86 @@ - 4.0.0 + 4.0.0 - - org.onap.sdnc.northbound - generic-resource-api - 1.3.0-SNAPSHOT - + + org.onap.ccsdk.parent + binding-parent + 1.0.1-SNAPSHOT + + - generic-resource-api-provider - bundle + org.onap.sdnc.northbound + generic-resource-api-provider + 1.3.1-SNAPSHOT + bundle - - - org.onap.sdnc.northbound - generic-resource-api-model - - - org.opendaylight.controller - config-api - ${odl.controller.config.api.version} - - - org.opendaylight.controller - sal-binding-config - ${odl.mdsal.version} - - - org.opendaylight.controller - sal-binding-api - ${odl.mdsal.version} - - - org.opendaylight.controller - sal-common-util - ${odl.mdsal.version} - - - - org.opendaylight.controller - sal-test-model - ${odl.mdsal.version} - test - - - org.opendaylight.netconf - sal-rest-connector - ${odl.mdsal.version} - test - - - - org.opendaylight.controller - sal-binding-broker-impl - ${odl.mdsal.version} - test - - - org.opendaylight.controller - sal-binding-broker-impl - ${odl.mdsal.version} - test-jar - tests - test - - - - org.apache.commons - commons-lang3 - + sdnc-northbound :: generic-resource-api :: ${project.artifactId} + + + org.onap.sdnc.northbound + generic-resource-api-model + ${project.version} + + + org.apache.commons + commons-lang3 + org.onap.ccsdk.sli.core sli-common - ${sdnctl.sli.version} org.onap.ccsdk.sli.core sli-provider - ${sdnctl.sli.version} - - junit - junit - ${junit.version} - test - - - org.mockito - mockito-core - ${mockito.version} - test - - - - - + + org.opendaylight.controller + sal-binding-config + - - org.apache.felix - maven-bundle-plugin - true - - - !* - * - - - + + org.opendaylight.controller + sal-binding-api + + + org.opendaylight.controller + sal-common-util + + + org.opendaylight.controller + sal-test-model + test + + + org.opendaylight.netconf + sal-rest-connector + test + - - + + org.opendaylight.controller + sal-binding-broker-impl + test + + + org.opendaylight.controller + sal-binding-broker-impl + test-jar + tests + test + + + junit + junit + test + + + org.mockito + mockito-core + test + + diff --git a/generic-resource-api/provider/src/main/yang/GENERIC-RESOURCE-API-provider-impl.yang b/generic-resource-api/provider/src/main/yang/GENERIC-RESOURCE-API-provider-impl.yang deleted file mode 100644 index b2ce7f21..00000000 --- a/generic-resource-api/provider/src/main/yang/GENERIC-RESOURCE-API-provider-impl.yang +++ /dev/null @@ -1,65 +0,0 @@ -module GENERIC-RESOURCE-API-provider-impl { - - yang-version 1; - namespace "org:onap:sdnc:northbound:GENERIC-RESOURCE-API:provider:impl"; - prefix "GENERIC-RESOURCE-API-provider-impl"; - - import config { prefix config; revision-date 2013-04-05; } - import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; } - import opendaylight-sal-binding-broker-impl { - prefix binding-impl; - revision-date 2013-10-28; - } - - description - "This module contains the base YANG definitions for - GENERIC-RESOURCE-API-provider impl implementation."; - - revision "2017-08-24" { - description - "ONAP Amsterdam version."; - } - - // This is the definition of the service implementation as a module identity. - identity GENERIC-RESOURCE-API-provider-impl { - base config:module-type; - - // Specifies the prefix for generated java classes. - config:java-name-prefix GENERIC-RESOURCE-APIProvider; - } - - // Augments the 'configuration' choice node under modules/module. - // We consume the three main services, RPCs, DataStore, and Notifications - augment "/config:modules/config:module/config:configuration" { - case GENERIC-RESOURCE-API-provider-impl { - when "/config:modules/config:module/config:type = 'GENERIC-RESOURCE-API-provider-impl'"; - - container rpc-registry { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity mdsal:binding-rpc-registry; - } - } - } - - container notification-publish-adapter { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity binding-impl:binding-new-notification-publish-service; - } - } - } - - container data-broker { - uses config:service-ref { - refine type { - mandatory false; - config:required-identity mdsal:binding-async-data-broker; - } - } - } - } - } -} -- cgit 1.2.3-korg