A DRBD status representation class.
Note that this doesn't support unconfigured devices
(cs:Unconfigured).
|
UNCONF_RE = re.compile(r"\s*[0-9]+:\s*cs:Unconfigured$")
|
|
LINE_RE = re.compile(r"\s*[0-9]+:\s*cs:(\S+)\s+(?:st|ro):([^/]...
|
|
SYNC_RE = re.compile(r"^.*\ssync'ed:\s*([0-9.]+)%.*" "\sfinish...
|
|
CS_UNCONFIGURED = "Unconfigured"
|
|
CS_STANDALONE = "StandAlone"
|
|
CS_WFCONNECTION = "WFConnection"
|
|
CS_WFREPORTPARAMS = "WFReportParams"
|
|
CS_CONNECTED = "Connected"
|
|
CS_STARTINGSYNCS = "StartingSyncS"
|
|
CS_STARTINGSYNCT = "StartingSyncT"
|
|
CS_WFBITMAPS = "WFBitMapS"
|
|
CS_WFBITMAPT = "WFBitMapT"
|
|
CS_WFSYNCUUID = "WFSyncUUID"
|
|
CS_SYNCSOURCE = "SyncSource"
|
|
CS_SYNCTARGET = "SyncTarget"
|
|
CS_PAUSEDSYNCS = "PausedSyncS"
|
|
CS_PAUSEDSYNCT = "PausedSyncT"
|
|
CSET_SYNC = frozenset([CS_WFREPORTPARAMS, CS_STARTINGSYNCS, CS...
|
|
DS_DISKLESS = "Diskless"
|
|
DS_ATTACHING = "Attaching"
|
|
DS_FAILED = "Failed"
|
|
DS_NEGOTIATING = "Negotiating"
|
|
DS_INCONSISTENT = "Inconsistent"
|
|
DS_OUTDATED = "Outdated"
|
|
DS_DUNKNOWN = "DUnknown"
|
|
DS_CONSISTENT = "Consistent"
|
|
DS_UPTODATE = "UpToDate"
|
|
RO_PRIMARY = "Primary"
|
|
RO_SECONDARY = "Secondary"
|
|
RO_UNKNOWN = "Unknown"
|