pyanaconda.modules.storage.iscsi.iscsi_interface
Classes
The interface for iSCSI discovery task. |
|
DBus interface for the iSCSI module. |
Module Contents
- class pyanaconda.modules.storage.iscsi.iscsi_interface.ISCSIDiscoverTaskInterface[source]
Bases:
pyanaconda.modules.common.task.TaskInterface
The interface for iSCSI discovery task.
Returns a list of Node structures representing discovered nodes.
- class pyanaconda.modules.storage.iscsi.iscsi_interface.ISCSIInterface[source]
Bases:
pyanaconda.modules.common.base.KickstartModuleInterfaceTemplate
DBus interface for the iSCSI module.
- CanSetInitiator()[source]
Can the iSCSI initator be set?
Initiator name can be changed when no sessions are active.
- Return type:
Bool
- GetInterfaceMode()[source]
Get the mode of interface used for iSCSI operations.
The mode is chosen during discovery of nodes. Once there there are active nodes logged in using particular mode, the mode can’t be changed.
Return values: IscsiInterfacesMode
- Return type:
Str
- DiscoverWithTask(portal, credentials, interfaces_mode)[source]
Discover an iSCSI device.
- Parameters:
portal (Structure) – the portal information
credentials (Structure) – the iSCSI credentials
interfaces_mode (Str) – required mode specified by IscsiInterfacesMode string value
- Returns:
a DBus path to a task
- Return type:
ObjPath
- LoginWithTask(portal, credentials, node)[source]
Login into an iSCSI node discovered on a portal.
- Parameters:
portal (Structure) – the portal information
credentials (Structure) – the iSCSI credentials
node (Structure) – the node information
- Returns:
a DBus path to a task
- Return type:
ObjPath
- IsNodeFromIbft(node)[source]
Is the node configured from iBFT table?.
- Parameters:
node (Structure) – the node information
- Return type:
Bool
- GetInterface(iscsi_iface)[source]
Get network interface backing iscsi iface.
- Parameters:
iscsi_iface (Str) – name of an iscsi interface (eg iface0)
- Returns:
specification of interface backing the iscsi iface (eg ens3) or “” if there is none
- Return type:
Str