diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-03-24 22:26:47 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-03-24 22:26:47 +0000 |
| commit | f186c8ecc21cbcddf6e1e94053d6e250717852cb (patch) | |
| tree | 782a91144f3615ab75dc7bf394f4b2fbcc717a87 /etc/api-paste.ini | |
| parent | f8d1d6da8daac5169948d504560ee8c1b4c0df3c (diff) | |
| parent | e5069f27cd9e6551a6b035d6fff1b02a6bf0b492 (diff) | |
Implement API extensions for the Openstack API. Based on the Openstack 1.1 API the following types of extensions are supported:
-Top level resources (extension)
-Action extensions (add an extra action to a core nova controller)
-Response extensions (inject data into response from core nova controllers)
To add an extension simply drop an extension file into the configured osapi_extensions_path (which defaults to /var/lib/nova/extensions).
See nova/tests/api/openstack/extensions/foxinsocks.py for an example Extension.
Diffstat (limited to 'etc/api-paste.ini')
| -rw-r--r-- | etc/api-paste.ini | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/api-paste.ini b/etc/api-paste.ini index 169163289..35d4a8391 100644 --- a/etc/api-paste.ini +++ b/etc/api-paste.ini @@ -74,7 +74,7 @@ use = egg:Paste#urlmap pipeline = faultwrap auth ratelimit osapiapp10 [pipeline:openstackapi11] -pipeline = faultwrap auth ratelimit osapiapp11 +pipeline = faultwrap auth ratelimit extensions osapiapp11 [filter:faultwrap] paste.filter_factory = nova.api.openstack:FaultWrapper.factory @@ -85,6 +85,9 @@ paste.filter_factory = nova.api.openstack.auth:AuthMiddleware.factory [filter:ratelimit] paste.filter_factory = nova.api.openstack.limits:RateLimitingMiddleware.factory +[filter:extensions] +paste.filter_factory = nova.api.openstack.extensions:ExtensionMiddleware.factory + [app:osapiapp10] paste.app_factory = nova.api.openstack:APIRouterV10.factory |
