Package pyanaconda :: Package storage :: Module devices :: Class NetworkStorageDevice
[hide private]
[frames] | no frames]

Class NetworkStorageDevice

source code

object --+

Virtual base class for network backed storage devices

Instance Methods [hide private]
__init__(self, host_address=None, nic=None)
Create a NetworkStorage Device instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, host_address=None, nic=None)

source code 
Create a NetworkStorage Device instance. Note this class is only
to be used as a baseclass and then only with multiple inheritance.
The only correct use is:
class MyStorageDevice(StorageDevice, NetworkStorageDevice):

The sole purpose of this class is to:
1) Be able to check if a StorageDevice is network backed
   (using isinstance).
2) To be able to get the host address of the host (server) backing
   the storage *or* the NIC through which the storage is connected


    host_address -- host address of the backing server
    nic -- nic to which the storage is bound

Overrides: object.__init__