Move extensions directory

Directory 'extensions' need to be moved into neutron package to have
coherency and a separated tree between code base and tests.

run_tests script needs to be changed to run the tests.

Some minor flake8 violations fixed. Now the package is clean.

Change-Id: I305e5b4d1fa7037534da1473c8286b792128744e
Move utilities in the core plugin to the util module

This patch moves handle_api_error, MidonetApiExcption and
MidonetPluginException to midonet/neutron/common/util.py.

Change-Id: I011140d3f85f9c48e7d5cdbe5c5b85c7e400634f
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Add a decorator for extensions

This patch adds a decorator that automatically generates the extension
methods required as a Neutron extension for the initial step of the
MidoNet API migration.

Change-Id: I1e9b9fb10f8cc319206884a81a06ed741f3f6f06
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Add skeleton of a decorator for API handler mixins

This patch adds a decorator function that generates required methods for
API handler mixins based on the given list of strings represent required
handlers.

Change-Id: I8da516c849d1216201af9e753ab9fd1fe6ce9ddb
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Add Tunnel Zone resource to the extension

This patch adds the tunnel zone and tunnel zone host resource extension
and the API handler mixin to our plugin.

Change-Id: Ia652c5afa0e00a358325b80d6c6dab27152ced56
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Modify the core plugin to load extensions

Change-Id: Iff53db4754aac857e4dd10a2be1ade975029eb14
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Add Tunnel Zone and Tunnel Zone Host API handlers

This patch adds TunnelzoneHandlerMixin and
TunnelzonehostHandlerMixin to the core plugin using
generate_methods decorators.

Change-Id: Ia652c5afa0e00a358325b80d6c6dab27152ced56
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Inject tunnel zone API handler mixin to the core plugin

This patch injects TunnelzoneHandlerMixin into MidonetPluginV2 and add
'tunnelzone' to the list of the extensions to be loaded.

Change-Id: I5069404a9149d5b732ff06abf990faf5e99fec10
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>