Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Is it possible to specify which plugins to start without recompiling OpenDayLight?

asked 2014-08-25 16:18:09 -0700

Yiliang gravatar image

For testing purpose, I do not want certain plugin (like simple forwaring) to start when I start OpenDayLight controller. What is the right approach to do this?

Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2014-08-26 06:02:35 -0700

Madhu gravatar image

All the plugins are stored in the plugins/ directory (which is under distribution.opendaylight-osgipackage/opendaylight/). In this case, you can simply move org.opendaylight.controller.samples.simpleforwarding-0.4.2-SNAPSHOT.jar outside of the plugins directory and that will remove Simple Forwarding.

When you put it back into the plugins/ directory, it will start to work again.

edit flag offensive delete publish link more
0

answered 2014-08-26 10:56:07 -0700

The run.sh script has a "-bundlefilter" option* which allows you to specify which bundles not to start. It takes a single argument in a regex-like style. E.g.:

./run.sh -of13 -bundlefilter "org.opendaylight.(affinity|lispflowmapping|snmp|(controller.(samples.simpleforwarding|subnets)))"

*At least the one in the virtualization edition (1.0) had this option.

edit flag offensive delete publish link more

Comments

Yes. this is a good option too & yes, I added it to the virtualization edition. The only trouble with this option is that, we have to make sure we dont mess up any existing filtering already done for us by the scripts.

Madhu ( 2014-08-27 01:54:34 -0700 )edit

Thanks a lot! Where can I find the documentation on commandline options, such as "-bundlefilter", for script run.sh?

Yiliang ( 2014-08-28 17:02:19 -0700 )edit

The best documentation we have so far is for the Hydrogen release : https://wiki.opendaylight.org/view/Release/Hydrogen/, Please refer to the installation and User Guides. Other option is to look into the run.sh.

Madhu ( 2014-08-28 23:58:45 -0700 )edit

I am using code from git: https://git.opendaylight.org/gerrit/p/controller.git It seems that option (either of13 or bundlefilter) is not supported. How is the code in git compared with various editions in official release (like virtualization edition). Does git repo has a superset of everything?

Yiliang ( 2014-08-29 09:06:28 -0700 )edit

Yes. the bundlefilter is something added to integration project only (but can be used in any project if there is a need). We have 25 projects today in ODL and each is in its own GIT repo. But we do the release distribution from integration project, where it just assembles artifacts from all other projects.

Madhu ( 2014-08-29 10:47:48 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-08-25 16:18:09 -0700

Seen: 60 times

Last updated: Aug 26 '14