[openstack-dev] Problems with new Neutron service plugin

Jaume Devesa devvesa at gmail.com
Tue Jul 29 08:14:49 UTC 2014


Hello Maciej,

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.

Regards,
jaume



On 29 July 2014 08:28, Maciej Nabożny <mn at mnabozny.pl> wrote:

> Hello!
> This is my first mail on this mailing list, so - hello everybody :)
>
> 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:
>
> http://control-that-vm.blogspot.in/2014/05/writing-
> api-extensions-in-neutron.html?view=flipcard
>
> 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:
> - GET /v2.0/floatingport/ calls function get_floatingport(...)
> - GET /v2.0/floatingports/id/ calls function get_floatingports(...)
> 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:
>         c.do_request('GET', '/floatingip')
> I have also tried to paste all my methods to ml2 plugin, but also they are
> not accessible through api.
>
> I will be grateful for your help
> Regards!
> Maciek
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
Jaume Devesa
Software Engineer at Midokura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140729/858f8935/attachment.html>


More information about the OpenStack-dev mailing list