distrax.osds.get_osd#

distrax.osds.get_osd(name='')[source]#

Gets the osd as specified by the name.

Parameters:

name (str) – Name of a supported osd, i.e. ceph

Return type:

Optional[OSD]

Returns:

A name tuple with the name of the storage and the class

Examples

>>> distrax.osds as osds
>>> osd = osds.get_osd("ceph")
>>> osd.name
    ceph
>>> osd.OSD
    CephOSD