Do not load extendable routes for the Versions router

The Versions router is implicitly spending time loading
up extension routes on startup which is unnecessary since
the Versions router only cares about handling requests to
"/" on the base endpoint.

Change-Id: I7452bb2952459dca8cf0baf39fa76e0e39ad2ffd
Partial-Bug: #1722326
This commit is contained in:
Matt Riedemann 2017-10-09 14:33:32 -04:00
parent 6c630c5e53
commit abeb810290
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ class Versions(openstack.APIRouter):
action='all')
mapper.redirect('', '/')
def _setup_ext_routes(self, mapper, ext_mgr):
# NOTE(mriedem): The version router doesn't care about extensions.
pass
# NOTE (jose-castro-leon): Avoid to register extensions
# on the versions router, the versions router does not offer
# resources to be extended.