Extract command generation logic from DRBD8
In order to easily support the DRBD 8.4 command syntax, this patch extracts all command generation logic (i.e. where calls to `drbdsetup` are assembled) into a new class DRBD83CmdGenerator. Signed-off-by:Thomas Thrainer <thomasth@google.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
Showing
- Makefile.am 2 additions, 1 deletionMakefile.am
- lib/block/drbd.py 48 additions, 177 deletionslib/block/drbd.py
- lib/block/drbd_cmdgen.py 235 additions, 0 deletionslib/block/drbd_cmdgen.py
- test/data/bdev-drbd-8.4.txt 7 additions, 1 deletiontest/data/bdev-drbd-8.4.txt
- test/py/ganeti.block.bdev_unittest.py 12 additions, 9 deletionstest/py/ganeti.block.bdev_unittest.py
Loading
Please register or sign in to comment