Skip to content

proposal switch node event

Leo Zhang edited this page Jun 27, 2016 · 1 revision

Event Notification: Switch Node

(ORFS-247)

Background

A new requirement was generated to extend RackHD AMQP based event notification mechanism to include notifications when a new switch node is added or removed. This mechanism could avoid having to poll for changes in the infrastructure using RESTful API calls.

Goal

  • For switch nodes getting “created” - at least 3 events are desired, reflecting different levels of information being available about the node
    • An event triggered/sent when a switch node exists and has at least 1 catalog
    • An event triggered/sent when a switch node exists and has OBM(SNMP) settings defined
    • An event triggered/sent when a node exists and has a SKU assigned to it, regardless of which SKU
  • For nodes getting “removed” - 1 event
    • when a node is deleted from the database via the API and that deletion has been “successful”
  • These events should be triggered regardless of how the nodes were created - via API calls or ZTP/POAP discovery
  • No specific data was pre-specified in the payload, but presumably should include that this data is available as appropriate
  • The data format, exchange, and topics should all be documented in the RackHD User’s Guide and include an example of the AMQP event contents

API

Clone this wiki locally