Extract DRBD info parsing into drbd_info.py
authorThomas Thrainer <thomasth@google.com>
Mon, 29 Apr 2013 11:51:23 +0000 (13:51 +0200)
committerMichele Tartara <mtartara@google.com>
Mon, 29 Apr 2013 16:05:33 +0000 (16:05 +0000)
commit27d69b25245492300f4174856dc772986dfff484
tree8f81b4241f036f3bfe8e727cda4e492831d96c5a
parentd01e51a56d7a934ea9f4a2d454cf2f770f9e8cfd
Extract DRBD info parsing into drbd_info.py

Parsing the status (/proc/drbd) and `drbdsetup show` output takes quite
a bit of code, which has to be augmented by even more with the DRBD 8.4
support. So extract all the related classes into their own file.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
Makefile.am
lib/block/drbd.py
lib/block/drbd_info.py [new file with mode: 0644]
test/py/ganeti.block.bdev_unittest.py