Skip to content

Commit df55a85

Browse files
author
Jessica Wang
committed
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".
1 parent 4cd5f7d commit df55a85

2 files changed

Lines changed: 27 additions & 49 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13524,11 +13524,7 @@
1352413524
items.push({
1352513525
id: "nfs",
1352613526
description: "nfs"
13527-
});
13528-
items.push({
13529-
id: "SMB",
13530-
description: "SMB/cifs"
13531-
});
13527+
});
1353213528
items.push({
1353313529
id: "SharedMountPoint",
1353413530
description: "SharedMountPoint"
@@ -13549,11 +13545,7 @@
1354913545
items.push({
1355013546
id: "nfs",
1355113547
description: "nfs"
13552-
});
13553-
items.push({
13554-
id: "SMB",
13555-
description: "SMB/cifs"
13556-
});
13548+
});
1355713549
items.push({
1355813550
id: "PreSetup",
1355913551
description: "PreSetup"
@@ -13570,15 +13562,20 @@
1357013562
items.push({
1357113563
id: "nfs",
1357213564
description: "nfs"
13565+
});
13566+
items.push({
13567+
id: "vmfs",
13568+
description: "vmfs"
13569+
});
13570+
args.response.success({
13571+
data: items
1357313572
});
13573+
} else if (selectedClusterObj.hypervisortype == "Hyperv") {
13574+
var items = [];
1357413575
items.push({
1357513576
id: "SMB",
1357613577
description: "SMB/cifs"
1357713578
});
13578-
items.push({
13579-
id: "vmfs",
13580-
description: "vmfs"
13581-
});
1358213579
args.response.success({
1358313580
data: items
1358413581
});
@@ -13587,11 +13584,7 @@
1358713584
items.push({
1358813585
id: "nfs",
1358913586
description: "nfs"
13590-
});
13591-
items.push({
13592-
id: "SMB",
13593-
description: "SMB/cifs"
13594-
});
13587+
});
1359513588
items.push({
1359613589
id: "ocfs2",
1359713590
description: "ocfs2"
@@ -13604,11 +13597,7 @@
1360413597
items.push({
1360513598
id: "nfs",
1360613599
description: "nfs"
13607-
});
13608-
items.push({
13609-
id: "SMB",
13610-
description: "SMB/cifs"
13611-
});
13600+
});
1361213601
items.push({
1361313602
id: "SharedMountPoint",
1361413603
description: "SharedMountPoint"

‎ui/scripts/zoneWizard.js‎

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,11 +1473,7 @@
14731473
items.push({
14741474
id: "nfs",
14751475
description: "nfs"
1476-
});
1477-
items.push({
1478-
id: "SMB",
1479-
description: "SMB/cifs"
1480-
});
1476+
});
14811477
items.push({
14821478
id: "SharedMountPoint",
14831479
description: "SharedMountPoint"
@@ -1494,11 +1490,7 @@
14941490
items.push({
14951491
id: "nfs",
14961492
description: "nfs"
1497-
});
1498-
items.push({
1499-
id: "SMB",
1500-
description: "SMB/cifs"
1501-
});
1493+
});
15021494
items.push({
15031495
id: "PreSetup",
15041496
description: "PreSetup"
@@ -1515,28 +1507,29 @@
15151507
items.push({
15161508
id: "nfs",
15171509
description: "nfs"
1518-
});
1519-
items.push({
1520-
id: "SMB",
1521-
description: "SMB/cifs"
1522-
});
1510+
});
15231511
items.push({
15241512
id: "vmfs",
15251513
description: "vmfs"
15261514
});
15271515
args.response.success({
15281516
data: items
15291517
});
1518+
} else if (selectedClusterObj.hypervisortype == "Hyperv") {
1519+
var items = [];
1520+
items.push({
1521+
id: "SMB",
1522+
description: "SMB/cifs"
1523+
});
1524+
args.response.success({
1525+
data: items
1526+
});
15301527
} else if (selectedClusterObj.hypervisortype == "Ovm") {
15311528
var items = [];
15321529
items.push({
15331530
id: "nfs",
15341531
description: "nfs"
1535-
});
1536-
items.push({
1537-
id: "SMB",
1538-
description: "SMB/cifs"
1539-
});
1532+
});
15401533
items.push({
15411534
id: "ocfs2",
15421535
description: "ocfs2"
@@ -1549,11 +1542,7 @@
15491542
items.push({
15501543
id: "nfs",
15511544
description: "nfs"
1552-
});
1553-
items.push({
1554-
id: "SMB",
1555-
description: "SMB/cifs"
1556-
});
1545+
});
15571546
items.push({
15581547
id: "SharedMountPoint",
15591548
description: "SharedMountPoint"

0 commit comments

Comments
 (0)