ironic.common.json_rpc.client module

A simple JSON RPC client.

This client is compatible with any JSON RPC 2.0 implementation, including ours.

class ironic.common.json_rpc.client.Client(serializer, version_cap=None)[source]

Bases: object

JSON RPC client with ironic exception handling.

allowed_exception_namespaces = ['ironic.common.exception.', 'ironic_inspector.utils.']
can_send_version(version)[source]
prepare(topic, version=None)[source]

Prepare the client to transmit a request.

Parameters:
  • topic – Topic which is being addressed. Typically this is the hostname of the remote json-rpc service.

  • version – The RPC API version to utilize.