class documentation
class DRBD8Info(object):
Represents information DRBD exports (usually via /proc/drbd).
An instance of this class is created by one of the CreateFrom... methods.
Static Method |
|
Undocumented |
Static Method |
|
Undocumented |
Method | __init__ |
Undocumented |
Method |
|
Return a list of minor for which information is available. |
Method |
|
Undocumented |
Method |
|
Return the DRBD version. |
Method |
|
Return the DRBD version as a single string. |
Method |
|
Undocumented |
Method | _ |
Transform the raw lines into a dictionary based on the minor. |
Method | _ |
Undocumented |
Constant | _VALID |
Undocumented |
Constant | _VERSION |
Undocumented |
Instance Variable | _line |
Undocumented |
Instance Variable | _minors |
Undocumented |
Instance Variable | _version |
Undocumented |
Return a list of minor for which information is available.
This list is ordered in exactly the order which was found in the underlying data.
Return the DRBD version.
This will return a dict with keys:
- k_major
- k_minor
- k_point
- k_fix (only on some drbd versions)
- k_fix_separator (only when k_fix is present)
- api
- proto
- proto2 (only on drbd > 8.2.X)
Transform the raw lines into a dictionary based on the minor.
Returns | |
a dictionary of minor: joined lines from /proc/drbd for that minor |
_VERSION_RE =
¶
Undocumented
Value |
|