Mini Shell
3
{)c' � @ s d dl mZ G dd� de�ZdS )� )�Tagsc @ s e Zd ZdZddd�ZdS )�NetworkStorageDevicez7 Virtual base class for network backed storage devices Nc C s || _ || _| jjtj� dS )a� 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
:keyword host_address: host address of the backing server
:type host_address: str
:keyword nic: NIC to which the block device is bound
:type nic: str
N)�host_address�nicZtags�addr Zremote)�selfr r � r �/usr/lib/python3.6/network.py�__init__ s zNetworkStorageDevice.__init__)NN)�__name__�
__module__�__qualname__�__doc__r
r r r r r s r N)�libr �objectr r r r r �<module> s