diff --git a/app/extensions/storidge/models/profile.js b/app/extensions/storidge/models/profile.js index 8c17e3d45..2e880c01b 100644 --- a/app/extensions/storidge/models/profile.js +++ b/app/extensions/storidge/models/profile.js @@ -13,7 +13,6 @@ export function StoridgeProfileDefaultModel() { this.SnapshotInterval = 1440; this.SnapshotMax = 1; this.EncryptionEnabled = false; - // this.InterfaceType = 'nfs'; this.InterfaceType = ''; this.InterfaceDriver = ''; this.InterfaceNetwork = ''; @@ -118,11 +117,14 @@ export function StoridgeCreateProfileRequest(model) { this.service = service; this.interface = { - type: model.InterfaceType, driver: model.InterfaceDriver, network: model.InterfaceNetwork, conf: model.InterfaceConf }; + if (model.InterfaceType) { + this.interface.type = model.InterfaceType; + } + this.label = model.Labels; } diff --git a/app/extensions/storidge/models/volume.js b/app/extensions/storidge/models/volume.js index 1c075983e..f1bc0b36f 100644 --- a/app/extensions/storidge/models/volume.js +++ b/app/extensions/storidge/models/volume.js @@ -1,10 +1,10 @@ export function StoridgeVolumeModel(data) { - this.Allocated = data['alloc percent']; + this.Allocated = data.allocated; this.Capacity = data.capacity; this.Directory = data.directory; - this.IOPSMax = data.iopsmax; - this.IOPSMin = data.iopsmin; - this.LocalDriveOnly = data.localdriveonly; + this.IOPSMax = data.maximumIOPS; + this.IOPSMin = data.minimumIOPS; + this.LocalDriveOnly = data.localDriveOnly; this.Name = data.name; this.Node = data.node; this.NodeID = data.nodeid; @@ -15,11 +15,11 @@ export function StoridgeVolumeModel(data) { this.Labels = data.labels; this.IP = data.ipaddr; - this.DriveType = data.type; + this.DriveType = data.driveType; this.Encryption = data.encryption; this.SnapshotEnabled = data.snapshot; - this.SnapshotInterval = data.snapinterval; - this.SnapshotMax = data.snapmax; + this.SnapshotInterval = data.snapInterval; + this.SnapshotMax = data.maximumSnapshots; this.Filesystem = data.filesystem; } diff --git a/app/extensions/storidge/views/nodes/inspect/node.html b/app/extensions/storidge/views/nodes/inspect/node.html index 6819c7c60..750f7270e 100644 --- a/app/extensions/storidge/views/nodes/inspect/node.html +++ b/app/extensions/storidge/views/nodes/inspect/node.html @@ -11,15 +11,15 @@