VMware: factor out management of controller keys and unit numbers
This patch encapsulates the allocation of controller key and unit
number for a new virtual disk/CDROM into utility function.
This way high-level methods like spawn, rescue, etc. don't have
to deal with implementation details like the above and the
algorithm for allocating controller_key and unit_number is
clearly defined and can be easily reused.
Reviewed: https:/ /review. openstack. org/66523 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ecdc5728ca8 49fd19d01c2a69c f07bf0989e8567
Committed: https:/
Submitter: Jenkins
Branch: master
commit ecdc5728ca849fd 19d01c2a69cf07b f0989e8567
Author: Radoslav Gerganov <email address hidden>
Date: Tue Jan 14 11:02:07 2014 +0200
VMware: factor out management of controller keys and unit numbers
This patch encapsulates the allocation of controller key and unit
number for a new virtual disk/CDROM into utility function.
This way high-level methods like spawn, rescue, etc. don't have
to deal with implementation details like the above and the
algorithm for allocating controller_key and unit_number is
clearly defined and can be easily reused.
Change-Id: Ia6d5db5d5c5fa2 5f680eae82892dc b9b2be864fa
Closes-Bug: #1259981