Ask Your Question
1

How to load entry point for new ML2 driver plugin ?

asked 2014-10-13 00:29:49 -0600

raviinroorkee.7 gravatar image

i am writing new ML2 plugin for controlling my device. How can i load my ML2 driver ? I checked code and it seems that stevedore loads the driver code. I have edited entry_points in neutron base and in log , it looks that my driver is getting loaded. I have query that whether this method is correct or shoud i do some other way to do it ? How can i make available this change in default neutron distribution ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-20 14:10:06 -0600

vthapar gravatar image

You're writing a new plugin or ML2 mechanism driver or type driver? For each of these you need to add an entry in neutron/setup.cfg under [entry_points] to relevant section. [entry_points] neutron.core_plugins for a new core/monolithic plugins. neutron.service_plugins for service plugins. neutron.ml2.type_drivers for ML2 type drivers neutron.ml2.mechanism_drivers for ML2 mechanism drivers

Once your changes to setup.cfg are committed they'll be available in default neutron distribution.

Happy coding.

edit flag offensive delete link more

Comments

Thanks for your response. However i could not find setup.cfg under neutron in icehouse distribution. Please share path details , if possible.

raviinroorkee.7 gravatar imageraviinroorkee.7 ( 2014-10-27 07:02:49 -0600 )edit

How did you get neutron code to write the plugin? If you cloned it off repo then it should be present in your root neutron directory.

https://github.com/openstack/neutron/...

vthapar gravatar imagevthapar ( 2014-11-04 00:30:52 -0600 )edit
0

answered 2014-10-21 02:24:58 -0600

sushma-korati gravatar image

If your writing a new mechanism driver, just add the driver details in ml2.ini file. check this link, http://control-that-vm.blogspot.in/20...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-13 00:28:18 -0600

Seen: 807 times

Last updated: Oct 21 '14