<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Maciej: have you loaded the service plugin in the neutron.conf?<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div><div class="gmail_default" style><font face="courier new, monospace">service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron.services.loadbalancer.plugin.LoadBalancerPlugin,neutron.services.floatingports.FloatingPort</font><br>
</div><div class="gmail_default" style><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style><font face="tahoma, sans-serif">Neutron needs to know what plugins to load at start up time to expose the extensions...</font></div>
<div class="gmail_default" style><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style><span style="color:rgb(0,0,0);font-size:12px;line-height:21px"><font face="courier new, monospace">RESOURCE_ATTRIBUTE_MAP</font></span><span style="font-family:tahoma,sans-serif"> key is called 'redirections', it should be called 'floatingports'. And when you call</span></div>
<div class="gmail_default" style><span style="font-family:tahoma,sans-serif"></span><font face="courier new, monospace">resource_helper.build_resource_info</font><span style="font-family:tahoma,sans-serif"> you are using </span><font face="courier new, monospace">constants.FIREWALL</font><span style="font-family:tahoma,sans-serif">. Should be 'floatingport' (the plugin </span></div>
<div class="gmail_default" style><span style="font-family:tahoma,sans-serif">type or the plugin name you defined in '</span><font face="courier new, monospace">FloatingPortPluginBase</font><span style="font-family:tahoma,sans-serif">', not sure which one. In your case it does not matter </span></div>
<div class="gmail_default" style><span style="font-family:tahoma,sans-serif">because is the same value).</span></div><div class="gmail_default" style><span style="font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default" style>
<span style="font-family:tahoma,sans-serif">You have to add also the value 'floatingport' in the</span><font face="courier new, monospace"> neutron.plugins.common.constants.COMMON_PREFIXES</font><span style="font-family:tahoma,sans-serif"> dictionary.</span></div>
<div class="gmail_default" style><br></div><div class="gmail_default" style>The definition of the method <font face="courier new, monospace">get_floatingports</font> should use the 'filters' attribute instead of the 'id' one:</div>
<div class="gmail_default" style><br></div><div class="gmail_default" style><font face="courier new, monospace">def get_floatingports(self, context, filters=None, fields=None)</font></div><div class="gmail_default" style>
<span style="font-family:tahoma,sans-serif"><br></span></div><div class="gmail_default" style><font face="tahoma, sans-serif">And the rest is up to you! Hope this helps.</font></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On 29 July 2014 11:51, Kashyap Chamarthy <span dir="ltr"><<a href="mailto:kchamart@redhat.com" target="_blank">kchamart@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Jul 29, 2014 at 11:15:45AM +0200, Maciej Nabożny wrote:<br>
<br>
[Just a generic comment, not related to the extension code in question.]<br>
<div class=""><br>
> Yes, here is extension code:<br>
> <a href="http://pastebin.com/btYQjwnr" target="_blank">http://pastebin.com/btYQjwnr</a><br>
> service plugin code:<br>
> <a href="http://pastebin.com/ikKf80Fr" target="_blank">http://pastebin.com/ikKf80Fr</a><br>
<br>
</div>Pastebins expire, it's useful to provide URLs that are accessible for<br>
much longer times, so that anyone who refers to this email months later<br>
will still be able to access the code in question.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
/kashyap<br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></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>