]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move retries out of ML2 plugin
authorKevin Benton <blak111@gmail.com>
Wed, 14 Oct 2015 05:33:53 +0000 (22:33 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 14 Oct 2015 07:46:22 +0000 (00:46 -0700)
commitf6df2e704ba0c39e8a5ee59cb5fa1bd337deae82
treeeb758f95b1c9815d816dccaeac52d5031492a1f0
parentf3ccc38c88c0c479046b155eefbff51a22d59e0a
Move retries out of ML2 plugin

There are several DB retry decorators in the ML2 plugin.
We want to keep them in the API layer as much possible so
this patch removes all but 1 and adds the retryrequest catch
to the API-level decorator.

The remaining one is the update_port_status which is an internal
RPC called method so it's not clear if there is a benefit to
moving it to the ml2 rpc file.

Change-Id: Ifffd424b693f57b5dd3de4dc625b50acc23abe0f
Closes-Bug: #1505908
neutron/db/api.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/plugins/ml2/test_plugin.py