<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hello Maciej,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
can I see your code somewhere? I have written an extension recently and I might can help you. The blog post is quite similar of what I've done, so you should be close to get it work.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Regards,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">jaume</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 July 2014 08:28, Maciej Nabożny <span dir="ltr"><<a href="mailto:mn@mnabozny.pl" target="_blank">mn@mnabozny.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
This is my first mail on this mailing list, so - hello everybody :)<br>
<br>
I'm trying to write extension and service plugin for Neutron, which adds support for something like "floating port". This should be dnat/snat service for virtual machines. I was following this tutorial:<br>
<br>
<a href="http://control-that-vm.blogspot.in/2014/05/writing-api-extensions-in-neutron.html?view=flipcard" target="_blank">http://control-that-vm.<u></u>blogspot.in/2014/05/writing-<u></u>api-extensions-in-neutron.<u></u>html?view=flipcard</a><br>
<br>
I have created extension with some resources (RESOURCE_ATTRIBUTE_MAP) and service plugin for it. In logs, neutron says, that extension is working and it has backend (service plugin). It is also listed in extension list through neutron api. The only problem, which I have is how to access my functions. As far as I understand, it should work in this way:<br>
- GET /v2.0/floatingport/ calls function get_floatingport(...)<br>
- GET /v2.0/floatingports/id/ calls function get_floatingports(...)<br>
and so on for all CRUD methods. Could you tell me how should I register this functions to be available in neutron's api? Each time when I call GET /v2.0/gloatingport/ i got 404. The same is through neutronclient python module with:<br>
c.do_request('GET', '/floatingip')<br>
I have also tried to paste all my methods to ml2 plugin, but also they are not accessible through api.<br>
<br>
I will be grateful for your help<br>
Regards!<br>
Maciek<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="tahoma, sans-serif">Jaume Devesa</font><div><font face="tahoma, sans-serif">Software Engineer at Midokura</font></div></div>
</div>