Revision 9a3cc7ae tools/burnin
b/tools/burnin | ||
---|---|---|
863 | 863 |
Log("Adding and removing disks") |
864 | 864 |
for instance in self.instances: |
865 | 865 |
Log("instance %s", instance, indent=1) |
866 |
op_add = opcodes.OpSetInstanceParams(\
|
|
866 |
op_add = opcodes.OpInstanceSetParams(\
|
|
867 | 867 |
instance_name=instance, |
868 | 868 |
disks=[(constants.DDM_ADD, {"size": self.disk_size[0]})]) |
869 |
op_rem = opcodes.OpSetInstanceParams(\
|
|
869 |
op_rem = opcodes.OpInstanceSetParams(\
|
|
870 | 870 |
instance_name=instance, disks=[(constants.DDM_REMOVE, {})]) |
871 | 871 |
op_stop = self.StopInstanceOp(instance) |
872 | 872 |
op_start = self.StartInstanceOp(instance) |
... | ... | |
880 | 880 |
Log("Adding and removing NICs") |
881 | 881 |
for instance in self.instances: |
882 | 882 |
Log("instance %s", instance, indent=1) |
883 |
op_add = opcodes.OpSetInstanceParams(\
|
|
883 |
op_add = opcodes.OpInstanceSetParams(\
|
|
884 | 884 |
instance_name=instance, nics=[(constants.DDM_ADD, {})]) |
885 |
op_rem = opcodes.OpSetInstanceParams(\
|
|
885 |
op_rem = opcodes.OpInstanceSetParams(\
|
|
886 | 886 |
instance_name=instance, nics=[(constants.DDM_REMOVE, {})]) |
887 | 887 |
Log("adding a NIC", indent=2) |
888 | 888 |
Log("removing last NIC", indent=2) |
Also available in: Unified diff