CLOUDSTACK-999: hyper-V: UI > Add Primary Storage > when hypervisor type of selected cluster is Hyperv, populate Protocol dropdown with only one option "SMB/cifs".

This commit is contained in:
Jessica Wang 2013-11-14 11:41:32 -08:00
parent 4cd5f7dc48
commit df55a85109
2 changed files with 28 additions and 50 deletions

View File

@ -13524,11 +13524,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "SharedMountPoint",
description: "SharedMountPoint"
@ -13549,11 +13545,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "PreSetup",
description: "PreSetup"
@ -13570,11 +13562,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "vmfs",
description: "vmfs"
@ -13582,16 +13570,21 @@
args.response.success({
data: items
});
} else if (selectedClusterObj.hypervisortype == "Hyperv") {
var items = [];
items.push({
id: "SMB",
description: "SMB/cifs"
});
args.response.success({
data: items
});
} else if (selectedClusterObj.hypervisortype == "Ovm") {
var items = [];
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "ocfs2",
description: "ocfs2"
@ -13604,11 +13597,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "SharedMountPoint",
description: "SharedMountPoint"

View File

@ -1473,11 +1473,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "SharedMountPoint",
description: "SharedMountPoint"
@ -1494,11 +1490,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "PreSetup",
description: "PreSetup"
@ -1515,11 +1507,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "vmfs",
description: "vmfs"
@ -1527,16 +1515,21 @@
args.response.success({
data: items
});
} else if (selectedClusterObj.hypervisortype == "Hyperv") {
var items = [];
items.push({
id: "SMB",
description: "SMB/cifs"
});
args.response.success({
data: items
});
} else if (selectedClusterObj.hypervisortype == "Ovm") {
var items = [];
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "ocfs2",
description: "ocfs2"
@ -1549,11 +1542,7 @@
items.push({
id: "nfs",
description: "nfs"
});
items.push({
id: "SMB",
description: "SMB/cifs"
});
});
items.push({
id: "SharedMountPoint",
description: "SharedMountPoint"