Revision 5ae4945a tools/burnin
b/tools/burnin | ||
---|---|---|
892 | 892 |
Log("Adding and removing disks") |
893 | 893 |
for instance in self.instances: |
894 | 894 |
Log("instance %s", instance, indent=1) |
895 |
op_add = opcodes.OpInstanceSetParams(\
|
|
895 |
op_add = opcodes.OpInstanceSetParams( |
|
896 | 896 |
instance_name=instance, |
897 | 897 |
disks=[(constants.DDM_ADD, {"size": self.disk_size[0]})]) |
898 |
op_rem = opcodes.OpInstanceSetParams(\
|
|
898 |
op_rem = opcodes.OpInstanceSetParams( |
|
899 | 899 |
instance_name=instance, disks=[(constants.DDM_REMOVE, {})]) |
900 | 900 |
op_stop = self.StopInstanceOp(instance) |
901 | 901 |
op_start = self.StartInstanceOp(instance) |
... | ... | |
909 | 909 |
Log("Adding and removing NICs") |
910 | 910 |
for instance in self.instances: |
911 | 911 |
Log("instance %s", instance, indent=1) |
912 |
op_add = opcodes.OpInstanceSetParams(\
|
|
912 |
op_add = opcodes.OpInstanceSetParams( |
|
913 | 913 |
instance_name=instance, nics=[(constants.DDM_ADD, {})]) |
914 |
op_chg = opcodes.OpInstanceSetParams(\
|
|
914 |
op_chg = opcodes.OpInstanceSetParams( |
|
915 | 915 |
instance_name=instance, nics=[(constants.DDM_MODIFY, |
916 | 916 |
-1, {"mac": constants.VALUE_GENERATE})]) |
917 |
op_rem = opcodes.OpInstanceSetParams(\
|
|
917 |
op_rem = opcodes.OpInstanceSetParams( |
|
918 | 918 |
instance_name=instance, nics=[(constants.DDM_REMOVE, {})]) |
919 | 919 |
Log("adding a NIC", indent=2) |
920 | 920 |
Log("changing a NIC", indent=2) |
Also available in: Unified diff