Package ganeti :: Package storage :: Module drbd_cmdgen :: Class BaseDRBDCmdGenerator
[hide private]
[frames] | no frames]

Class BaseDRBDCmdGenerator

source code


Base class for DRBD command generators.

This class defines the interface for the command generators and holds shared code.

Instance Methods [hide private]
 
__init__(self, version)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
GenShowCmd(self, minor) source code
 
GenInitMetaCmd(self, minor, meta_dev) source code
 
GenLocalInitCmds(self, minor, data_dev, meta_dev, size_mb, params) source code
 
GenNetInitCmd(self, minor, family, lhost, lport, rhost, rport, protocol, dual_pri, hmac, secret, params) source code
 
GenSyncParamsCmd(self, minor, params) source code
 
GenPauseSyncCmd(self, minor) source code
 
GenResumeSyncCmd(self, minor) source code
 
GenPrimaryCmd(self, minor, force) source code
 
GenSecondaryCmd(self, minor) source code
 
GenDetachCmd(self, minor) source code
 
GenDisconnectCmd(self, minor, family, lhost, lport, rhost, rport) source code
 
GenDownCmd(self, minor) source code
 
GenResizeCmd(self, minor, size_mb) source code

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

Static Methods [hide private]
 
_DevPath(minor)
Return the path to a drbd device for a given minor.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, version)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)