<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<version>0.5.0-SNAPSHOT</version>
<packaging>bundle</packaging>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.6.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-api</artifactId>
+ </dependency>
+
<!-- Project Dependencies -->
<dependency>
<groupId>${project.groupId}</groupId>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<packaging>bundle</packaging>
<properties>
- <mdsal.version>1.6.0-SNAPSHOT</mdsal.version>
<l2switch.version>0.6.0-SNAPSHOT</l2switch.version>
</properties>
<artifactId>alto-service-model-costmap</artifactId>
<version>${project.version}</version>
</dependency>
-
+<!--
<dependency>
<groupId>org.opendaylight.controller.model</groupId>
<artifactId>model-topology</artifactId>
- <version>${mdsal.version}</version>
</dependency>
-
+-->
<dependency>
<groupId>org.opendaylight.l2switch.hosttracker</groupId>
<artifactId>hosttracker-model</artifactId>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<version>0.5.0-SNAPSHOT</version>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
-Copyright © 2015 Yale University and others. All rights reserved.
-
-This program and the accompanying materials are made available under the
-terms of the Eclipse Public License v1.0 which accompanies this distribution,
-and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<snapshot>
- <required-capabilities>
- <capability>urn:alto:manual:maps:impl?module=alto-manual-maps-impl&revision=2015-10-21</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
- <capability>urn:alto:northbound?module=alto-northbound&revision=2015-10-21</capability>
- </required-capabilities>
- <configuration>
-
- <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
- <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <module>
- <type xmlns:prefix="urn:alto:manual:maps:impl">prefix:alto-manual-maps</type>
- <name>alto-manual-maps-default</name>
- <broker>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
- <name>binding-osgi-broker</name>
- </broker>
- <alto-northbound-router>
- <type xmlns:alto-northbound-router="urn:alto:northbound">alto-northbound-router:alto-northbound-router</type>
- <name>alto-northbound-router</name>
- </alto-northbound-router>
- </module>
- </modules>
- </data>
- </configuration>
-</snapshot>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<metadata modelVersion="1.1.0">
- <groupId>org.opendaylight.alto.basic</groupId>
- <artifactId>alto-simple-ird-impl</artifactId>
- <version>0.2.1-SNAPSHOT</version>
- <versioning>
- <snapshot>
- <localCopy>true</localCopy>
- </snapshot>
- <lastUpdated>20151112013601</lastUpdated>
- <snapshotVersions>
- <snapshotVersion>
- <classifier>config</classifier>
- <extension>xml</extension>
- <value>0.2.1-SNAPSHOT</value>
- <updated>20151112013601</updated>
- </snapshotVersion>
- </snapshotVersions>
- </versioning>
-</metadata>
*/
package org.opendaylight.alto.basic.impl;
+import java.util.LinkedList;
+import java.util.List;
import org.opendaylight.alto.basic.manual.maps.ManualMapsUtils;
import org.opendaylight.alto.core.northbound.api.AltoNorthboundRoute;
import org.opendaylight.alto.core.northbound.api.AltoNorthboundRouter;
-
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
-import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
-
+import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RoutedRpcRegistration;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.config.rev151021.AltoModelConfigService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.costmap.rev151021.AltoModelCostmapService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.networkmap.rev151021.AltoModelNetworkmapService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.LinkedList;
-import java.util.List;
-
-public class AltoManualMapsProvider implements BindingAwareProvider, AutoCloseable {
+public class AltoManualMapsProvider implements AutoCloseable {
public static final String RESOURCE_CONFIG_ROUTE_NAME = "config";
public static final String RESOURCE_CONFIG_CONTEXT_NAME = "alto-manual-maps";
private static final Logger LOG = LoggerFactory.getLogger(AltoManualMapsProvider.class);
- private DataBroker dataBroker = null;
- private ManualMapsListener manualMapsListener = null;
- private BindingAwareBroker.RpcRegistration<AltoModelConfigService> altoModelConfigService = null;
- private BindingAwareBroker.RoutedRpcRegistration<AltoModelNetworkmapService> altoModelNetworkmapService = null;
- private BindingAwareBroker.RoutedRpcRegistration<AltoModelCostmapService> altoModelCostmapService = null;
+ private final DataBroker dataBroker;
+ private final AltoNorthboundRouter router;
+ private final ManualMapsListener manualMapsListener = new ManualMapsListener();
+ private final BindingAwareBroker.RoutedRpcRegistration<AltoModelNetworkmapService> altoModelNetworkmapService;
+ private final BindingAwareBroker.RoutedRpcRegistration<AltoModelCostmapService> altoModelCostmapService;
private AltoNorthboundRouter m_router = null;
private List<Uuid> m_contexts = null;
+ public AltoManualMapsProvider(DataBroker dataBroker,
+ AltoNorthboundRouter router,
+ RoutedRpcRegistration<AltoModelNetworkmapService> altoModelNetworkmapService,
+ RoutedRpcRegistration<AltoModelCostmapService> altoModelCostmapService) {
+ this.dataBroker = dataBroker;
+ this.router = router;
+ this.altoModelNetworkmapService = altoModelNetworkmapService;
+ this.altoModelCostmapService = altoModelCostmapService;
+ }
+
protected void setupListener() {
- manualMapsListener = new ManualMapsListener();
manualMapsListener.register(dataBroker);
manualMapsListener.setNetworkmapServiceReg(altoModelNetworkmapService);
manualMapsListener.setCostmapServiceReg(altoModelCostmapService);
}
protected void closeListener() throws Exception {
- if (manualMapsListener != null) {
- manualMapsListener.close();
- }
+ manualMapsListener.close();
}
protected void initializeConfigContext() throws Exception {
wx.submit().get();
}
- @Override
- public void onSessionInitiated(ProviderContext session) {
- LOG.info("AltoManualMapsProvider Session Initiated");
-
- dataBroker = session.getSALService(DataBroker.class);
- altoModelConfigService = session.addRpcImplementation(AltoModelConfigService.class,
- new AltoModelConfigImpl(dataBroker));
- altoModelNetworkmapService = session.addRoutedRpcImplementation(AltoModelNetworkmapService.class,
- new AltoManualNetworkmapServiceImpl(dataBroker));
- altoModelCostmapService = session.addRoutedRpcImplementation(AltoModelCostmapService.class,
- new AltoManualCostmapServiceImpl(dataBroker));
+ public void init() {
try {
setupListener();
initializeConfigContext();
} catch (Exception e) {
- LOG.error("Failed to create top-level containers");
- e.printStackTrace();
+ LOG.error("Failed to create top-level containers", e);
}
+
+ setupRoute();
+
+ LOG.info("AltoManualMapsProvider Session Initiated");
}
@Override
} catch (Exception e) {
LOG.error("Failed to remove route");
}
- if (altoModelConfigService != null) {
- altoModelConfigService.close();
- }
- if (altoModelNetworkmapService != null) {
- altoModelNetworkmapService.close();
- }
- if (altoModelCostmapService != null) {
- altoModelCostmapService.close();
- }
+
LOG.info("AltoManualMapsProvider Closed");
}
- public void setupRoute(AltoNorthboundRouter router) {
+ private void setupRoute() {
AltoNorthboundRoute route = new ManualMapsRoute(this);
String base_url = router.addRoute(RESOURCE_CONFIG_ROUTE_NAME, route);
if (base_url == null) {
+++ /dev/null
-package org.opendaylight.yang.gen.v1.urn.alto.manual.maps.impl.rev151021;
-
-import org.opendaylight.alto.basic.impl.AltoManualMapsProvider;
-
-public class AltoManualMapsModule extends AbstractAltoManualMapsModule {
- public AltoManualMapsModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public AltoManualMapsModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, AltoManualMapsModule oldModule, java.lang.AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- @Override
- public void customValidation() {
- // add custom validation form module attributes here.
- }
-
- @Override
- public java.lang.AutoCloseable createInstance() {
- final AltoManualMapsProvider provider = new AltoManualMapsProvider();
-
- try {
- getBrokerDependency().registerProvider(provider);
- provider.setupRoute(getAltoNorthboundRouterDependency());
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- return provider;
- }
-
-}
+++ /dev/null
-/*
-* Generated file
-*
-* Generated from: yang module name: alto-manual-maps-impl yang module local name: alto-manual-maps
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Wed Nov 11 21:58:28 CST 2015
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.yang.gen.v1.urn.alto.manual.maps.impl.rev151021;
-public class AltoManualMapsModuleFactory extends AbstractAltoManualMapsModuleFactory {
-
-}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ odl:use-default-for-reference-types="true">
+
+ <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
+ <reference id="altoNorthboundRouter" interface="org.opendaylight.alto.core.northbound.api.AltoNorthboundRouter"/>
+
+ <bean id="altoModelConfig" class="org.opendaylight.alto.basic.impl.AltoModelConfigImpl">
+ <argument ref="dataBroker"/>
+ </bean>
+
+ <odl:rpc-implementation ref="altoModelConfig"/>
+
+ <bean id="altoManualCostmapService" class="org.opendaylight.alto.basic.impl.AltoManualCostmapServiceImpl">
+ <argument ref="dataBroker"/>
+ </bean>
+
+ <odl:routed-rpc-implementation id="altoManualCostmapServiceReg" ref="altoManualCostmapService"/>
+
+ <bean id="altoManualNetworkmapService" class="org.opendaylight.alto.basic.impl.AltoManualNetworkmapServiceImpl">
+ <argument ref="dataBroker"/>
+ </bean>
+
+ <odl:routed-rpc-implementation id="altoManualNetworkmapServiceReg" ref="altoManualNetworkmapService"/>
+
+ <bean id="altoManualMapsProvider" class="org.opendaylight.alto.basic.impl.AltoManualMapsProvider"
+ init-method="init" destroy-method="close">
+ <argument ref="dataBroker"/>
+ <argument ref="altoNorthboundRouter"/>
+ <argument ref="altoManualNetworkmapServiceReg"/>
+ <argument ref="altoManualCostmapServiceReg"/>
+ </bean>
+</blueprint>
+++ /dev/null
-module alto-manual-maps-impl {
- yang-version 1;
- namespace "urn:alto:manual:maps:impl";
- prefix "alto-manual-maps";
-
- import alto-northbound { prefix alto-northbound; revision-date 2015-10-21; }
- import config { prefix config; revision-date 2013-04-05; }
- import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
-
- description
- "Service definition for alto-manual-maps project";
-
- revision "2015-10-21" {
- description
- "Initial revision";
- }
-
- identity alto-manual-maps {
- base config:module-type;
- config:java-name-prefix AltoManualMaps;
- }
-
- augment "/config:modules/config:module/config:configuration" {
- case alto-manual-maps {
- when "/config:modules/config:module/config:type = 'alto-manual-maps'";
- container broker {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity md-sal-binding:binding-broker-osgi-registry;
- }
- }
- }
-
- container alto-northbound-router {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity alto-northbound:alto-northbound-router;
- }
- }
- }
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-/*
- * Copyright © 2015 Yale University and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yang.gen.v1.urn.alto.manual.maps.impl.rev151021;
-
-import org.junit.Test;
-
-public class AltoManualMapsModuleFactoryTest {
- @Test
- public void testFactoryConstructor() {
- // ensure no exceptions on construction
- new AltoManualMapsModuleFactory();
- }
-}
+++ /dev/null
-/*
- * Copyright © 2015 Yale University and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yang.gen.v1.urn.alto.manual.maps.impl.rev151021;
-
-import org.junit.Test;
-import org.opendaylight.alto.basic.impl.AltoManualMapsProvider;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-
-public class AltoManualMapsModuleTest {
- @Test
- public void testCustomValidation() {
- //TODO
- }
-
- @Test
- public void testCreateInstance() throws Exception {
- //TODO
- }
-}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<version>0.6.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.controller.model</groupId>
- <artifactId>model-inventory</artifactId>
- <version>${mdsal.version}</version>
- <type>jar</type>
- </dependency>
-
<dependency>
<groupId>org.opendaylight.openflowplugin.model</groupId>
<artifactId>model-flow-statistics</artifactId>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
-Copyright © 2015 Yale University and others. All rights reserved.
-
-This program and the accompanying materials are made available under the
-terms of the Eclipse Public License v1.0 which accompanies this distribution,
-and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<snapshot>
- <required-capabilities>
- <capability>urn:opendaylight:params:xml:ns:yang:endpointcostservice:impl?module=endpointcostservice-impl&revision=2014-12-10</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
- </required-capabilities>
- <configuration>
-
- <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
- <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <module>
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:endpointcostservice:impl">prefix:endpointcostservice</type>
- <name>endpointcostservice-default</name>
- <broker>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
- <name>binding-osgi-broker</name>
- </broker>
- </module>
- </modules>
- </data>
- </configuration>
-</snapshot>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<metadata modelVersion="1.1.0">
- <groupId>org.opendaylight.alto.basic.endpointcostservice</groupId>
- <artifactId>endpointcostservice-impl</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- <versioning>
- <snapshot>
- <localCopy>true</localCopy>
- </snapshot>
- <lastUpdated>20151224114708</lastUpdated>
- <snapshotVersions>
- <snapshotVersion>
- <classifier>config</classifier>
- <extension>xml</extension>
- <value>1.0.1-SNAPSHOT</value>
- <updated>20151224114708</updated>
- </snapshotVersion>
- </snapshotVersions>
- </versioning>
-</metadata>
--- /dev/null
+/*
+ * Copyright (c) 2017 Inocybe Technologies and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.alto.basic.endpointcostservice.impl;
+
+import java.util.concurrent.Future;
+import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.AltoModelEndpointcostService;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.QueryInput;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.QueryOutput;
+import org.opendaylight.yangtools.yang.common.RpcResult;
+
+public class AltoModelEndpointcostServiceImpl implements AltoModelEndpointcostService {
+
+ private final BasicECSImplementation basicEcsImpl;
+
+ public AltoModelEndpointcostServiceImpl(DataBroker dataBroker) {
+ basicEcsImpl = new BasicECSImplementation(dataBroker);
+ }
+
+
+ @Override
+ public Future<RpcResult<QueryOutput>> query(QueryInput input) {
+ return basicEcsImpl.getECS(input);
+ }
+}
*/
package org.opendaylight.alto.basic.endpointcostservice.impl;
+import java.util.concurrent.ExecutionException;
import org.opendaylight.alto.core.resourcepool.ResourcepoolUtils;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.binding.api.DataChangeListener;
import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
-import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
+import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RoutedRpcRegistration;
import org.opendaylight.yang.gen.v1.urn.alto.resourcepool.rev150921.context.Resource;
import org.opendaylight.yang.gen.v1.urn.alto.types.rev150921.ResourceId;
import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.AltoModelEndpointcostService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.QueryInput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.QueryOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.model.endpointcost.rev151021.ResourceTypeEndpointcost;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import org.opendaylight.yangtools.yang.common.RpcResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-
-public class EndpointcostserviceProvider implements BindingAwareProvider, AutoCloseable,AltoModelEndpointcostService {
+public class EndpointcostserviceProvider implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(EndpointcostserviceProvider.class);
- private DataBroker m_dataBroker = null;
- private BindingAwareBroker.RoutedRpcRegistration<AltoModelEndpointcostService> m_serviceReg = null;
- private ListenerRegistration<DataChangeListener> m_listener = null;
+ private final DataBroker m_dataBroker;
+ private final BindingAwareBroker.RoutedRpcRegistration<AltoModelEndpointcostService> m_serviceReg;
+ private ListenerRegistration<DataChangeListener> m_listener;
private static final String SERVICE_ENDPOINTCOST_NAME = "service-endpointcost";
private static final ResourceId SERVICE_ENDPOINTCOST_RID = new ResourceId(SERVICE_ENDPOINTCOST_NAME);
- private InstanceIdentifier<Resource> m_testIID = null;
+ private final InstanceIdentifier<Resource> m_testIID = ResourcepoolUtils.getResourceIID(ResourcepoolUtils.DEFAULT_CONTEXT,
+ SERVICE_ENDPOINTCOST_NAME);
- private BasicECSImplementation basicEcsImpl;
+ public EndpointcostserviceProvider(DataBroker m_dataBroker,
+ RoutedRpcRegistration<AltoModelEndpointcostService> m_serviceReg) {
+ this.m_dataBroker = m_dataBroker;
+ this.m_serviceReg = m_serviceReg;
+ }
protected void createContextTag()
throws InterruptedException, ExecutionException, TransactionCommitFailedException {
assert m_listener != null;
}
- @Override
- public void onSessionInitiated(ProviderContext session) {
- LOG.info("EndpointcostserviceProvider Session Initiated");
-
- m_dataBroker = session.getSALService(DataBroker.class);
- m_testIID = ResourcepoolUtils.getResourceIID(ResourcepoolUtils.DEFAULT_CONTEXT,
- SERVICE_ENDPOINTCOST_NAME);
- m_serviceReg = session.addRoutedRpcImplementation(AltoModelEndpointcostService.class, this);
- basicEcsImpl = new BasicECSImplementation(m_dataBroker);
+ public void init() {
try {
setupListener();
createContextTag();
} catch (Exception e) {
+ LOG.error("Failed to initialize", e);
}
+
+ LOG.info("EndpointcostserviceProvider Session Initiated");
}
@Override
public void close() throws Exception {
- LOG.info("EndpointcostserviceProvider Closed");
-
- if (m_serviceReg != null) {
- m_serviceReg.close();
- }
try {
removeContextTag();
} catch (Exception e) {
+ LOG.debug("Error remocing context tag", e);
}
- }
- @Override
- public Future<RpcResult<QueryOutput>> query(QueryInput input) {
- return basicEcsImpl.getECS(input);
+ LOG.info("EndpointcostserviceProvider Closed");
}
-
}
*/
package org.opendaylight.alto.basic.endpointcostservice.suportservice.impl;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import org.opendaylight.alto.basic.endpointcostservice.helper.DataStoreHelper;
import org.opendaylight.alto.basic.endpointcostservice.suportservice.exception.ReadDataFailedException;
import org.opendaylight.alto.basic.endpointcostservice.suportservice.service.LinkService;
import org.opendaylight.alto.basic.endpointcostservice.suportservice.service.NetworkElementService;
import org.opendaylight.alto.basic.endpointcostservice.suportservice.service.NetworkFlowCapableNodeService;
import org.opendaylight.alto.basic.endpointcostservice.suportservice.service.NetworkHostNodeService;
-import org.opendaylight.alto.basic.endpointcostservice.helper.DataStoreHelper;
import org.opendaylight.alto.basic.endpointcostservice.util.InstanceIdentifierUtils;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.binding.api.DataChangeListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
public class NetworkElementImpl implements NetworkElementService, DataChangeListener, AutoCloseable {
private static final Logger log = LoggerFactory
.getLogger(NetworkElementImpl.class);
private static final int CPUS = Runtime.getRuntime().availableProcessors();
- private ExecutorService exec = Executors.newFixedThreadPool(CPUS);
+ private final ExecutorService exec = Executors.newFixedThreadPool(CPUS);
- private DataBroker dataBroker;
+ private final DataBroker dataBroker;
private ListenerRegistration<DataChangeListener> hostNodeListRegistration;
private ListenerRegistration<DataChangeListener> linkListRegistration;
- private NetworkHostNodeService hostNodeService;
- private LinkService linkService;
- private NetworkFlowCapableNodeService flowCapableNodeService;
+ private final NetworkHostNodeService hostNodeService;
+ private final LinkService linkService;
+ private final NetworkFlowCapableNodeService flowCapableNodeService;
public NetworkElementImpl(DataBroker dataBroker) {
addExistingHostNodes(topology);
addExistingLinks(topology);
} catch (ReadDataFailedException e) {
- e.printMessage("Read topology failed");
- e.printStackTrace();
+ log.error("Read topology failed", e);
}
}
private void addExistingHostNodes(Topology topology) {
+++ /dev/null
-/*
- * Copyright © 2015 Yale University and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210;
-
-import org.opendaylight.alto.basic.endpointcostservice.impl.EndpointcostserviceProvider;
-
-
-public class EndpointcostserviceModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210.AbstractEndpointcostserviceModule {
- public EndpointcostserviceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public EndpointcostserviceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210.EndpointcostserviceModule oldModule, java.lang.AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- @Override
- public void customValidation() {
- // add custom validation form module attributes here.
- }
-
- @Override
- public java.lang.AutoCloseable createInstance() {
- final EndpointcostserviceProvider provider = new EndpointcostserviceProvider();
- try {
- getBrokerDependency().registerProvider(provider);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- return provider;
- }
-
-}
+++ /dev/null
-/*
- * Copyright © 2015 Yale University and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-/*
-* Generated file
-*
-* Generated from: yang module name: endpointcostservice yang module local name: endpointcostservice
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Fri Jan 02 13:49:24 CST 2015
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210;
-public class EndpointcostserviceModuleFactory extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210.AbstractEndpointcostserviceModuleFactory {
-
-}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ odl:use-default-for-reference-types="true">
+
+ <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
+
+ <bean id="altoModelEndpointcostService"
+ class="org.opendaylight.alto.basic.endpointcostservice.impl.AltoModelEndpointcostServiceImpl">
+ <argument ref="dataBroker"/>
+ </bean>
+
+ <odl:routed-rpc-implementation id="altoModelEndpointcostServiceReg" ref="altoModelEndpointcostService"/>
+
+ <bean id="endpointcostserviceProvider" class="org.opendaylight.alto.basic.endpointcostservice.impl.EndpointcostserviceProvider"
+ init-method="init" destroy-method="close">
+ <argument ref="dataBroker"/>
+ <argument ref="altoModelEndpointcostServiceReg"/>
+ </bean>
+</blueprint>
+++ /dev/null
-module endpointcostservice-impl {
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:endpointcostservice:impl";
- prefix "endpointcostservice-impl";
-
- import config { prefix config; revision-date 2013-04-05; }
- import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
-
- description
- "Service definition for endpointcostservice project";
-
- revision "2014-12-10" {
- description
- "Initial revision";
- }
-
- identity endpointcostservice {
- base config:module-type;
- config:java-name-prefix Endpointcostservice;
- }
-
- augment "/config:modules/config:module/config:configuration" {
- case endpointcostservice {
- when "/config:modules/config:module/config:type = 'endpointcostservice'";
- container broker {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity md-sal-binding:binding-broker-osgi-registry;
- }
- }
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright © 2015 Yale University and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210;
-
-import org.junit.Test;
-
-public class EndpointcostserviceModuleFactoryTest {
- @Test
- public void testFactoryConstructor() {
- // ensure no exceptions on construction
- new EndpointcostserviceModuleFactory();
- }
-}
+++ /dev/null
-/*
- * Copyright © 2015 Yale University and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.endpointcostservice.impl.rev141210;
-
-import org.junit.Test;
-import org.opendaylight.controller.config.api.DependencyResolver;
-import org.opendaylight.controller.config.api.JmxAttribute;
-import org.opendaylight.controller.config.api.ModuleIdentifier;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-import org.opendaylight.alto.basic.endpointcostservice.impl.EndpointcostserviceProvider;
-
-import javax.management.ObjectName;
-
-import static org.mockito.Matchers.any;
-import static org.mockito.Matchers.eq;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-public class EndpointcostserviceModuleTest {
- @Test
- public void testCustomValidation() {
- EndpointcostserviceModule module = new EndpointcostserviceModule(mock(ModuleIdentifier.class), mock(DependencyResolver.class));
-
- // ensure no exceptions on validation
- // currently this method is empty
- module.customValidation();
- }
-
- @Test
- public void testCreateInstance() throws Exception {
- // configure mocks
- DependencyResolver dependencyResolver = mock(DependencyResolver.class);
- BindingAwareBroker broker = mock(BindingAwareBroker.class);
- when(dependencyResolver.resolveInstance(eq(BindingAwareBroker.class), any(ObjectName.class), any(JmxAttribute.class))).thenReturn(broker);
-
- // create instance of module with injected mocks
- EndpointcostserviceModule module = new EndpointcostserviceModule(mock(ModuleIdentifier.class), dependencyResolver);
-
- // getInstance calls resolveInstance to get the broker dependency and then calls createInstance
- AutoCloseable closeable = module.getInstance();
-
- // verify that the module registered the returned provider with the broker
- verify(broker).registerProvider((EndpointcostserviceProvider)closeable);
-
- // ensure no exceptions on close
- closeable.close();
- }
-}
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>bundle-parent</artifactId>
+ <version>2.0.2</version>
<relativePath/>
</parent>
+++ /dev/null
-module alto-northbound {
- yang-version 1;
-
- namespace "urn:alto:northbound";
-
- prefix "alto-northbound";
-
- import config { prefix config; revision-date 2013-04-05; }
-
- organization "Yale University";
-
- contact "alto-dev@lists.opendaylight.org";
-
- revision "2015-10-21" {
- description "Initial revision of alto-northbound model";
- }
-
- identity alto-northbound-router {
- base "config:service-type";
- config:java-class "org.opendaylight.alto.core.northbound.api.AltoNorthboundRouter";
- }
-
- identity alto-northbound-route {
- base "config:service-type";
- config:java-class "org.opendaylight.alto.core.northbound.api.AltoNorthboundRoute";
- }
-
-}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
-
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>alto-northbound-api</artifactId>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
prefix "alto-nbr-costmap";
- import config { prefix config; revision-date 2013-04-05; }
import ietf-inet-types { prefix ietf-inet; revision-date 2013-07-15; }
import alto-model-costmap { prefix costmap-model; revision-date 2015-10-21; }
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
-
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>alto-northbound-api</artifactId>
prefix "alto-nbr-endpointcost";
- import config { prefix config; revision-date 2013-04-05; }
import ietf-inet-types { prefix ietf-inet; revision-date 2013-07-15; }
import alto-model-endpointcost { prefix endpointcost-model; revision-date 2015-10-21; }
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
-
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>alto-northbound-api</artifactId>
namespace "urn:alto:northbound:route:endpointproperty";
prefix "alto-nbr-endpointproperty";
- import config { prefix config; revision-date 2013-04-05; }
import ietf-inet-types { prefix ietf-inet; revision-date 2013-07-15; }
organization "Yale University";
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
-
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>alto-northbound-api</artifactId>
prefix "alto-nbr-networkmap";
- import config { prefix config; revision-date 2013-04-05; }
import ietf-inet-types { prefix ietf-inet; revision-date 2013-07-15; }
import alto-model-networkmap { prefix networkmap-model; revision-date 2015-10-21; }
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
-
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>alto-northbound-api</artifactId>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.6.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-api</artifactId>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>incremental-update-api</artifactId>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.6.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-api</artifactId>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>multicost-api</artifactId>
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.6.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-api</artifactId>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rsade-api</artifactId>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<properties>
<openflow.plugin.version>0.5.0-SNAPSHOT</openflow.plugin.version>
- <mdsal.version>1.6.0-SNAPSHOT</mdsal.version>
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.6.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<dependency>
<groupId>org.opendaylight.controller.model</groupId>
<artifactId>model-topology</artifactId>
- <version>${mdsal.version}</version>
</dependency>
<!-- Testing Dependencies -->
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
-Copyright © 2015 Copyright (c) 2015 Tongji University and others. All rights reserved.
-
-This program and the accompanying materials are made available under the
-terms of the Eclipse Public License v1.0 which accompanies this distribution,
-and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<snapshot>
- <required-capabilities>
- <capability>urn:opendaylight:alto:spce:impl?module=alto-spce-impl&revision=2014-12-10</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
- </required-capabilities>
- <configuration>
-
- <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
- <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <module>
- <type xmlns:prefix="urn:opendaylight:alto:spce:impl">prefix:alto-spce</type>
- <name>alto-spce-default</name>
- <broker>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
- <name>binding-osgi-broker</name>
- </broker>
- </module>
- </modules>
- </data>
- </configuration>
-</snapshot>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<metadata modelVersion="1.1.0">
- <groupId>org.opendaylight.alto.ext</groupId>
- <artifactId>alto-spce-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <versioning>
- <snapshot>
- <localCopy>true</localCopy>
- </snapshot>
- <lastUpdated>20151107031204</lastUpdated>
- <snapshotVersions>
- <snapshotVersion>
- <classifier>config</classifier>
- <extension>xml</extension>
- <value>1.0.0-SNAPSHOT</value>
- <updated>20151107031204</updated>
- </snapshotVersion>
- </snapshotVersions>
- </versioning>
-</metadata>
+++ /dev/null
-/*
- * Copyright (c) 2015 SNLAB and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.alto.spce.impl;
-
-import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
-import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
-/*import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.rev151106.AltoSpceService;*/
-import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.rev160718.AltoSpceService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.NetworkTrackerService;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class AltoSpceProvider implements BindingAwareProvider, AutoCloseable {
-
- private static final Logger LOG = LoggerFactory.getLogger(AltoSpceProvider.class);
- private RpcRegistration<AltoSpceService> altoSpceService;
-
- @Override
- public void onSessionInitiated(ProviderContext session) {
- LOG.info("AltoSpceProvider Session Initiated!");
- SalFlowService salFlowService = session.getRpcService(SalFlowService.class);
- SalMeterService salMeterServer = session.getRpcService(SalMeterService.class);
- NetworkTrackerService networkTrackerService = session.getRpcService(NetworkTrackerService.class);
- DataBroker dataBroker = session.getSALService(DataBroker.class);
- altoSpceService = session.addRpcImplementation(AltoSpceService.class, new AltoSpceImpl(salMeterServer,networkTrackerService, dataBroker));
- }
-
- @Override
- public void close() throws Exception {
- LOG.info("AltoSpceProvider Closed!");
- if (altoSpceService != null) {
- altoSpceService.close();
- }
- }
-}
+++ /dev/null
-package org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.rev141210;
-
-import org.opendaylight.alto.spce.impl.AltoSpceProvider;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-
-public class AltoSpceModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.rev141210.AbstractAltoSpceModule {
- public AltoSpceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public AltoSpceModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.rev141210.AltoSpceModule oldModule, java.lang.AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- @Override
- public void customValidation() {
- // add custom validation form module attributes here.
- }
-
- @Override
- public java.lang.AutoCloseable createInstance() {
- AltoSpceProvider provider = new AltoSpceProvider();
- BindingAwareBroker broker = getBrokerDependency();
- broker.registerProvider(provider);
- return provider;
- }
-
-}
+++ /dev/null
-/*
-* Generated file
-*
-* Generated from: yang module name: alto-spce-impl yang module local name: alto-spce
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Sat Nov 07 17:59:08 CST 2015
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.rev141210;
-public class AltoSpceModuleFactory extends org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.rev141210.AbstractAltoSpceModuleFactory {
-
-}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ odl:use-default-for-reference-types="true">
+
+ <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
+
+ <odl:rpc-service id="salMeterService"
+ interface="org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService"/>
+
+ <odl:rpc-service id="networkTrackerService"
+ interface="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.NetworkTrackerService"/>
+
+ <bean id="altoSpceImpl" class="org.opendaylight.alto.spce.impl.AltoSpceImpl">
+ <argument ref="salMeterService"/>
+ <argument ref="networkTrackerService"/>
+ <argument ref="dataBroker"/>
+ </bean>
+
+ <odl:rpc-implementation ref="altoSpceImpl"/>
+</blueprint>
+++ /dev/null
-module alto-spce-impl {
- yang-version 1;
- namespace "urn:opendaylight:alto:spce:impl";
- prefix "alto-spce-impl";
-
- import config { prefix config; revision-date 2013-04-05; }
- import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
-
- description
- "Service definition for alto-spce project";
-
- revision "2014-12-10" {
- description
- "Initial revision";
- }
-
- identity alto-spce {
- base config:module-type;
- config:java-name-prefix AltoSpce;
- }
-
- augment "/config:modules/config:module/config:configuration" {
- case alto-spce {
- when "/config:modules/config:module/config:type = 'alto-spce'";
- container broker {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity md-sal-binding:binding-broker-osgi-registry;
- }
- }
- }
- }
- }
-}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
- <relativePath/>
- </parent>
-
<groupId>org.opendaylight.alto.spce.network</groupId>
<artifactId>network-tracker-config</artifactId>
<version>0.5.0-SNAPSHOT</version>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath/>
</parent>
<version>0.5.0-SNAPSHOT</version>
<name>ODL :: alto :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.6.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<dependency>
<groupId>org.opendaylight.controller.model</groupId>
<artifactId>model-inventory</artifactId>
- <type>jar</type>
</dependency>
<dependency>
<groupId>org.opendaylight.l2switch.addresstracker</groupId>
<artifactId>addresstracker-model</artifactId>
<version>${l2switch.version}</version>
- <type>jar</type>
</dependency>
<dependency>
<groupId>org.opendaylight.l2switch.hosttracker</groupId>
<artifactId>hosttracker-model</artifactId>
<version>${l2switch.version}</version>
- <type>jar</type>
</dependency>
<dependency>
<groupId>org.opendaylight.l2switch.loopremover</groupId>
<artifactId>loopremover-impl</artifactId>
<version>${l2switch.version}</version>
- <type>jar</type>
</dependency>
</dependencies>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
-Copyright © 2015 Tongji University and others. All rights reserved.
-
-This program and the accompanying materials are made available under the
-terms of the Eclipse Public License v1.0 which accompanies this distribution,
-and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<snapshot>
- <required-capabilities>
- <capability>urn:opendaylight:alto:spce:impl:network-tracker:impl?module=network-tracker-impl&revision=2014-12-10</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
- </required-capabilities>
- <configuration>
-
- <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
- <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <module>
- <type xmlns:prefix="urn:opendaylight:alto:spce:impl:network-tracker:impl">prefix:network-tracker</type>
- <name>network-tracker-default</name>
- <broker>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
- <name>binding-osgi-broker</name>
- </broker>
- </module>
- </modules>
- </data>
- </configuration>
-</snapshot>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<metadata modelVersion="1.1.0">
- <groupId>org.opendaylight.alto.spce.network</groupId>
- <artifactId>network-tracker-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <versioning>
- <snapshot>
- <localCopy>true</localCopy>
- </snapshot>
- <lastUpdated>20151107084951</lastUpdated>
- <snapshotVersions>
- <snapshotVersion>
- <classifier>config</classifier>
- <extension>xml</extension>
- <value>1.0.0-SNAPSHOT</value>
- <updated>20151107084951</updated>
- </snapshotVersion>
- </snapshotVersions>
- </versioning>
-</metadata>
+++ /dev/null
-/*
- * Copyright (c) 2015 SNLAB and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.alto.spce.network.impl;
-
-import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
-import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.NetworkTrackerService;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class NetworkTrackerProvider implements BindingAwareProvider, AutoCloseable {
-
- private static final Logger LOG = LoggerFactory.getLogger(NetworkTrackerProvider.class);
- private DataBroker dataBroker;
- private NetworkTrackerRpcHandler networkTrackerRpcHandler;
- private RpcRegistration<NetworkTrackerService> networkTrackerService;
-
- @Override
- public void onSessionInitiated(ProviderContext session) {
- LOG.info("NetworkTrackerProvider Session Initiated");
- dataBroker = session.getSALService(DataBroker.class);
- networkTrackerRpcHandler = new NetworkTrackerRpcHandler(dataBroker);
- networkTrackerService = session.addRpcImplementation(NetworkTrackerService.class, networkTrackerRpcHandler);
- }
-
- @Override
- public void close() throws Exception {
- LOG.info("NetworkTrackerProvider Closed");
- }
-
-}
*/
package org.opendaylight.alto.spce.network.impl;
+import java.math.BigInteger;
+import java.util.concurrent.Future;
import org.opendaylight.alto.spce.network.api.AddressConvertService;
import org.opendaylight.alto.spce.network.api.NetworkPortStatisticsService;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.AltoSpceGetIpByMacInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.AltoSpceGetIpByMacOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.AltoSpceGetIpByMacOutputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.AltoSpceGetTxSpeedOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.AltoSpceGetTxSpeedOutputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.tracker.rev151107.NetworkTrackerService;
-
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.math.BigInteger;
-import java.util.concurrent.Future;
-
public class NetworkTrackerRpcHandler implements NetworkTrackerService {
private static final Logger logger = LoggerFactory
.getLogger(NetworkTrackerRpcHandler.class);
private DataBroker dataBroker = null;
- private NetworkPortStatisticsService networkPortStatisticsService;
- private AddressConvertService addressConvertService;
+ private final NetworkPortStatisticsService networkPortStatisticsService;
+ private final AddressConvertService addressConvertService;
- NetworkTrackerRpcHandler(DataBroker dataBroker) {
+ public NetworkTrackerRpcHandler(DataBroker dataBroker) {
this.dataBroker = dataBroker;
this.networkPortStatisticsService = new NetworkPortStatisticsServiceImpl(this.dataBroker);
this.addressConvertService = new AddressConvertServiceImpl(this.dataBroker);
+++ /dev/null
-package org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.network.tracker.impl.rev141210;
-
-import org.opendaylight.alto.spce.network.impl.NetworkTrackerProvider;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-
-public class NetworkTrackerModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.network.tracker.impl.rev141210.AbstractNetworkTrackerModule {
- public NetworkTrackerModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public NetworkTrackerModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.network.tracker.impl.rev141210.NetworkTrackerModule oldModule, java.lang.AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- @Override
- public void customValidation() {
- // add custom validation form module attributes here.
- }
-
- @Override
- public java.lang.AutoCloseable createInstance() {
- // TODO:implement
- // throw new java.lang.UnsupportedOperationException();
- BindingAwareBroker broker = getBrokerDependency();
- NetworkTrackerProvider provider = new NetworkTrackerProvider();
- broker.registerProvider(provider);
- return provider;
- }
-
-}
+++ /dev/null
-/*
-* Generated file
-*
-* Generated from: yang module name: network-tracker-impl yang module local name: network-tracker
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Sat Nov 07 21:31:25 CST 2015
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.network.tracker.impl.rev141210;
-public class NetworkTrackerModuleFactory extends org.opendaylight.yang.gen.v1.urn.opendaylight.alto.spce.impl.network.tracker.impl.rev141210.AbstractNetworkTrackerModuleFactory {
-
-}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ odl:use-default-for-reference-types="true">
+
+ <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
+
+ <bean id="networkTrackerRpcHandler" class="org.opendaylight.alto.spce.network.impl.NetworkTrackerRpcHandler">
+ <argument ref="dataBroker"/>
+ </bean>
+
+ <odl:rpc-implementation ref="networkTrackerRpcHandler"/>
+</blueprint>
+++ /dev/null
-module network-tracker-impl {
- yang-version 1;
- namespace "urn:opendaylight:alto:spce:impl:network-tracker:impl";
- prefix "network-tracker-impl";
-
- import config { prefix config; revision-date 2013-04-05; }
- import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
-
- description
- "Service definition for network-tracker project";
-
- revision "2014-12-10" {
- description
- "Initial revision";
- }
-
- identity network-tracker {
- base config:module-type;
- config:java-name-prefix NetworkTracker;
- }
-
- augment "/config:modules/config:module/config:configuration" {
- case network-tracker {
- when "/config:modules/config:module/config:type = 'network-tracker'";
- container broker {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity md-sal-binding:binding-broker-osgi-registry;
- }
- }
- }
- }
- }
-}
<version>${project.version}</version>
<classifier>features</classifier>
<type>xml</type>
+ <scope>runtime</scope>
</dependency>
</dependencies>
<!-- DO NOT install or deploy the karaf artifact -->
<mdsal.groupId>org.opendaylight.controller</mdsal.groupId>
<mdsal.model.version>0.11.0-SNAPSHOT</mdsal.model.version>
<mdsal.version>1.6.0-SNAPSHOT</mdsal.version>
- <configfile.directory>etc/opendaylight/karaf</configfile.directory>
</properties>
<dependencies>
<artifactId>alto-manual-maps-impl</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.alto.basic</groupId>
- <artifactId>alto-manual-maps-impl</artifactId>
- <version>${project.version}</version>
- <classifier>config</classifier>
- <type>xml</type>
- </dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<features name="odl-alto-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">
<feature name="odl-alto-manual-maps" version="${project.version}">
- <configfile finalname="${configfile.directory}/alto-manual-maps.xml"> mvn:org.opendaylight.alto.basic/alto-manual-maps-impl/${project.version}/xml/config </configfile>
</feature>
</features>
<artifactId>alto-simple-ecs-impl</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.alto.basic</groupId>
- <artifactId>alto-simple-ecs-impl</artifactId>
- <version>${project.version}</version>
- <classifier>config</classifier>
- <type>xml</type>
- </dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<features name="odl-alto-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">
<feature name="odl-alto-simpleecs" version="${project.version}">
- <configfile finalname="${configfile.directory}/alto-simpleecs.xml"> mvn:org.opendaylight.alto.basic/alto-simple-ecs-impl/${project.version}/xml/config </configfile>
</feature>
</features>
<openflow.plugin.groupId>org.opendaylight.openflowplugin</openflow.plugin.groupId>
<mdsal.model.version>0.11.0-SNAPSHOT</mdsal.model.version>
<mdsal.version>1.6.0-SNAPSHOT</mdsal.version>
- <configfile.directory>etc/opendaylight/karaf</configfile.directory>
<l2switch.version>0.6.0-SNAPSHOT</l2switch.version>
<openflow.plugin.version>0.5.0-SNAPSHOT</openflow.plugin.version>
</properties>
<artifactId>network-tracker-impl</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.alto.spce.network</groupId>
- <artifactId>network-tracker-impl</artifactId>
- <version>${project.version}</version>
- <classifier>config</classifier>
- <type>xml</type>
- </dependency>
<dependency>
<groupId>org.opendaylight.alto.ext</groupId>
<artifactId>alto-spce-api</artifactId>
<artifactId>alto-spce-impl</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.alto.ext</groupId>
- <artifactId>alto-spce-impl</artifactId>
- <version>${project.version}</version>
- <classifier>config</classifier>
- <type>xml</type>
- </dependency>
<!-- FIXME: Replace with odl-alto-spce from alto-spce-features feature repository. -->
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<features name="odl-alto-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">
<feature name="odl-alto-spce" version="${project.version}">
- <configfile finalname="${configfile.directory}/network-tracker.xml"> mvn:org.opendaylight.alto.spce.network/network-tracker-impl/${project.version}/xml/config </configfile>
- <configfile finalname="${configfile.directory}/alto-spce.xml"> mvn:org.opendaylight.alto.ext/alto-spce-impl/${project.version}/xml/config </configfile>
</feature>
</features>