Revision 33ca83e9
b/lib/config.py | ||
---|---|---|
413 | 413 |
if net_uuid: |
414 | 414 |
return self._UnlockedReserveIp(net_uuid, address, ec_id) |
415 | 415 |
|
416 |
@locking.ssynchronized(_config_lock) |
|
417 |
def UpdateDeviceUniqueIdx(self, instance, dev_type): |
|
418 |
|
|
419 |
instance.dev_idxs[dev_type] += 1 |
|
420 |
self._WriteConfig() |
|
421 |
|
|
416 | 422 |
@locking.ssynchronized(_config_lock, shared=1) |
417 | 423 |
def ReserveLV(self, lv_name, ec_id): |
418 | 424 |
"""Reserve an VG/LV pair for an instance. |
Also available in: Unified diff