Skip to content

Commit a4c413b

Browse files
committed
CLOUDSTACK-537: Fix for instance wizard
When using SG-enabled advanced zone, fix case where 'add guest network' form shows up in select network step -- adding a guest network via the wizard is not supported in this type of setup.
1 parent 6db719d commit a4c413b

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

ui/css/cloudstack3.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5778,6 +5778,10 @@ label.error {
57785778
height: 223px;
57795779
}
57805780

5781+
.multi-wizard.instance-wizard .select-network.no-add-network .select table .select-container {
5782+
height: 282px;
5783+
}
5784+
57815785
.multi-wizard.instance-wizard .select-network .select.new-network table .select-container {
57825786
height: 29px;
57835787
overflow: visible;
@@ -5802,6 +5806,10 @@ label.error {
58025806
margin: -17px 0 0;
58035807
}
58045808

5809+
.multi-wizard.instance-wizard .select-network.no-add-network .select.new-network {
5810+
display: none !important;
5811+
}
5812+
58055813
.multi-wizard.instance-wizard .select-network .main-desc {
58065814
width: 252px;
58075815
top: 12px;

ui/scripts/instanceWizard.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@
284284
$networkStep.find("#from_instance_page_2").show();
285285
$networkStep.find("#from_vpc_tier").text("");
286286
$networkStep.find("#from_vpc_tier").hide();
287+
$networkStepContainer.removeClass('next-use-security-groups');
287288
} else { // Advanced SG-enabled zone
288289
step5ContainerType = 'select-advanced-sg';
289290
}
@@ -384,8 +385,15 @@
384385
});
385386
//get network offerings (end) ***
386387

388+
$networkStepContainer.removeClass('repeat next-use-security-groups');
389+
387390
if (step5ContainerType == 'select-advanced-sg') {
388391
$networkStepContainer.addClass('repeat next-use-security-groups');
392+
393+
// Add guest network is disabled
394+
$networkStepContainer.find('.select-network').addClass('no-add-network');
395+
} else {
396+
$networkStepContainer.find('.select-network').removeClass('no-add-network');
389397
}
390398

391399
args.response.success({

0 commit comments

Comments
 (0)