Hey,<div> Thanks for the reply.I fixed it,it was because I did not include the directory on the python path.But I have another question.</div><div><br></div><div><br></div><div>What is the format for API requests in quantum to the plug-in.I have looked into the code.I cannot find the statement similar to this::</div>
<div><br></div><div>"GET /v2.0/networks?name=internal"<br><br><div class="gmail_quote">On Tue, Mar 5, 2013 at 11:51 AM, Sumit Naiksatam <span dir="ltr"><<a href="mailto:sumitnaiksatam@gmail.com" target="_blank">sumitnaiksatam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you add __init__.py to your "new_folder"?<br>
<br>
~Sumit.<br>
<div><div class="h5"><br>
On Tue, Mar 5, 2013 at 11:29 AM, Daisy F <<a href="mailto:f.daisy25@gmail.com">f.daisy25@gmail.com</a>> wrote:<br>
> Hi,<br>
> I wanted to add a simple plug-in to quantum.<br>
><br>
> I did the following::<br>
><br>
> 1)I created a new directory with the following path<br>
> /quantum/plugins/new_dir<br>
><br>
> 2)Added a python script which prints the statement as a debug statement<br>
> when create network is clicked on the dashboard.Name of the file is<br>
> ovs_quantum_plugin.py<br>
><br>
> 3)In the /etc/quantum /quantum.conf file the following is replaced<br>
><br>
> # Quantum plugin provider module<br>
><br>
> core_plugin =<br>
> quantum.plugins.new_folder.ovs_quantum_plugin.OVSQuantumPluginV2<br>
><br>
> 4)When I restart the quantum server :I see the following error<br>
><br>
><br>
> ERROR [quantum.common.config] Unable to load quantum from configuration file<br>
> /etc/quantum/api-paste.ini.<br>
> Traceback (most recent call last):<br>
><br>
> File<br>
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/importutils.py",<br>
> line 30, in import_class<br>
> __import__(mod_str)<br>
> ImportError: No module named vello.ovs_quantum_plugin<br>
><br>
><br>
><br>
> Can someone clearly explain the steps to add a plug in on to the quantum<br>
> service.<br>
><br>
><br>
> Thanks,<br>
> Daisy<br>
><br>
</div></div>> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>