class documentation
class BaseShowInfo(object):
Known subclasses: ganeti.storage.drbd_info.DRBD83ShowInfo
, ganeti.storage.drbd_info.DRBD84ShowInfo
Base class for parsing the `drbdsetup show` output.
Holds various common pyparsing expressions which are used by subclasses. Also provides caching of the constructed parser.
Class Method |
|
Parse details about a given DRBD minor. |
Class Method | _ |
Undocumented |
Class Method | _ |
Return a parser for `drbd show` output. |
Class Method | _ |
Undocumented |
Constant | _PARSE |
Undocumented |
Class Variable | _colon |
Undocumented |
Class Variable | _comment |
Undocumented |
Class Variable | _dbl |
Undocumented |
Class Variable | _defa |
Undocumented |
Class Variable | _device |
Undocumented |
Class Variable | _ipv4 |
Undocumented |
Class Variable | _ipv6 |
Undocumented |
Class Variable | _keyword |
Undocumented |
Class Variable | _lbrace |
Undocumented |
Class Variable | _lbracket |
Undocumented |
Class Variable | _meta |
Undocumented |
Class Variable | _number |
Undocumented |
Class Variable | _quoted |
Undocumented |
Class Variable | _rbrace |
Undocumented |
Class Variable | _rbracket |
Undocumented |
Class Variable | _semi |
Undocumented |
Class Variable | _stmt |
Undocumented |
Class Variable | _value |
Undocumented |
Parse details about a given DRBD minor.
This returns, if available, the local backing device (as a path) and the local and remote (ip, port) information from a string containing the output of the `drbdsetup show` command as returned by DRBD8Dev._GetShowData.
This will return a dict with keys:
- local_dev
- meta_dev
- meta_index
- local_addr
- remote_addr
Return a parser for `drbd show` output.
This will either create or return an already-created parser for the output of the command `drbd show`.