¡@

Home 

OpenStack Study: routers.py

OpenStack Index

**** CubicPower OpenStack Study ****

def append_v3_routers(mapper, routers):

    auth_controller = controllers.Auth()

    mapper.connect('/auth/tokens',

                   controller=auth_controller,

                   action='authenticate_for_token',

                   conditions=dict(method=['POST']))

    mapper.connect('/auth/tokens',

                   controller=auth_controller,

                   action='check_token',

                   conditions=dict(method=['HEAD']))

    mapper.connect('/auth/tokens',

                   controller=auth_controller,

                   action='revoke_token',

                   conditions=dict(method=['DELETE']))

    mapper.connect('/auth/tokens',

                   controller=auth_controller,

                   action='validate_token',

                   conditions=dict(method=['GET']))

    mapper.connect('/auth/tokens/OS-PKI/revoked',

                   controller=auth_controller,

                   action='revocation_list',

                   conditions=dict(method=['GET']))