Bases: quantum.quantum_plugin_base_v2.QuantumPluginBaseV2
A class that implements the v2 Quantum plugin interface using SQLAlchemy models. Whenever a non-read call happens the plugin will call an event handler class method (e.g., network_created()). The result is that this class can be sub-classed by other classes that add custom behaviors on certain events.
handle creation of a single network
register an hook to be invoked when a query is executed.
Add the hooks to the _model_query_hooks dict. Models are the keys of this dict, whereas the value is another dict mapping hook names to callables performing the hook. Each hook has a “query” component, used to build the query expression and a “filter” component, which is used to build the filter expression.
Query hooks take as input the query being built and return a transformed query expression.
Filter hooks take as input the filter expression being built and return a transformed filter expression
Update the subnet with new info. The change however will not be realized until the client renew the dns lease or we support gratuitous DHCP offers