@@ -880,32 +880,6 @@ public DiskProfile allocateRawVolume(Type type, String name, DiskOffering offeri
880880 return diskProfile ;
881881 }
882882
883- @ Override
884- public void saveVolumeDetails (Long diskOfferingId , Long volumeId ) {
885- List <VolumeDetailVO > volumeDetailsVO = new ArrayList <>();
886- DiskOfferingDetailVO bandwidthLimitDetail = _diskOfferingDetailDao .findDetail (diskOfferingId , Volume .BANDWIDTH_LIMIT_IN_MBPS );
887- if (bandwidthLimitDetail != null ) {
888- volumeDetailsVO .add (new VolumeDetailVO (volumeId , Volume .BANDWIDTH_LIMIT_IN_MBPS , bandwidthLimitDetail .getValue (), false ));
889- } else {
890- VolumeDetailVO bandwidthLimit = _volDetailDao .findDetail (volumeId , Volume .BANDWIDTH_LIMIT_IN_MBPS );
891- if (bandwidthLimit != null ) {
892- _volDetailDao .remove (bandwidthLimit .getId ());
893- }
894- }
895- DiskOfferingDetailVO iopsLimitDetail = _diskOfferingDetailDao .findDetail (diskOfferingId , Volume .IOPS_LIMIT );
896- if (iopsLimitDetail != null ) {
897- volumeDetailsVO .add (new VolumeDetailVO (volumeId , Volume .IOPS_LIMIT , iopsLimitDetail .getValue (), false ));
898- } else {
899- VolumeDetailVO iopsLimit = _volDetailDao .findDetail (volumeId , Volume .IOPS_LIMIT );
900- if (iopsLimit != null ) {
901- _volDetailDao .remove (iopsLimit .getId ());
902- }
903- }
904- if (!volumeDetailsVO .isEmpty ()) {
905- _volDetailDao .saveDetails (volumeDetailsVO );
906- }
907- }
908-
909883 private DiskProfile allocateTemplatedVolume (Type type , String name , DiskOffering offering , Long rootDisksize , Long minIops , Long maxIops , VirtualMachineTemplate template , VirtualMachine vm ,
910884 Account owner , long deviceId , String configurationId ) {
911885 assert (template .getFormat () != ImageFormat .ISO ) : "ISO is not a template." ;
0 commit comments