how to run l2 switch plugin in Helium

asked 2015-05-12 19:03:48 -0800

anonymous user

Anonymous

updated 2015-05-12 19:05:17 -0800

I am confused about how to add and run a new plugin to Helium. In Hydrogen for example, you can copy the plugin jar to opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/plugins to have it picked up by the controller. But there is no such distribution folder in Helium (I cloned the controller repo from gerrit).

For example, I tried to follow this guide: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:L2Switch

To run the l2-switch plugin, the guide told me to copy model(l2switch-model-1.1-SNAPSHOT.jar) and impl(l2switch-impl-1.1-SNAPSHOT.jar) jars to plugins directory of openflowplugin distribution (not controller),

$cp controller/opendaylight/md-sal/samples/l2switch/model/target/l2switch-model-1.1-SNAPSHOT.jar openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.3-SNAPSHOT-osgipackage/opendaylight/plugins/ $cp controller/opendaylight/md-sal/samples/l2switch/implementation/target/l2switch-impl-1.1-SNAPSHOT.jar openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.3-SNAPSHOT-osgipackage/opendaylight/plugins/

But there is no such directory in my openflowplugin project (there is only a karaf folder under my openflowplugin/distribution). I'm wondering what is the right way to run this plugin, or plugins in general?

Thanks!

edit retag flag offensive close merge delete