<div dir="ltr">Thanks Mathieu for your reply and info.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 3:35 AM, Mathieu Rohon <span dir="ltr"><<a href="mailto:mathieu.rohon@gmail.com" target="_blank">mathieu.rohon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi nader,<br>
<br>
The easiest way would be to register a new RPC callback in the current<br>
ovs agent. This is what we have done for the l2-pop MD, with fdb_add<br>
and fdb_remove callbacks.<br>
However, it could become a mess if every MD adds it own callback<br>
directly into the code of the agent. L2 agent should be able to load<br>
drivers, which might register new callbacks.<br>
This could potentially be something to do while refactoring the agent<br>
: <a href="https://review.openstack.org/#/c/57627/" target="_blank">https://review.openstack.org/#/c/57627/</a><br>
<div><div class="h5"><br>
On Tue, Mar 18, 2014 at 7:42 AM, Nader Lahouti <<a href="mailto:nader.lahouti@gmail.com">nader.lahouti@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> In a multi-node setup, I'm using Ml2Plugin (as core plugin) and OVS<br>
> (OVSNeutronAgent) as an agent on compute nodes. From controller I need to<br>
> call a *new method* on agent ( on all compute nodes - using RPC), to<br>
> perform a task (i.e. to communicate with an external process). As I need to<br>
> use OVSNeutronAgent, I am thinking the following as potential solution for<br>
> adding the new method to the agent:<br>
> 1. Create new plugin based on existing OVS agent - That means cloning<br>
> OVSNeutronAgent and add the new method to that.<br>
> 2. Create new plugin, which inherits OVSNeutronPlugin - the new plugin<br>
> defines the new method, setup_rpc,...<br>
> 3. Add the new method to the existing OVSNeutronAgent<br>
><br>
> Please let me know your thought and comments.<br>
><br>
> Regards,<br>
> Nader.<br>
><br>
><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>