mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-477: cloudstack UI - zone wizard - When Advanced/SecurityGroup is selected, pass forVirtualNetwork=false to createVlanIpRange API.
This commit is contained in:
parent
5122cb9553
commit
9f8d1e0048
@ -2440,7 +2440,17 @@
|
||||
if(this.endip != null && this.endip.length > 0)
|
||||
array1.push("&endip=" + this.endip);
|
||||
|
||||
array1.push("&forVirtualNetwork=true");
|
||||
if(args.data.zone.networkType == "Basic") {
|
||||
array1.push("&forVirtualNetwork=true");
|
||||
}
|
||||
else if(args.data.zone.networkType == "Advanced") {
|
||||
if(args.data.zone.isolationMode == "VLAN") { //VLAN
|
||||
array1.push("&forVirtualNetwork=true");
|
||||
}
|
||||
else { //Security Group
|
||||
array1.push("&forVirtualNetwork=false");
|
||||
}
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: createURL("createVlanIpRange" + array1.join("")),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user