From: Martin Bobak Date: Mon, 30 Mar 2015 09:39:39 +0000 (+0200) Subject: added feature odl-openflowplugin-new-southbound X-Git-Tag: release/lithium~578 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=b63f7467f22c3886395dde4c8f619d90dbe01408;p=openflowplugin.git added feature odl-openflowplugin-new-southbound - rebased Change-Id: I68ba2436525f0a46365c6e57326b77bef83f4992 Signed-off-by: Martin Bobak --- diff --git a/features/pom.xml b/features/pom.xml index cb8dedfd6d..2362508111 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -9,7 +9,7 @@ features-openflowplugin - jar + jar features.xml @@ -19,58 +19,58 @@ 1.2.0-SNAPSHOT - - - - org.opendaylight.controller - features-mdsal - ${mdsal.version} - features - xml - - - org.opendaylight.yangtools - features-yangtools - features - ${yangtools.version} - xml - - - org.opendaylight.controller - features-restconf - ${mdsal.version} - features - xml - - - org.opendaylight.openflowjava - features-openflowjava - ${openflowjava.version} - features - xml - + + + + org.opendaylight.controller + features-mdsal + ${mdsal.version} + features + xml + + + org.opendaylight.yangtools + features-yangtools + features + ${yangtools.version} + xml + + + org.opendaylight.controller + features-restconf + ${mdsal.version} + features + xml + + + org.opendaylight.openflowjava + features-openflowjava + ${openflowjava.version} + features + xml + - - - org.opendaylight.openflowplugin.model - model-flow-base - - - org.opendaylight.openflowplugin.model - model-flow-service - - - org.opendaylight.openflowplugin.model - model-flow-statistics - - - org.opendaylight.controller.model - model-inventory - - - org.opendaylight.controller.model - model-topology - + + + org.opendaylight.openflowplugin.model + model-flow-base + + + org.opendaylight.openflowplugin.model + model-flow-service + + + org.opendaylight.openflowplugin.model + model-flow-statistics + + + org.opendaylight.controller.model + model-inventory + + + org.opendaylight.controller.model + model-topology + org.opendaylight.openflowplugin.applications @@ -95,6 +95,20 @@ xml + + org.opendaylight.dlux + features-dlux + ${dlux.version} + features + xml + + + org.opendaylight.controller + features-netconf-connector + ${netconf.version} + features + xml + org.opendaylight.dlux @@ -111,7 +125,7 @@ xml - + org.opendaylight.openflowplugin openflowplugin-api @@ -123,6 +137,10 @@ org.opendaylight.openflowplugin openflowplugin + + + org.opendaylight.openflowplugin + openflowplugin-impl org.opendaylight.openflowplugin.applications @@ -188,84 +206,84 @@ ${sal.api.version} - - - org.opendaylight.odlparent - features-test - - - - org.opendaylight.controller - opendaylight-karaf-empty - ${karaf.distro.empty.version} - zip - - + + + org.opendaylight.odlparent + features-test + + + + org.opendaylight.controller + opendaylight-karaf-empty + ${karaf.distro.empty.version} + zip + + - - - - true - src/main/resources - - - - - org.apache.maven.plugins - maven-resources-plugin - - - filter - - resources - - generate-resources - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/${features.file} - xml - features - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.16 - - - org.opendaylight.controller - opendaylight-karaf-empty - ${karaf.empty.distro.version} - - - org.opendaylight.odlparent:features-test - - - - - - - scm:git:ssh://git.opendaylight.org:29418/controller.git - scm:git:ssh://git.opendaylight.org:29418/controller.git - HEAD - https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL - + + + + true + src/main/resources + + + + + org.apache.maven.plugins + maven-resources-plugin + + + filter + + resources + + generate-resources + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + attach-artifacts + + attach-artifact + + package + + + + ${project.build.directory}/classes/${features.file} + xml + features + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.16 + + + org.opendaylight.controller + opendaylight-karaf-empty + ${karaf.empty.distro.version} + + + org.opendaylight.odlparent:features-test + + + + + + + scm:git:ssh://git.opendaylight.org:29418/controller.git + scm:git:ssh://git.opendaylight.org:29418/controller.git + HEAD + https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL + diff --git a/features/src/main/resources/features.xml b/features/src/main/resources/features.xml index 095db24319..14096fb234 100644 --- a/features/src/main/resources/features.xml +++ b/features/src/main/resources/features.xml @@ -28,6 +28,24 @@ mvn:org.opendaylight.openflowplugin/openflowplugin-controller-config/${project.version}/xml/config mvn:org.opendaylight.openflowplugin/openflowplugin-controller-config/${project.version}/xml/configmsgspy + + + + odl-openflowplugin-nsf-services + odl-restconf + + odl-mdsal-broker + odl-openflowplugin-nsf-model + odl-openflowjava-protocol + + mvn:org.opendaylight.openflowplugin/openflowplugin/${project.version} + mvn:org.opendaylight.openflowplugin/openflowplugin-impl/${project.version} + mvn:org.opendaylight.openflowplugin/openflowplugin-api/${project.version} + mvn:org.opendaylight.openflowplugin/openflowplugin-extension-api/${project.version} + mvn:org.opendaylight.controller/liblldp/${sal.api.version} + mvn:org.opendaylight.openflowplugin/openflowplugin-controller-config/${project.version}/xml/ofplugin-config + + odl-openflowplugin-nsf-services odl-openflowplugin-southbound @@ -90,10 +108,16 @@ mvn:org.opendaylight.openflowplugin.applications/of-switch-config-pusher/${project.version} mvn:org.opendaylight.openflowplugin.applications/of-switch-config-pusher/${project.version}/xml/config + odl-openflowplugin-southbound mvn:org.opendaylight.openflowplugin.applications/lldp-speaker/${project.version} mvn:org.opendaylight.openflowplugin.applications/lldp-speaker/${project.version}/xml/config + + odl-openflowplugin-new-southbound + mvn:org.opendaylight.openflowplugin.applications/lldp-speaker/${project.version} + mvn:org.opendaylight.openflowplugin.applications/lldp-speaker/${project.version}/xml/config + diff --git a/openflowplugin-controller-config/pom.xml b/openflowplugin-controller-config/pom.xml index 2c1d5c0d4d..81cc3bcad5 100644 --- a/openflowplugin-controller-config/pom.xml +++ b/openflowplugin-controller-config/pom.xml @@ -6,7 +6,8 @@ terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html --> - + 4.0.0 @@ -20,45 +21,61 @@ Controller Configuration files for openflowplugin + openflowjava couple jar - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/initial/42-openflowplugin.xml - xml - config - - - - - - attach-artifacts-msgspy - - attach-artifact - - package - - - - ${project.build.directory}/classes/initial/43-msg-spy.xml - xml - configmsgspy - - - - - - - + + + org.codehaus.mojo + build-helper-maven-plugin + + + attach-artifacts + + attach-artifact + + package + + + + ${project.build.directory}/classes/initial/42-openflowplugin.xml + xml + config + + + + + + attach-artifacts-ofp-cfg + + attach-artifact + + package + + + + ${project.build.directory}/classes/initial/42-openflowplugin-new.xml + xml + ofplugin-config + + + + + + attach-artifacts-msgspy + + attach-artifact + + package + + + + ${project.build.directory}/classes/initial/43-msg-spy.xml + xml + configmsgspy + + + + + + + diff --git a/openflowplugin-controller-config/src/main/resources/initial/42-openflowplugin-new.xml b/openflowplugin-controller-config/src/main/resources/initial/42-openflowplugin-new.xml new file mode 100644 index 0000000000..9888cea81d --- /dev/null +++ b/openflowplugin-controller-config/src/main/resources/initial/42-openflowplugin-new.xml @@ -0,0 +1,104 @@ + + + + + + + + urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl?module=openflow-switch-connection-provider-impl&revision=2014-03-28 + + + urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider?module=openflow-switch-connection-provider&revision=2014-03-28 + + + urn:opendaylight:params:xml:ns:yang:config:openflow:plugin:impl?module=openflow-plugin-provider-impl&revision=2015-03-27 + urn:opendaylight:params:xml:ns:yang:openflow:api?module=openflow-provider&revision=2015-03-31 + + + + + + + + + + + prefix:openflow-switch-connection-provider-impl + + openflow-switch-connection-provider-default-impl + 6633 + + TCP + 15000 + + + + + prefix:openflow-switch-connection-provider-impl + + openflow-switch-connection-provider-legacy-impl + 6653 + + TCP + 15000 + + + + + + prefix:openflow-plugin-provider-impl + + openflow-plugin-provider-impl + + + ofSwitch:openflow-switch-connection-provider + openflow-switch-connection-provider-default + + + ofSwitch:openflow-switch-connection-provider + openflow-switch-connection-provider-legacy + + + + + binding:binding-broker-osgi-registry + + binding-osgi-broker + + + + + + + prefix:openflow-switch-connection-provider + + openflow-switch-connection-provider-default + /modules/module[type='openflow-switch-connection-provider-impl'][name='openflow-switch-connection-provider-default-impl'] + + + openflow-switch-connection-provider-legacy + /modules/module[type='openflow-switch-connection-provider-impl'][name='openflow-switch-connection-provider-legacy-impl'] + + + + + prefix:openflow-provider + + + openflow-provider + + /modules/module[type='openflow-plugin-provider-impl'][name='openflow-plugin-provider-impl'] + + + + + + + + diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenflowPluginProviderImpl.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java similarity index 96% rename from openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenflowPluginProviderImpl.java rename to openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java index 7b26982289..46e2c992be 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenflowPluginProviderImpl.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java @@ -23,7 +23,7 @@ import java.util.Collection; /** * Created by Martin Bobak <mbobak@cisco.com> on 27.3.2015. */ -public class OpenflowPluginProviderImpl implements OpenFlowPluginProvider { +public class OpenFlowPluginProviderImpl implements OpenFlowPluginProvider { private DeviceManager deviceManager; private RpcManager rpcManager; diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/config/openflow/plugin/impl/rev150327/OpenFlowProviderModule.java b/openflowplugin-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/config/openflow/plugin/impl/rev150327/OpenFlowProviderModule.java index 5ebad21a79..bf2933f97e 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/config/openflow/plugin/impl/rev150327/OpenFlowProviderModule.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/config/openflow/plugin/impl/rev150327/OpenFlowProviderModule.java @@ -1,6 +1,7 @@ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.config.openflow.plugin.impl.rev150327; import org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider; +import org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -24,7 +25,7 @@ public class OpenFlowProviderModule extends org.opendaylight.yang.gen.v1.urn.ope @Override public java.lang.AutoCloseable createInstance() { LOG.info("Initializing new OFP southbound."); - OpenFlowPluginProvider openflowPluginProvider = new org.opendaylight.openflowplugin.impl.OpenflowPluginProviderImpl(); + OpenFlowPluginProvider openflowPluginProvider = new OpenFlowPluginProviderImpl(); openflowPluginProvider.setSwitchConnectionProviders(getOpenflowSwitchConnectionProviderDependency()); openflowPluginProvider.setRole(getRole());