Put dependencies for configfiles directly referenced in your features.xml file.
For every <configfile> reference in your features.xml file, you need a corresponding dependency here.
-->
- <!-- odl-sfc-vpp-renderer config files -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>sfc-vpp-renderer</artifactId>
- <version>${project.version}</version>
- <type>xml</type>
- <classifier>config</classifier>
- </dependency>
<!-- odl-sfclisp config files -->
<dependency>
<groupId>${project.groupId}</groupId>
<feature version="${netconf.parent.version}">odl-netconf-connector-all</feature>
<feature version="${netconf.parent.version}">odl-netconf-topology</feature>
<bundle>mvn:org.opendaylight.sfc/sfc-vpp-renderer/{{VERSION}}</bundle>
- <configfile finalname="etc/opendaylight/karaf/sfc-vpp-renderer-initial.xml">mvn:org.opendaylight.sfc/sfc-vpp-renderer/{{VERSION}}/xml/config</configfile>
</feature>
<feature name="odl-sfclisp" version="${project.version}" description="OpenDaylight :: sfclisp :: all">
<artifactId>sfc-vpp-renderer</artifactId>
<packaging>bundle</packaging>
- <properties>
- <configfile>configuration/initial/sfc-vpp-renderer-initial.xml</configfile>
- </properties>
-
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <artifacts>
- <artifact>
- <file>${project.build.directory}/classes/${configfile}</file>
- <type>xml</type>
- <classifier>config</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
</plugin>
</plugins>
</build>
+++ /dev/null
-/**
- * Copyright (c) 2016 Intel Ltd. 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.controller.config.yang.config.sfc_vpp_renderer.impl;
-
-import org.opendaylight.sfc.sfc_vpp_renderer.SfcVppRenderer;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-
-public class SfcVppRendererModule extends org.opendaylight.controller.config.yang.config.sfc_vpp_renderer.impl.AbstractSfcVppRendererModule {
- private static final Logger LOG = LoggerFactory.getLogger(SfcVppRendererModule.class);
-
- public SfcVppRendererModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
- super(identifier, dependencyResolver);
- }
-
- public SfcVppRendererModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.sfc_vpp_renderer.impl.SfcVppRendererModule 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() {
- LOG.info("Initializing SFC VPP renderer module ... ");
- SfcVppRenderer renderer = new SfcVppRenderer(getDataBrokerDependency(), getBindingRegistryDependency());
-
- LOG.info("SFC VPP renderer module initialized");
-
- java.lang.AutoCloseable autoClosable = new java.lang.AutoCloseable() {
- @Override
- public void close() {
- renderer.unregisterListeners();
- LOG.info("SFC VPP renderer listeners closed");
- }
- };
-
- return autoClosable;
- }
-
-}
+++ /dev/null
-/**
- * Copyright (c) 2016 Intel Ltd. 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: sfc-vpp-renderer-impl yang module local name: sfc-vpp-renderer-impl
-* Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
-* Generated at: Wed Jul 20 16:16:13 CST 2016
-*
-* Do not modify this file unless it is present under src/main directory
-*/
-package org.opendaylight.controller.config.yang.config.sfc_vpp_renderer.impl;
-public class SfcVppRendererModuleFactory extends org.opendaylight.controller.config.yang.config.sfc_vpp_renderer.impl.AbstractSfcVppRendererModuleFactory {
-
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<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:sfc="urn:opendaylight:params:xml:ns:yang:controller:config:sfc-vpp-renderer:impl">
- sfc:sfc-vpp-renderer-impl
- </type>
- <name>sfc-vpp-renderer-impl</name>
-
- <rpc-registry>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
- <name>binding-rpc-broker</name>
- </rpc-registry>
-
- <notification-service>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">
- binding:binding-notification-service
- </type>
- <name>binding-notification-broker</name>
- </notification-service>
-
- <data-broker>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
- <name>binding-data-broker</name>
- </data-broker>
-
- <binding-registry>
- <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
- <name>binding-osgi-broker</name>
- </binding-registry>
- </module>
- </modules>
- </data>
-
- </configuration>
-
- <required-capabilities>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:config:sfc-provider:impl?module=sfc-provider-impl&revision=2014-06-30</capability>
- <capability>urn:opendaylight:params:xml:ns:yang:controller:config:sfc-vpp-renderer:impl?module=sfc-vpp-renderer-impl&revision=2016-07-20</capability>
- </required-capabilities>
-
-</snapshot>
--- /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:type="default" />
+ <reference id="bindingRegistry"
+ interface="org.opendaylight.controller.sal.binding.api.BindingAwareBroker" />
+
+ <bean id="renderer"
+ class="org.opendaylight.sfc.sfc_vpp_renderer.SfcVppRenderer"
+ destroy-method="unregisterListeners">
+ <argument ref="dataBroker"/>
+ <argument ref="bindingRegistry"/>
+ </bean>
+
+</blueprint>
+++ /dev/null
-// vi: set smarttab et sw=4 tabstop=4:
-module sfc-vpp-renderer-impl {
-
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sfc-vpp-renderer:impl";
- prefix "sfc-vpp-renderer-impl";
-
- import config { prefix config; revision-date 2013-04-05; }
- import rpc-context { prefix rpcx; revision-date 2013-06-17; }
- import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
-
-
- description
- "This module contains the base YANG definitions for
- sfc-vpp-renderer impl implementation.";
-
- revision "2016-07-20" {
- description
- "Initial revision";
- }
-
- // This is the definition of the service implementation as a module identity
- identity sfc-vpp-renderer-impl {
- base config:module-type;
-
- // Specifies the prefix for generated java classes.
- config:java-name-prefix SfcVppRenderer;
- }
-
-
- // Augments the 'configuration' choice node under modules/module.
- augment "/config:modules/config:module/config:configuration" {
- case sfc-vpp-renderer-impl {
- when "/config:modules/config:module/config:type = 'sfc-vpp-renderer-impl'";
-
- //wires in the data-broker service
- container data-broker {
- uses config:service-ref {
- refine type {
- mandatory false;
- config:required-identity mdsal:binding-async-data-broker;
- }
- }
- }
-
- container notification-service {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity mdsal:binding-notification-service;
- }
- }
- }
-
- container rpc-registry {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity mdsal:binding-rpc-registry;
- }
- }
- }
-
- container binding-registry {
- uses config:service-ref {
- refine type {
- mandatory true;
- config:required-identity mdsal:binding-broker-osgi-registry;
- }
- }
- }
- }
- }
-}