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:
parent
a2ac0fbc4e
commit
a2e6a55a0d
@ -48,9 +48,6 @@ paste.filter_factory = nova.api.openstack:FaultWrapper.factory
|
|||||||
[filter:noauth2]
|
[filter:noauth2]
|
||||||
paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory
|
paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory
|
||||||
|
|
||||||
[filter:legacy_ratelimit]
|
|
||||||
paste.filter_factory = nova.api.openstack.compute.limits:RateLimitingMiddleware.factory
|
|
||||||
|
|
||||||
[filter:sizelimit]
|
[filter:sizelimit]
|
||||||
paste.filter_factory = oslo_middleware:RequestBodySizeLimiter.factory
|
paste.filter_factory = oslo_middleware:RequestBodySizeLimiter.factory
|
||||||
|
|
||||||
|
@ -13,18 +13,12 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# 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.compute.views import limits as limits_views
|
||||||
from nova.api.openstack import extensions
|
from nova.api.openstack import extensions
|
||||||
from nova.api.openstack import wsgi
|
from nova.api.openstack import wsgi
|
||||||
from nova import quota
|
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
|
QUOTAS = quota.QUOTAS
|
||||||
ALIAS = 'limits'
|
ALIAS = 'limits'
|
||||||
authorize = extensions.os_compute_authorizer(ALIAS)
|
authorize = extensions.os_compute_authorizer(ALIAS)
|
||||||
|
Loading…
Reference in New Issue
Block a user