<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-dmaap-artifact</id>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${basedir}/src/main/resources/org.opendaylight.transportpce.dmaap.cfg</file>
+ <type>cfg</type>
+ <classifier>config</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
<name>OpenDaylight :: transportpce :: dmaap-client</name>
<properties>
- <!-- skipped because we are using config file as artifact and it is not installed before running test -->
- <skip.karaf.featureTest>true</skip.karaf.featureTest>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
<dependencies>
</exclusions>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-dmaap-artifact</id>
- <phase>test</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/org.opendaylight.transportpce.dmaap.cfg</file>
- <type>cfg</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
</project>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-transportpce-dmaap-client">
<feature name="odl-transportpce-dmaap-client">
<configfile finalname="etc/org.opendaylight.transportpce.dmaap.cfg" override="false">
- mvn:${project.groupId}/${project.artifactId}/${project.version}/cfg/config
+ mvn:${project.groupId}/transportpce-dmaap-client/${project.version}/cfg/config
</configfile>
</feature>
</features>
\ No newline at end of file
<name>OpenDaylight :: transportpce :: Inventory</name>
<properties>
+ <mdsal.version>10.0.5</mdsal.version>
+ <netconf.version>4.0.4</netconf.version>
+ <transportpce.models.version>17.1.0-SNAPSHOT</transportpce.models.version>
<transportpce.db.host>localhost:3306</transportpce.db.host>
<transportpce.db.database>transportpce</transportpce.db.database>
<transportpce.db.username>root</transportpce.db.username>
<transporpce.device.backup.prefix></transporpce.device.backup.prefix>
<transporpce.device.backup.period>600</transporpce.device.backup.period>
<!-- skipping single feature test because DataSource is not available in Pax4j (H2 possible workaround) -->
- <skip.karaf.featureTest>true</skip.karaf.featureTest>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.transportpce.models</groupId>
+ <artifactId>transportpce-models-artifacts</artifactId>
+ <version>${transportpce.models.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>${mdsal.version}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>netconf-artifacts</artifactId>
+ <version>${netconf.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<dependency>
<groupId>org.opendaylight.transportpce</groupId>
<classifier>features</classifier>
<type>xml</type>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>odl-mdsal-binding-base</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>odl-netconf-util</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>odl-netconf-mapping-api</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
<dependency>
<groupId>org.opendaylight.transportpce</groupId>
<artifactId>transportpce-inventory</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>validate</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/target/resources</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-db-artifact</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>target/resources/org.ops4j.datasource-transporpce.cfg</file>
- <type>cfg</type>
- <classifier>datasource</classifier>
- </artifact>
- <artifact>
- <file>target/resources/org.opendaylight.transportpce.job.cfg</file>
- <type>cfg</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
</project>
<feature>pax-jdbc-mariadb</feature>
<feature>pax-jdbc-pool-dbcp2</feature>
<configfile finalname="etc/org.ops4j.datasource-transportpce.cfg" override="false">
- mvn:${project.groupId}/${project.artifactId}/${project.version}/cfg/datasource
+ mvn:${project.groupId}/transportpce-inventory/${project.version}/cfg/datasource
</configfile>
<configfile finalname="etc/org.opendaylight.transportpce.job.cfg" override="false">
- mvn:${project.groupId}/${project.artifactId}/${project.version}/cfg/config
+ mvn:${project.groupId}/transportpce-inventory/${project.version}/cfg/config
</configfile>
</feature>
</features>
\ No newline at end of file
<name>OpenDaylight :: transportpce :: nbinotifications</name>
<properties>
- <!-- skipped because we are using config file as artifact and it is not installed before running test -->
- <skip.karaf.featureTest>true</skip.karaf.featureTest>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
<dependencies>
<version>${project.version}</version>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-dmaap-artifact</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/org.opendaylight.transportpce.nbinotifications.cfg</file>
- <type>cfg</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
</project>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-transportpce-nbinotifications">
<feature name="odl-transportpce-nbinotifications">
<configfile finalname="etc/org.opendaylight.transportpce.nbinotififications.cfg" override="false">
- mvn:${project.groupId}/${project.artifactId}/${project.version}/cfg/config
+ mvn:${project.groupId}/transportpce-nbinotifications/${project.version}/cfg/config
</configfile>
</feature>
</features>
\ No newline at end of file
<properties>
<netconf.version>4.0.4</netconf.version>
<configfile.directory>etc/opendaylight/karaf</configfile.directory>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
<dependencyManagement>
<type>xml</type>
</dependency>
</dependencies>
-
- <!-- skipping test since this is an umbrella project / folder -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
<name>OpenDaylight :: transportpce :: tapi</name>
<properties>
+ <mdsal.version>10.0.5</mdsal.version>
+ <netconf.version>4.0.4</netconf.version>
<transportpce.models.version>17.1.0-SNAPSHOT</transportpce.models.version>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.transportpce.models</groupId>
+ <artifactId>transportpce-models-artifacts</artifactId>
+ <version>${transportpce.models.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>10.0.5</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>netconf-artifacts</artifactId>
+ <version>${netconf.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<dependency>
<groupId>org.opendaylight.transportpce.models</groupId>
- <artifactId>tapi-2.1.1</artifactId>
- <version>${transportpce.models.version}</version>
+ <artifactId>odl-tapi-models</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>odl-mdsal-model-rfc8345</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>odl-netconf-connector</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>odl-netconf-all</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>odl-transportpce</artifactId>
+ <version>${project.version}</version>
+ <classifier>features</classifier>
+ <type>xml</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
</dependencies>
-
- <!-- skipping test since this is an umbrella project / folder -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
<netconf.version>4.0.4</netconf.version>
<transportpce.models.version>17.1.0-SNAPSHOT</transportpce.models.version>
<configfile.directory>etc/opendaylight/karaf</configfile.directory>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
<dependencyManagement>
<dependencies>
+ <dependency>
+ <groupId>org.opendaylight.transportpce.models</groupId>
+ <artifactId>transportpce-models-artifacts</artifactId>
+ <version>${transportpce.models.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>netconf-artifacts</artifactId>
<dependency>
<groupId>org.opendaylight.transportpce.models</groupId>
<artifactId>odl-openroadm-models</artifactId>
- <version>${transportpce.models.version}</version>
<classifier>features</classifier>
<type>xml</type>
</dependency>
<type>xml</type>
</dependency>
</dependencies>
-
- <!-- skipping test since this is an umbrella project / folder -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifact</id>
- <phase>test</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/org.opendaylight.transportpce.cfg</file>
- <type>cfg</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
</project>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-transportpce">
<feature name="odl-transportpce">
<configfile finalname="etc/org.opendaylight.transportpce.cfg" override="true">
- mvn:${project.groupId}/${project.artifactId}/${project.version}/cfg/config
+ mvn:${project.groupId}/transportpce-olm/${project.version}/cfg/config
</configfile>
</feature>
</features>
\ No newline at end of file
<artifactId>sal-netconf-connector</artifactId>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target/resources</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-db-artifact</id>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>target/resources/org.ops4j.datasource-transporpce.cfg</file>
+ <type>cfg</type>
+ <classifier>datasource</classifier>
+ </artifact>
+ <artifact>
+ <file>target/resources/org.opendaylight.transportpce.job.cfg</file>
+ <type>cfg</type>
+ <classifier>config</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
crossConnect, deviceTransactionManager, olmtimer1, olmtimer2);
OlmPowerService olmPowerService = new OlmPowerServiceImpl(lightyServices.getBindingDataBroker(), powerMgmt,
deviceTransactionManager, portMapping, mappingUtils, openRoadmInterfaces);
- olmProvider = new OlmProvider(lightyServices.getRpcProviderService(), olmPowerService);
TransportpceOlmService olmPowerServiceRpc = new OlmPowerServiceRpcImpl(olmPowerService);
+ olmProvider = new OlmProvider(lightyServices.getRpcProviderService(), olmPowerServiceRpc);
LOG.info("Creating renderer beans ...");
OpenRoadmInterfaceFactory openRoadmInterfaceFactory = initOpenRoadmFactory(mappingUtils, openRoadmInterfaces,
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-dmaap-artifact</id>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${basedir}/src/main/resources/org.opendaylight.transportpce.nbinotifications.cfg</file>
+ <type>cfg</type>
+ <classifier>config</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifact</id>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${basedir}/src/main/resources/org.opendaylight.transportpce.cfg</file>
+ <type>cfg</type>
+ <classifier>config</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
package org.opendaylight.transportpce.olm;
import org.opendaylight.mdsal.binding.api.RpcProviderService;
-import org.opendaylight.transportpce.olm.service.OlmPowerService;
import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.TransportpceOlmService;
import org.opendaylight.yangtools.concepts.ObjectRegistration;
import org.slf4j.Logger;
public class OlmProvider {
private static final Logger LOG = LoggerFactory.getLogger(OlmProvider.class);
private final RpcProviderService rpcProviderService;
- private final OlmPowerService olmPowerService;
+ private final TransportpceOlmService olmPowerServiceRpc;
private ObjectRegistration<TransportpceOlmService> olmRPCRegistration;
/**
* Instantiates a new olm provider.
- * @param olmPowerService
- * implementation of OlmService
+ * @param olmPowerServiceRpc
+ * implementation of TransportpceOlmService
* @param rpcProviderService
* the rpc provider service
*/
- public OlmProvider(final RpcProviderService rpcProviderService, final OlmPowerService olmPowerService) {
+ public OlmProvider(final RpcProviderService rpcProviderService, final TransportpceOlmService olmPowerServiceRpc) {
this.rpcProviderService = rpcProviderService;
- this.olmPowerService = olmPowerService;
+ this.olmPowerServiceRpc = olmPowerServiceRpc;
}
/**
LOG.info("OlmProvider Session Initiated");
// Initializing Notification module
olmRPCRegistration = rpcProviderService.registerRpcImplementation(TransportpceOlmService.class,
- new OlmPowerServiceRpcImpl(this.olmPowerService));
+ this.olmPowerServiceRpc);
}
/**
interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
<reference id="mappingUtils" interface="org.opendaylight.transportpce.common.mapping.MappingUtils" />
- <bean id="olmPowerServiceImpl"
- class="org.opendaylight.transportpce.olm.service.OlmPowerServiceImpl"
- init-method="init" destroy-method="close">
+ <bean id="powerMgmt" class="org.opendaylight.transportpce.olm.power.PowerMgmtImpl" >
+ <argument ref="dataBroker" />
+ <argument ref="openRoadmInterfaces" />
+ <argument ref="crossConnect" />
+ <argument ref="deviceTransactionManager" />
+ <argument value="${timer1}"/>
+ <argument value="${timer2}"/>
+ </bean>
+
+ <bean id="olmPowerServiceImpl" class="org.opendaylight.transportpce.olm.service.OlmPowerServiceImpl">
<argument ref="dataBroker" />
<argument ref="powerMgmt" />
<argument ref="deviceTransactionManager" />
<argument ref="openRoadmInterfaces" />
</bean>
- <bean id="powerMgmt" class="org.opendaylight.transportpce.olm.power.PowerMgmtImpl" >
- <argument ref="dataBroker" />
- <argument ref="openRoadmInterfaces" />
- <argument ref="crossConnect" />
- <argument ref="deviceTransactionManager" />
- <argument value="${timer1}"/>
- <argument value="${timer2}"/>
+ <bean id="olmPowerServiceRpcImpl" class="org.opendaylight.transportpce.olm.OlmPowerServiceRpcImpl">
+ <argument ref="olmPowerServiceImpl" />
</bean>
- <bean id="provider"
- class="org.opendaylight.transportpce.olm.OlmProvider"
+ <bean id="provider" class="org.opendaylight.transportpce.olm.OlmProvider"
init-method="init" destroy-method="close">
<argument ref="rpcProviderService" />
- <argument ref="olmPowerServiceImpl" />
+ <argument ref="olmPowerServiceRpcImpl" />
</bean>
- <service ref="olmPowerServiceImpl"
- interface="org.opendaylight.transportpce.olm.service.OlmPowerService"/>
-</blueprint>
+ <service ref="olmPowerServiceRpcImpl"
+ interface="org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.TransportpceOlmService"/>
+ </blueprint>
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
odl:use-default-for-reference-types="true">
- <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
+ <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
<reference id="notificationPublishService"
interface="org.opendaylight.mdsal.binding.api.NotificationPublishService"/>
<reference id="rpcProviderService" interface="org.opendaylight.mdsal.binding.api.RpcProviderService" />
<reference id="crossConnect" interface="org.opendaylight.transportpce.common.crossconnect.CrossConnect" />
<reference id="mappingUtils" interface="org.opendaylight.transportpce.common.mapping.MappingUtils"/>
<reference id="networkModelService" interface="org.opendaylight.transportpce.networkmodel.service.NetworkModelService"/>
-
- <odl:rpc-service id="olmService"
- interface="org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.TransportpceOlmService"/>
+ <reference id="olmService" interface="org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.TransportpceOlmService"/>
<bean id="openRoadmInterface121"
class="org.opendaylight.transportpce.renderer.openroadminterface.OpenRoadmInterface121">
<service ref="serviceHandlerImpl"
interface="org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev211210.OrgOpenroadmServiceService"/>
-
<service ref="serviceDatastoreOperation"
- interface="org.opendaylight.transportpce.servicehandler.service.ServiceDataStoreOperations"/>
-
+ interface="org.opendaylight.transportpce.servicehandler.service.ServiceDataStoreOperations"/>
</blueprint>