mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
CLOUDSTACK-1251: cloudstack UI - zBaremetal - zone wizard - when hypervisor is BareMetal, click Next button in Guest Traffic step will finish the whole process.
This commit is contained in:
parent
4b7dbbe5cd
commit
ceb44aca30
@ -1210,7 +1210,18 @@
|
||||
if (($form && $form.find('.error:visible').size()) || !isCustomValidated)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//when hypervisor is BareMetal (begin)
|
||||
var data = getData($wizard);
|
||||
if(('zone' in data) && (data.zone.hypervisor == 'BareMetal')) {
|
||||
if($('.zone-wizard:visible').find('#add_zone_guest_traffic_desc:visible').size() > 0) { //$steps.filter(':visible').index() == 6
|
||||
showStep('launch');
|
||||
completeAction();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//when hypervisor is BareMetal (end)
|
||||
|
||||
if (!$target.closest('.button.next.final').size())
|
||||
showStep($steps.filter(':visible').index() + 2);
|
||||
else {
|
||||
|
||||
@ -2735,9 +2735,17 @@
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
args.data.returnedGuestNetwork.returnedVlanIpRange = json.createvlaniprangeresponse.vlan;
|
||||
stepFns.addCluster({
|
||||
data: args.data
|
||||
});
|
||||
|
||||
//when hypervisor is BareMetal (begin)
|
||||
if(args.data.cluster.hypervisor == "BareMetal") {
|
||||
alert('Zone creation is completed. Please refresh this page.');
|
||||
}
|
||||
else {
|
||||
stepFns.addCluster({
|
||||
data: args.data
|
||||
});
|
||||
}
|
||||
//when hypervisor is BareMetal (end)
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user