forked from openstack/nova
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,25 @@ | |||
# To create extensions: | To create OCCI extensions: | ||
1. define the method to retreive all extension information |
|
||
2. define the extension categories | 1. Define the method to retreive all extension information. This method | ||
3. define the extension handler(s) | **must** have the following signature: | ||
def get_extensions() | |||
It **must** return a list. That list **must** contain at least one | |||
dict. The dict **must** contain a pyssf backend handler. The dict | |||
**must** also contain a list of OCCI Categories that are handled by the | |||
pyssf backend handler. The OCCI Categories and pyssf backend handler | |||
**should** be defined in the same python file | |||
|
|||
2. Define the extension categories. Depending on your needs you can define | |||
Kind, Mixin, Link or Action extensions. | |||
|
|||
3. Define the extension handler(s). | |||
|
|||
Examples of OCCI extensions can be found in the same directory as this README | |||
file. | |||
fiware.py - this includes a very basic extension | |||
occi_future.py - this includes extensions that are considered as future | |||
OCCI-WG extensions | |||
openstack.py - this includes various OpenStack specific extensions | |||
|
|||
All extensions are enumerated via __init__.py and loaded via wsgi.py | |||
|
|