diff --git a/app/extensions/storidge/components/volume-storidge-info/volumeStoridgeInfo.html b/app/extensions/storidge/components/volume-storidge-info/volumeStoridgeInfo.html index 78449da1d..4792986f3 100644 --- a/app/extensions/storidge/components/volume-storidge-info/volumeStoridgeInfo.html +++ b/app/extensions/storidge/components/volume-storidge-info/volumeStoridgeInfo.html @@ -54,6 +54,14 @@ IOPS Max {{ $ctrl.volume.IOPSMax }} + + Bandwidth Min + {{ $ctrl.volume.BandwidthMin }} + + + Bandwidth Max + {{ $ctrl.volume.BandwidthMax }} + Local Drive Only {{ $ctrl.volume.LocalDriveOnly }} diff --git a/app/extensions/storidge/models/volume.js b/app/extensions/storidge/models/volume.js index f1bc0b36f..a87e5b871 100644 --- a/app/extensions/storidge/models/volume.js +++ b/app/extensions/storidge/models/volume.js @@ -4,6 +4,8 @@ export function StoridgeVolumeModel(data) { this.Directory = data.directory; this.IOPSMax = data.maximumIOPS; this.IOPSMin = data.minimumIOPS; + this.BandwidthMin = data.minimumBandwidth; + this.BandwidthMax = data.maximumBandwidth; this.LocalDriveOnly = data.localDriveOnly; this.Name = data.name; this.Node = data.node; diff --git a/app/extensions/storidge/views/profiles/create/createProfileController.js b/app/extensions/storidge/views/profiles/create/createProfileController.js index 4e5cc46ff..89c0658af 100644 --- a/app/extensions/storidge/views/profiles/create/createProfileController.js +++ b/app/extensions/storidge/views/profiles/create/createProfileController.js @@ -100,7 +100,7 @@ function ($scope, $state, $transition$, Notifications, StoridgeProfileService) { function initView() { var profile = new StoridgeProfileDefaultModel(); profile.Name = $transition$.params().profileName; - profile.Directory = '/cio/' + _.toLower(profile.Name); + profile.Directory = profile.Directory + _.toLower(profile.Name); $scope.model = profile; } diff --git a/app/extensions/storidge/views/profiles/profilesController.js b/app/extensions/storidge/views/profiles/profilesController.js index ce25e36a3..f60d5c6d5 100644 --- a/app/extensions/storidge/views/profiles/profilesController.js +++ b/app/extensions/storidge/views/profiles/profilesController.js @@ -1,3 +1,4 @@ +import _ from 'lodash-es'; import { StoridgeProfileDefaultModel } from '../../models/profile'; angular.module('extension.storidge') @@ -37,7 +38,11 @@ function ($q, $scope, $state, Notifications, StoridgeProfileService) { var model = new StoridgeProfileDefaultModel(); model.Labels = {}; model.Name = $scope.formValues.Name; - model.Directory = model.Directory + model.Name; + model.Directory = model.Directory + _.toLower(model.Name); + delete model.MinBandwidth; + delete model.MaxBandwidth; + delete model.MinIOPS; + delete model.MaxIOPS; $scope.state.actionInProgress = true; StoridgeProfileService.create(model)