*~
target
+target-ide
**/target
/coordinator/build/config.mk
/coordinator/core/build/config.mk
<!-- OpenDaylight artifacts -->
<odl.controller.mdsal.version>1.7.0-SNAPSHOT</odl.controller.mdsal.version>
- <odl.config.version>0.8.0-SNAPSHOT</odl.config.version>
<odl.yangtools.version>2.0.0-SNAPSHOT</odl.yangtools.version>
<odl.mdsal.version>2.4.0-SNAPSHOT</odl.mdsal.version>
<odl.mdsal.model.version>0.12.0-SNAPSHOT</odl.mdsal.model.version>
<version>${odl.controller.mdsal.version}</version>
</dependency>
- <!-- OpenDaylight config subsystem -->
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-artifacts</artifactId>
- <version>${odl.config.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
<!-- OpenDaylight YANG Tools -->
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
${project.build.directory}/generated-sources
</vtn.build.generated-sources>
<salGeneratorPath>${vtn.build.generated-sources}/sal</salGeneratorPath>
- <jmxGeneratorPath>${vtn.build.generated-sources}/config</jmxGeneratorPath>
<docGeneratorPath>${project.build.directory}/site/models</docGeneratorPath>
</properties>
<phase>generate-sources</phase>
<configuration>
<sources>
- <source>${jmxGeneratorPath}</source>
<source>${salGeneratorPath}</source>
</sources>
</configuration>
</goals>
<configuration>
<codeGenerators>
- <generator>
- <codeGeneratorClass>
- org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
- </codeGeneratorClass>
- <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
- <additionalConfiguration>
- <namespaceToPackage1>
- urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
- </namespaceToPackage1>
- </additionalConfiguration>
- </generator>
<generator>
<codeGeneratorClass>
org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
</execution>
</executions>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>yang-jmx-generator-plugin</artifactId>
- <version>${odl.config.version}</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.vtn</groupId>
- <artifactId>manager.implementation</artifactId>
- <version>${project.version}</version>
- <classifier>config</classifier>
- <type>xml</type>
- </dependency>
-
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>manager.model</artifactId>
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0 http://karaf.apache.org/xmlns/features/v1.2.0">
<feature name="odl-vtn-manager" version="${project.version}">
- <configfile finalname="etc/opendaylight/karaf/80-vtn.xml">mvn:org.opendaylight.vtn/manager.implementation/${project.version}/xml/config</configfile>
</feature>
</features>
<!-- OpenDaylight controller (MD-SAL) -->
<dependency>
<groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-config</artifactId>
+ <artifactId>sal-binding-api</artifactId>
</dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-#
-# Copyright (c) 2015-2016 NEC Corporation
-# 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
-#
--->
-
-<!-- Configuration for VTN Manager provider module. -->
-<snapshot>
- <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:vtn="urn:opendaylight:vtn:impl:provider">
- vtn:vtn-provider
- </type>
- <name>vtn-provider</name>
- </module>
- </modules>
- </data>
- </configuration>
-
- <required-capabilities>
- <!-- Required YANG models: openflowplugin -->
- <capability>
- urn:opendaylight:flow:service?module=sal-flow&revision=2013-08-19
- </capability>
- <capability>
- urn:opendaylight:direct:statistics?module=opendaylight-direct-statistics&revision=2016-05-11
- </capability>
- <capability>
- urn:opendaylight:packet:service?module=packet-processing&revision=2013-07-09
- </capability>
-
- <!-- Required YANG models: VTN -->
- <capability>
- urn:opendaylight:vtn?module=vtn&revision=2015-03-28
- </capability>
- <capability>
- urn:opendaylight:vtn:config?module=vtn-config&revision=2015-02-09
- </capability>
- <capability>
- urn:opendaylight:vtn:pathmap?module=vtn-path-map&revision=2015-03-28
- </capability>
- <capability>
- urn:opendaylight:vtn:pathpolicy?module=vtn-path-policy&revision=2015-02-09
- </capability>
- <capability>
- urn:opendaylight:vtn:topology:static?module=vtn-static-topology&revision=2015-08-01
- </capability>
- <capability>
- urn:opendaylight:vtn:version?module=vtn-version&revision=2015-09-01
- </capability>
- <capability>
- urn:opendaylight:vtn:impl:flow?module=vtn-flow-impl&revision=2015-03-13
- </capability>
- <capability>
- urn:opendaylight:vtn:impl:inventory?module=vtn-inventory&revision=2015-02-09
- </capability>
- <capability>
- urn:opendaylight:vtn:impl:topology?module=vtn-topology&revision=2015-02-09
- </capability>
- <capability>
- urn:opendaylight:vtn:impl:mapping?module=vtn-mapping&revision=2015-10-01
- </capability>
-
- <!-- VTN Manager -->
- <capability>
- urn:opendaylight:vtn:impl:provider?module=vtn-provider&revision=2015-02-09
- </capability>
- </required-capabilities>
-</snapshot>
+++ /dev/null
-/*
- * Copyright (c) 2015, 2016 NEC Corporation. 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.vtn.impl.provider.rev150209;
-
-import static org.opendaylight.controller.config.api.osgi.WaitingServiceTracker.FIVE_MINUTES;
-
-import org.osgi.framework.BundleContext;
-
-import org.opendaylight.vtn.manager.VTNManager;
-
-import org.opendaylight.controller.config.api.DependencyResolver;
-import org.opendaylight.controller.config.api.ModuleIdentifier;
-import org.opendaylight.controller.config.api.osgi.WaitingServiceTracker;
-import org.opendaylight.controller.sal.common.util.NoopAutoCloseable;
-
-/**
- * Config subsystem module for the VTN Manager service.
- */
-public final class VTNProviderModule extends AbstractVTNProviderModule {
- /**
- * OSGi bundle context.
- */
- private BundleContext bundleContext;
-
- /**
- * Construct a VTN Manager provider module.
- *
- * @param identifier
- * Module identifier for the VTN Manager provider.
- * @param dependencyResolver
- * Dependency resolver.
- */
- public VTNProviderModule(ModuleIdentifier identifier,
- DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- /**
- * Construct a VTN Manager provider module.
- *
- * @param identifier
- * Module identifier for the VTN Manager provider.
- * @param dependencyResolver
- * Dependency resolver.
- * @param oldModule
- * Old {@link VTNProviderModule} instance.
- * @param oldInstance
- * Old provider instance.
- */
- public VTNProviderModule(ModuleIdentifier identifier,
- DependencyResolver dependencyResolver,
- VTNProviderModule oldModule,
- AutoCloseable oldInstance) {
- super(identifier, dependencyResolver, oldModule, oldInstance);
- }
-
- /**
- * Set the bundle context for the OSGi bundle that contains this class.
- *
- * @param bc The OSGi bundle context.
- */
- void setBundleContext(BundleContext bc) {
- bundleContext = bc;
- }
-
- /**
- * Instantiate VTN Manager service.
- *
- * <p>
- * VTN Manager instance is created via OSGi blueprint.
- * This method only waits for VTN Manager instance to be created.
- * </p>
- *
- * @return An {@link AutoCloseable} instance.
- */
- @Override
- public AutoCloseable createInstance() {
- try (WaitingServiceTracker<VTNManager> tracker =
- WaitingServiceTracker.create(VTNManager.class, bundleContext)) {
- tracker.waitForService(FIVE_MINUTES);
- }
-
- return NoopAutoCloseable.INSTANCE;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015, 2016 NEC Corporation. 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.vtn.impl.provider.rev150209;
-
-import org.osgi.framework.BundleContext;
-
-import org.opendaylight.controller.config.api.DependencyResolver;
-
-/**
- * Factory class for VTN Manager provider module.
- */
-public class VTNProviderModuleFactory extends AbstractVTNProviderModuleFactory {
- /**
- * Instantiate the VTN Manager provider module.
- *
- * @param instanceName The name of the instance.
- * @param dependencyResolver Dependency resolver.
- * @param oldModule Old {@link VTNProviderModule} instance.
- * @param oldInstance Old provider instance.
- * @param bundleContext OSGi bundle context.
- * @return VTN Manager provider module instance.
- */
- @Override
- public VTNProviderModule instantiateModule(
- String instanceName, DependencyResolver dependencyResolver,
- VTNProviderModule oldModule, AutoCloseable oldInstance,
- BundleContext bundleContext) {
- VTNProviderModule module = super.instantiateModule(
- instanceName, dependencyResolver, oldModule, oldInstance,
- bundleContext);
- module.setBundleContext(bundleContext);
- return module;
- }
-
- /**
- * Instantiate the VTN Manager provider module.
- *
- * @param instanceName The name of the instance.
- * @param dependencyResolver Dependency resolver.
- * @param bundleContext OSGi bundle context.
- * @return VTN Manager provider module instance.
- */
- @Override
- public VTNProviderModule instantiateModule(
- String instanceName, DependencyResolver dependencyResolver,
- BundleContext bundleContext) {
- VTNProviderModule module = super.instantiateModule(
- instanceName, dependencyResolver, bundleContext);
- module.setBundleContext(bundleContext);
- return module;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015, 2016 NEC Corporation. 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
- */
-
-module vtn-provider {
- yang-version 1;
- namespace "urn:opendaylight:vtn:impl:provider";
- prefix vtn-provider;
-
- /* OpenDaylight controller */
- import config {
- prefix config;
- revision-date 2013-04-05;
- }
-
- description
- "This module contains the base YANG definition for the VTN Manager
- provider implementation.";
-
- revision 2015-02-09 {
- description "Initial revision.";
- }
-
- identity vtn-provider {
- base config:module-type;
-
- // Specifies the prefix for generated Java classes.
- config:java-name-prefix VTNProvider;
- }
-
- // Augments the 'configuration' choice node under modules/module.
- augment "/config:modules/config:module/config:configuration" {
- case vtn-provider {
- when "/config:modules/config:module/config:type = 'vtn-provider'";
- }
- }
-}
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-config</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.controller.model</groupId>
<artifactId>model-topology</artifactId>
</dependency>
- <!-- OpenDaylight config subsystem -->
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
-
<!-- OpenDaylight YANG Tools -->
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>sal-binding-config</artifactId>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>config-api</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-common-api</artifactId>