Ask Your Question

How to load entry point for new ML2 driver plugin ?

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

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

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

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


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 -0500 )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.

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

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

sushma-korati gravatar image

If your writing a new mechanism driver, just add the driver details in ml2.ini file. check this link,

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 865 times

Last updated: Oct 21 '14