Remove Limits dependency of legacy v2 API code

In api-paste.ini, legacy_ratelimit has been unused since the patch
I1476b2e364032d7c98f71df0cd61f1d1c19e005d. And there is a dependency
of limits module on legacy v2 API code because the legacy_ratelimit
remains.
This patch removes these code for removing the dependency.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I4ecf1c9bd8b419769d474ddbb8116fe834199843
This commit is contained in:
Ken'ichi Ohmichi 2016-05-04 14:53:39 +09:00
parent a2ac0fbc4e
commit a2e6a55a0d
2 changed files with 0 additions and 9 deletions

View File

@ -48,9 +48,6 @@ paste.filter_factory = nova.api.openstack:FaultWrapper.factory
[filter:noauth2]
paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory
[filter:legacy_ratelimit]
paste.filter_factory = nova.api.openstack.compute.limits:RateLimitingMiddleware.factory
[filter:sizelimit]
paste.filter_factory = oslo_middleware:RequestBodySizeLimiter.factory

View File

@ -13,18 +13,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from nova.api.openstack.compute.legacy_v2 import limits
from nova.api.openstack.compute.views import limits as limits_views
from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova import quota
# NOTE(alex_xu): This is just for keeping backward compatible with v2 endpoint
# in api-paste.ini. This will be removed after v2 API code deprecated in the
# future.
RateLimitingMiddleware = limits.RateLimitingMiddleware
QUOTAS = quota.QUOTAS
ALIAS = 'limits'
authorize = extensions.os_compute_authorizer(ALIAS)