neutron/neutron/callbacks
Yalei Wang c24e9da2f8 Add precommit_XXX event for security group and rules
Current BEFORE_CREATE/DELETE/UPDATE event is outside of the DB
transaction. Unlike the precommit primitive in ML2 mech drivers, they
don't work in the same DB transaction of resource, so if we want to
operate the DB in mech driver related to security group, there would be
more unsync issues if we use BEFORE_XXX event directly. Moving the
BEFORE_XXX event inside may also break some current codes, as maybe RPC
call included.

This patch adds new PRECOMMIT_CREATE/DELETE/UPDATE event type for
callback function, and use it in the securitygroup/rules DB transaction.
PRECOMMIT_XXX is in the DB transaction and only purpose is to do DB
operations in its callback. A CallbackFailure will be triggered when
exception comes from the callback of the new event.

Change-Id: Icd2849bd84dab6733a572e8c85f242afcefc6c78
Closes-Bug: #1522172
2016-02-14 22:36:27 +08:00
..
__init__.py Add callbacks-based system to Neutron 2015-02-25 06:11:59 -08:00
events.py Add precommit_XXX event for security group and rules 2016-02-14 22:36:27 +08:00
exceptions.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
manager.py Add precommit_XXX event for security group and rules 2016-02-14 22:36:27 +08:00
registry.py Add callbacks-based system to Neutron 2015-02-25 06:11:59 -08:00
resources.py Merge "Implement 'get-me-a-network' API building block" 2016-02-10 05:59:28 +00:00