mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5359: UI > Infrastructure > Clusters > Add Cluster > Public Traffic vSwitch Type field, Guest Traffic vSwitch Type field > do not pass the value of the form field to API call when the the form field is not displaying.
This commit is contained in:
parent
d3af2de730
commit
59e1e9bbd5
|
|
@ -14179,19 +14179,20 @@
|
|||
array1.push("&password=" + todb(args.data.vCenterPassword));
|
||||
|
||||
//vSwitch Public Type
|
||||
if (args.data.vSwitchPublicType != "")
|
||||
array1.push("&publicvswitchtype=" + args.data.vSwitchPublicType);
|
||||
|
||||
if (args.data.vSwitchPublicName != "")
|
||||
array1.push("&publicvswitchname=" + args.data.vSwitchPublicName);
|
||||
|
||||
if (args.$form.find('.form-item[rel=vSwitchPublicType]').css('display') != 'none' && args.data.vSwitchPublicType != "") {
|
||||
array1.push("&publicvswitchtype=" + args.data.vSwitchPublicType);
|
||||
}
|
||||
if (args.$form.find('.form-item[rel=vSwitchPublicName]').css('display') != 'none' && args.data.vSwitchPublicName != "") {
|
||||
array1.push("&publicvswitchname=" + args.data.vSwitchPublicName);
|
||||
}
|
||||
|
||||
//vSwitch Guest Type
|
||||
if (args.data.vSwitchGuestType != "")
|
||||
array1.push("&guestvswitchtype=" + args.data.vSwitchGuestType);
|
||||
|
||||
if (args.data.vSwitchGuestName != "")
|
||||
array1.push("&guestvswitchname=" + args.data.vSwitchGuestName);
|
||||
if (args.$form.find('.form-item[rel=vSwitchGuestType]').css('display') != 'none' && args.data.vSwitchGuestType != "") {
|
||||
array1.push("&guestvswitchtype=" + args.data.vSwitchGuestType);
|
||||
}
|
||||
if (args.$form.find('.form-item[rel=vSwitchGuestName]').css('display') != 'none' && args.data.vSwitchGuestName != "") {
|
||||
array1.push("&guestvswitchname=" + args.data.vSwitchGuestName);
|
||||
}
|
||||
|
||||
//Nexus VSM fields
|
||||
if (args.$form.find('.form-item[rel=vsmipaddress]').css('display') != 'none' && args.data.vsmipaddress != null && args.data.vsmipaddress.length > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue