[openstack-dev] [Quantum] Adding event handler for each CRUD method in db_base_plugin

Mark McClain mark.mcclain at dreamhost.com
Mon Oct 22 19:42:32 UTC 2012


I'm not sure I'm understanding the need to add these hooks.  Are these hooks to notification or data modification purposes?  Do you have an example use case in mind?  

mark

On Oct 22, 2012, at 2:22 PM, Nachi Ueno <nachi at nttmcl.com> wrote:

> Hi Quantum folks
> 
> Now, when we add new extension, we should update for each plugins. (
> l3 , security groups etc)
> As the result, similar code are distributed between multiple plugins
> 
> Instead of doing this, how about to add event handler for each CRUD
> method in db_base_plugin?
> 
> From extension we can do this.
> 
> register_pre_create_network(event_handler, method)
> or
> register_post_create_network(event_handler, method)
> 
> Best,
> Nachi Ueno
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list