diff options
author | Harald Jensås <hjensas@redhat.com> | 2019-01-19 23:33:31 +0100 |
---|---|---|
committer | Harald Jensås <hjensas@redhat.com> | 2019-02-15 06:17:02 +0100 |
commit | 50205ca0724c9f03731e3441bc525b5c3650369f (patch) | |
tree | bec2803b8eb6c7aa080f01febb0612c6c3fd7685 /ironic/api/controllers/v1/versions.py | |
parent | e34941c3279907a013b2b6ae023a089e58c3ed11 (diff) | |
download | ironic-50205ca0724c9f03731e3441bc525b5c3650369f.tar.gz |
API - Implement /events endpoint
Implements the POST /events endpoint. Allows external
entities to send events to Ironic. The default policy
for the new endpoint is "rule:is_admin".
Initial support for 'network' events properties implemented
but the EventsController will simply log a debug entry.
Story: 1304673
Task: 28988
Change-Id: I2cfebf2d0bedd35a33db7af60eaec0e5083fe16f
Diffstat (limited to 'ironic/api/controllers/v1/versions.py')
-rw-r--r-- | ironic/api/controllers/v1/versions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ironic/api/controllers/v1/versions.py b/ironic/api/controllers/v1/versions.py index 7b321774c..8fe33c7c6 100644 --- a/ironic/api/controllers/v1/versions.py +++ b/ironic/api/controllers/v1/versions.py @@ -91,6 +91,7 @@ BASE_VERSION = 1 # v1.51: Add description to the node object. # v1.52: Add allocation API. # v1.53: Add support for Smart NIC port +# v1.54: Add events support. MINOR_0_JUNO = 0 MINOR_1_INITIAL_VERSION = 1 @@ -146,6 +147,7 @@ MINOR_50_NODE_OWNER = 50 MINOR_51_NODE_DESCRIPTION = 51 MINOR_52_ALLOCATION = 52 MINOR_53_PORT_SMARTNIC = 53 +MINOR_54_EVENTS = 54 # When adding another version, update: # - MINOR_MAX_VERSION @@ -153,7 +155,7 @@ MINOR_53_PORT_SMARTNIC = 53 # explanation of what changed in the new version # - common/release_mappings.py, RELEASE_MAPPING['master']['api'] -MINOR_MAX_VERSION = MINOR_53_PORT_SMARTNIC +MINOR_MAX_VERSION = MINOR_54_EVENTS # String representations of the minor and maximum versions _MIN_VERSION_STRING = '{}.{}'.format(BASE_VERSION, MINOR_1_INITIAL_VERSION) |