Commit f41b569f authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Fix testMasterNetmask in TestLUClusterSetParams



The netmask was previously wrongly given as a bitmask, now it's given as
the net prefix length.
Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 6b604e1d
......@@ -419,9 +419,9 @@ class TestLUClusterSetParams(CmdlibTestCase):
self.assertEqual(additional_pool, self.cluster.uid_pool)
def testMasterNetmask(self):
op = opcodes.OpClusterSetParams(master_netmask=0xFFFF0000)
op = opcodes.OpClusterSetParams(master_netmask=26)
self.ExecOpCode(op)
self.assertEqual(0xFFFF0000, self.cluster.master_netmask)
self.assertEqual(26, self.cluster.master_netmask)
def testInvalidDiskparams(self):
for diskparams in [{constants.DT_DISKLESS: {constants.LV_STRIPES: 0}},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment