# Revision history [back]

### how to run l2 switch plugin in Helium

I am confused about how to add and run a new plugin to Helium. In Hydrogen for example, you can copy the plugin jar files into opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/plugins to have the jar 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). What is the right way to run this plugin, or plugins in general?

Thanks!

### how to run l2 switch plugin in Helium

I am confused about how to add and run a new plugin to Helium. In Hydrogen for example, you can copy the plugin jar files into to opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/plugins to have the jar 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). What I'm wondering what is the right way to run this plugin, or plugins in general?

Thanks!