mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'origin/4.13'
This commit is contained in:
commit
f72f39cd11
@ -65,11 +65,15 @@ def handleMigrateBegin():
|
||||
bridge = source.getAttribute("bridge")
|
||||
if isOldStyleBridge(bridge):
|
||||
vlanId = bridge.replace("cloudVirBr", "")
|
||||
phyDev = getGuestNetworkDevice()
|
||||
elif isNewStyleBridge(bridge):
|
||||
vlanId = re.sub(r"br(\w+)-", "", bridge)
|
||||
phyDev = re.sub(r"-(\d+)$", "" , re.sub(r"^br", "" ,bridge))
|
||||
netlib = networkConfig()
|
||||
if not netlib.isNetworkDev(phyDev):
|
||||
phyDev = getGuestNetworkDevice()
|
||||
else:
|
||||
continue
|
||||
phyDev = getGuestNetworkDevice()
|
||||
newBrName = "br" + phyDev + "-" + vlanId
|
||||
source.setAttribute("bridge", newBrName)
|
||||
print(domain.toxml())
|
||||
|
||||
@ -673,8 +673,6 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
||||
zoneId = snapshotCheck.getDataCenterId();
|
||||
}
|
||||
|
||||
_configMgr.checkDiskOfferingAccess(null, diskOffering, _dcDao.findById(zoneId));
|
||||
|
||||
if (diskOffering == null) { // Pure snapshot is being used to create volume.
|
||||
diskOfferingId = snapshotCheck.getDiskOfferingId();
|
||||
diskOffering = _diskOfferingDao.findById(diskOfferingId);
|
||||
@ -689,6 +687,8 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
||||
}
|
||||
}
|
||||
|
||||
_configMgr.checkDiskOfferingAccess(null, diskOffering, _dcDao.findById(zoneId));
|
||||
|
||||
// check snapshot permissions
|
||||
_accountMgr.checkAccess(caller, null, true, snapshotCheck);
|
||||
|
||||
|
||||
@ -88,9 +88,9 @@
|
||||
|
||||
// Make sure the master checkbox is unselected
|
||||
if (multiSelect) {
|
||||
var $listView = $instanceRow.closest('.list-view');
|
||||
$listView.find('input.multiSelectMasterCheckbox').prop('checked', false);
|
||||
toggleMultiSelectActions($listView, false);
|
||||
var $listView2 = $instanceRow.closest('.list-view');
|
||||
$listView2.find('input.multiSelectMasterCheckbox').prop('checked', false);
|
||||
toggleMultiSelectActions($listView2, false);
|
||||
}
|
||||
|
||||
var externalLinkAction = action.externalLink;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user