<feature version='${openflowplugin.version}'>odl-openflowplugin-nsf-model</feature>
<bundle>mvn:org.opendaylight.vpnservice/model-bgp/{{VERSION}}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/vpnmanager-api/${vpnmanager.version}</bundle>
- <bundle>mvn:org.opendaylight.vpnservice/interfacemgr-api/${interfacemgr.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/nexthopmgr-api/${nexthopmgr.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/idmanager-api/${idmanager.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/fibmanager-api/${fibmanager.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/bgpmanager-api/${project.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/bgpmanager-impl/${project.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/vpnmanager-impl/${vpnmanager.version}</bundle>
+ <bundle>mvn:org.opendaylight.vpnservice/interfacemgr-api/${interfacemgr.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/interfacemgr-impl/${interfacemgr.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/nexthopmgr-impl/${nexthopmgr.version}</bundle>
<bundle>mvn:org.opendaylight.vpnservice/idmanager-impl/${idmanager.version}</bundle>
-->
<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.yangtools</groupId>
- <artifactId>binding-parent</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>config-parent</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
<relativePath/>
</parent>
<yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
<mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
</properties>
-
<dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<version>${mdsal.version}</version>
</dependency>
</dependencies>
-</project>
+</project>
\ No newline at end of file
--- /dev/null
+package org.opendaylight.vpnservice.interfacemgr.interfaces;
+
+public interface IInterfaceManager {
+
+ public void testApi();
+
+}
\ No newline at end of file
}
import opendaylight-inventory {
- prefix inv; revision-date "2013-08-19";
+ prefix inv; revision-date 2013-08-19;
+ }
+
+ import config {
+ prefix config; revision-date 2013-04-05;
}
revision "2015-03-31" {
base tunnel-type-base;
}
+ identity odl-interface {
+ base "config:service-type";
+ config:java-class "org.opendaylight.vpnservice.interfacemgr.interfaces.IInterfaceManager";
+ }
+
/* base/common properties */
augment "/if:interfaces/if:interface" {
ext:augment-identifier "base-ids";
}
}
-
-->
<snapshot>
<required-capabilities>
+ <capability>urn:opendaylight:vpnservice:interfacemgr?module=odl-interface&revision=2015-03-31</capability>
<capability>urn:opendaylight:params:xml:ns:yang:interfacemgr:impl?module=interfacemgr-impl&revision=2015-03-25</capability>
<capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
</required-capabilities>
</broker>
</module>
</modules>
+ <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+ <service>
+ <type xmlns:prefix="urn:opendaylight:vpnservice:interfacemgr">prefix:odl-interface</type>
+ <instance>
+ <name>interfacemgr-service</name>
+ <provider>/modules/module[type='interfacemgr-impl'][name='interfacemgr-default']</provider>
+ </instance>
+ </service>
+ </services>
</data>
</configuration>
-</snapshot>
+</snapshot>
\ No newline at end of file
import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.opendaylight.vpnservice.interfacemgr.interfaces.IInterfaceManager;
-public class InterfacemgrProvider implements BindingAwareProvider, AutoCloseable {
+public class InterfacemgrProvider implements BindingAwareProvider, AutoCloseable, IInterfaceManager {
private static final Logger LOG = LoggerFactory.getLogger(InterfacemgrProvider.class);
-
+
private InterfaceManager interfaceManager;
@Override
interfaceManager.close();
}
-}
+ @Override
+ public void testApi() {
+ LOG.debug("Testing interface mgr api");
+ }
+}
\ No newline at end of file
import config { prefix config; revision-date 2013-04-05; }
import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
+ import odl-interface {prefix odlif; revision-date 2015-03-31;}
description
"Service definition for interfacemgr project";
identity interfacemgr-impl {
base config:module-type;
+ config:provided-service odlif:odl-interface;
config:java-name-prefix InterfacemgrImpl;
}
}
}
}
-}
+}
\ No newline at end of file