[openstack-dev] How to write a new neutron L2 plugin using ML2 framework?
Isaku Yamahata
isaku.yamahata at gmail.com
Mon Feb 10 06:27:23 UTC 2014
On Sat, Feb 08, 2014 at 03:49:46AM +0000,
"Yang, Yi Y" <yi.y.yang at intel.com> wrote:
> Hi, All
Hi.
> I want to write a new neutron L2 plugin using ML2 framework, I noticed openvswitch and linxubridge have been ported into ML2 framework, but it seems many code is removed compared to standalone L2 plugin, I guess some code has been written into a common library. Now I want to write a L2 plugin to enable switch for a SR-IOV 10g NIC, I think I need to write as follows:
> 1. a new mechanism driver neutron/plugins/ml2/drivers/mech_XXX.py, but from source code, it seems nothing to do.
This requires to define how your plugin utilize network.
If multi tenant network is wanted, what/how technology will be used.
The common one is VLAN or tunneling(GRE, VXLAN).
This depends on what feature your NIC supports.
> 2. a new agent neutron/plugins/XXX/ XXX_neutron_plugin.py
>
> After this, an issue it how to let neutron know it and load it by default or by configuration. Debugging is also an issue, nobody can write code correctly once :-), does neutron have any good debugging way for a newbie?
LOG.debug and debug middle ware.
If there are any other better way, I'd also like to know.
thanks,
> I'm very eager to be able to get your help and sincerely thank you in advance.
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
--
Isaku Yamahata <isaku.yamahata at gmail.com>
More information about the OpenStack-dev
mailing list