ironic.common.rpc module

class ironic.common.rpc.RequestContextSerializer(base)[source]

Bases: Serializer

deserialize_context(context)[source]

Deserialize a dictionary into a request context.

Parameters:

ctxt – Request context dictionary

Returns:

Deserialized form of entity

deserialize_entity(context, entity)[source]

Deserialize something from primitive form.

Parameters:
  • ctxt – Request context, in deserialized form

  • entity – Primitive to be deserialized

Returns:

Deserialized form of entity

serialize_context(context)[source]

Serialize a request context into a dictionary.

Parameters:

ctxt – Request context

Returns:

Serialized form of context

serialize_entity(context, entity)[source]

Serialize something to primitive form.

Parameters:
  • ctxt – Request context, in deserialized form

  • entity – Entity to be serialized

Returns:

Serialized form of entity

ironic.common.rpc.cleanup()[source]
ironic.common.rpc.get_allowed_exmods()[source]
ironic.common.rpc.get_client(target, version_cap=None, serializer=None)[source]
ironic.common.rpc.get_sensors_notifier(service=None, host=None, publisher_id=None)[source]
ironic.common.rpc.get_server(target, endpoints, serializer=None)[source]
ironic.common.rpc.get_transport_url(url_str=None)[source]
ironic.common.rpc.get_versioned_notifier(publisher_id=None)[source]
ironic.common.rpc.init(conf)[source]
ironic.common.rpc.set_defaults(control_exchange)[source]
ironic.common.rpc.set_global_manager(manager)[source]