From f1c516a3093c6247a6061a3aeef76196489edd91 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Fri, 28 Feb 2020 12:28:55 +0100 Subject: [PATCH] Rationalize features - clean features pom.xml configurations - remove models and api useless features - separate TAPI support in a specific feature and migrate tapi blueprint folder - declare TAPI and inventory in karaf pom.xml - update user guide Signed-off-by: guillaume.lambert Change-Id: I87ccca5e295c14e1a3ed2d06bebe312a463a5d9c --- docs/user-guide.rst | 26 ++++---- features/odl-transportpce-ordmodels/pom.xml | 62 ------------------- .../pom.xml | 29 +++++---- features/odl-transportpce/pom.xml | 38 +++++++----- features/pom.xml | 3 +- karaf/pom.xml | 18 ++++++ .../blueprint/tapi-blueprint.xml | 0 7 files changed, 73 insertions(+), 103 deletions(-) delete mode 100644 features/odl-transportpce-ordmodels/pom.xml rename features/{odl-transportpce-api => odl-transportpce-tapi}/pom.xml (73%) rename tapi/src/main/resources/org/{opendaylight => OSGI-INF}/blueprint/tapi-blueprint.xml (100%) diff --git a/docs/user-guide.rst b/docs/user-guide.rst index 6b691f566..aba848f40 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -41,26 +41,18 @@ TransportPCE User-Facing Features - This feature contains all other features/bundles of TransportPCE project. If you install it, it provides all functions that the TransportPCE project can support. - -- **odl-transportpce-api** - - - This feature contains all Transportpce project specific models defined in "Service-path". + It exposes all Transportpce project specific models defined in "Service-path". These models complement OpenROADM models describing South and Northbound APIs, and define the data structure used to interconnect the generic blocks/functions described on the previous diagram. -- **odl-transportpce-ordmodels** - - - This feature contains all OpenROADM models : Common, Device, Network and Service models. - -- **bundle transportpce-tapimodels** - - - This bundle contains models coming from TAPI version 2.1.2. +- **feature odl-transportpce-tapi** -- **bundle transportpce-tapis** + - This feature provides transportPCE a limited support of TAPI version 2.1.2 Northbound interface. - - This bundle contains limited support of TAPI version 2.1.2 Northbound interface. +- **feature odl-transportpce-inventory** + - This feature provides transportPCE an external connector to a MariaDB inventory currently limited to openROADM 1.2.1 devices. How To Start ------------ @@ -83,4 +75,12 @@ Run OpenDaylight and install TransportPCE Service *odl-transportpce* as below:: feature:install odl-transportpce +if you need TAPI limited support, then run:: + + feature:install odl-transportpce-tapi + +if you need the inventory external connector support limited to 1.2.1 OpenROADM devices, then run:: + + feature:install odl-transportpce-inventory + For a more detailed overview of the TransportPCE, see the :ref:`transportpce-dev-guide`. diff --git a/features/odl-transportpce-ordmodels/pom.xml b/features/odl-transportpce-ordmodels/pom.xml deleted file mode 100644 index f782f5fc5..000000000 --- a/features/odl-transportpce-ordmodels/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - 4.0.0 - - - org.opendaylight.odlparent - single-feature-parent - 6.0.4 - - - - org.opendaylight.transportpce - odl-transportpce-ordmodels - 1.0.0-SNAPSHOT - feature - - OpenDaylight :: transportpce :: ordmodels - - - - ${project.groupId}.ordmodels - transportpce-ordmodels-common - ${project.version} - - - ${project.groupId}.ordmodels - transportpce-ordmodels-network - ${project.version} - - - ${project.groupId}.ordmodels - transportpce-ordmodels-service - ${project.version} - - - ${project.groupId}.ordmodels - transportpce-ordmodels-device - ${project.version} - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.18.1 - - true - - - - - diff --git a/features/odl-transportpce-api/pom.xml b/features/odl-transportpce-tapi/pom.xml similarity index 73% rename from features/odl-transportpce-api/pom.xml rename to features/odl-transportpce-tapi/pom.xml index e02d163dc..bb82551fe 100644 --- a/features/odl-transportpce-api/pom.xml +++ b/features/odl-transportpce-tapi/pom.xml @@ -17,43 +17,48 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL org.opendaylight.transportpce - odl-transportpce-api + odl-transportpce-tapi 1.0.0-SNAPSHOT feature - OpenDaylight :: transportpce :: api - - - 1.8.0-SNAPSHOT - etc/opendaylight/karaf - + OpenDaylight :: transportpce :: tapi - ${project.groupId} - odl-transportpce-ordmodels + org.opendaylight.transportpce + odl-transportpce ${project.version} features xml ${project.groupId} - transportpce-api + transportpce-tapimodels + ${project.version} + + + ${project.groupId} + transportpce-tapi ${project.version} - + + true + true + + + org.apache.maven.plugins maven-surefire-plugin - 2.18.1 true + diff --git a/features/odl-transportpce/pom.xml b/features/odl-transportpce/pom.xml index 7b21fa48d..58ff28c17 100644 --- a/features/odl-transportpce/pom.xml +++ b/features/odl-transportpce/pom.xml @@ -28,54 +28,64 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL 1.8.0-SNAPSHOT 1.11.0-SNAPSHOT etc/opendaylight/karaf + true + true - org.opendaylight.transportpce - odl-transportpce-api + ${project.groupId}.ordmodels + transportpce-ordmodels-common ${project.version} - features - xml - org.opendaylight.transportpce - transportpce-common + ${project.groupId}.ordmodels + transportpce-ordmodels-network + ${project.version} + + + ${project.groupId}.ordmodels + transportpce-ordmodels-service + ${project.version} + + + ${project.groupId}.ordmodels + transportpce-ordmodels-device ${project.version} org.opendaylight.transportpce - transportpce-renderer + transportpce-api ${project.version} org.opendaylight.transportpce - transportpce-networkmodel + transportpce-common ${project.version} org.opendaylight.transportpce - transportpce-olm + transportpce-renderer ${project.version} org.opendaylight.transportpce - transportpce-pce + transportpce-networkmodel ${project.version} org.opendaylight.transportpce - transportpce-servicehandler + transportpce-olm ${project.version} org.opendaylight.transportpce - transportpce-tapimodels + transportpce-pce ${project.version} org.opendaylight.transportpce - transportpce-tapi + transportpce-servicehandler ${project.version} @@ -115,11 +125,11 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL org.apache.maven.plugins maven-surefire-plugin - 2.18.1 true + diff --git a/features/pom.xml b/features/pom.xml index b3ef9c442..e28ea55d3 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -23,9 +23,8 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL pom - odl-transportpce-ordmodels - odl-transportpce-api odl-transportpce + odl-transportpce-tapi odl-transportpce-inventory diff --git a/karaf/pom.xml b/karaf/pom.xml index a954e468d..10ebeb5c3 100644 --- a/karaf/pom.xml +++ b/karaf/pom.xml @@ -33,6 +33,7 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL + @@ -49,6 +50,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL xml runtime + + ${project.groupId} + odl-transportpce-tapi + ${project.version} + features + xml + runtime + + + ${project.groupId} + odl-transportpce-inventory + ${project.version} + features + xml + runtime + + diff --git a/tapi/src/main/resources/org/opendaylight/blueprint/tapi-blueprint.xml b/tapi/src/main/resources/org/OSGI-INF/blueprint/tapi-blueprint.xml similarity index 100% rename from tapi/src/main/resources/org/opendaylight/blueprint/tapi-blueprint.xml rename to tapi/src/main/resources/org/OSGI-INF/blueprint/tapi-blueprint.xml -- 2.36.6