<div dir="ltr"><div>On 15 June 2015 at 19:34, Sam Su <span dir="ltr"><<a href="mailto:susltd.su@gmail.com" target="_blank">susltd.su@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">Hi stackers,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am going to implement a Neutron plugin, however when I checked the current Neutron code(master) structure, I found there are two way to organize a Neutron plugin:<u></u><u></u></p><p><u></u><span>1.<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">       </span></span><u></u>The first one is implement all L2 and L3 functions under the folder ../neutron/plugins/xxx, e.g. vmware, plumgrid, and ibm…<u></u><u></u></p><p><u></u><span>2.<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">       </span></span><u></u>The second way is put L2 functions on the folder ../neutron/plugins/ml2/drivers/xxx and put L3 funtions on the folder ../neutron/services/l3_router/xxx, e.g. brocade, cisco.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If my understanding is correct, which way is more desirable for a neutron plugin? If I am wrong, what is a neutron plugin code structure?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Any help will be much appreciated!</p></div></div></blockquote><div><br></div>These requests are better directed to the -dev ML. Anyway, both structures are perfectly fine, and they both have pros and cons. Check out these resources that might help you decide:</div><div class="gmail_quote"><br></div><div class="gmail_quote">[1] <a href="https://www.openstack.org/summit/openstack-summit-hong-kong-2013/session-videos/presentation/how-to-write-a-neutron-plugin-if-you-really-need-to">https://www.openstack.org/summit/openstack-summit-hong-kong-2013/session-videos/presentation/how-to-write-a-neutron-plugin-if-you-really-need-to</a></div><div class="gmail_quote">[2] <a href="https://github.com/openstack/neutron/blob/master/doc/source/devref/contribute.rst">https://github.com/openstack/neutron/blob/master/doc/source/devref/contribute.rst</a></div><div class="gmail_quote"><br></div><div class="gmail_quote">HTH</div><div class="gmail_quote">Armando</div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Sam<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div>