This Page

The quantum.common.topics Module

quantum.common.topics.get_topic_name(prefix, table, operation)

Create a topic name.

The topic name needs to be synced between the agent and the plugin. The plugin will send a fanout message to all of the listening agents so that the agents in turn can perform their updates accordingly.

Parameters:
  • prefix – Common prefix for the plugin/agent message queues.
  • table – The table in question (NETWORK, SUBNET, PORT).
  • operation – The operation that invokes notification (CREATE, DELETE, UPDATE)
Returns:

The topic name.