Skip to content

Commit 9f8d1e0

Browse files
author
Jessica Wang
committed
CLOUDSTACK-477: cloudstack UI - zone wizard - When Advanced/SecurityGroup is selected, pass forVirtualNetwork=false to createVlanIpRange API.
1 parent 5122cb9 commit 9f8d1e0

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎ui/scripts/zoneWizard.js‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,17 @@
24402440
if(this.endip != null && this.endip.length > 0)
24412441
array1.push("&endip=" + this.endip);
24422442

2443-
array1.push("&forVirtualNetwork=true");
2443+
if(args.data.zone.networkType == "Basic") {
2444+
array1.push("&forVirtualNetwork=true");
2445+
}
2446+
else if(args.data.zone.networkType == "Advanced") {
2447+
if(args.data.zone.isolationMode == "VLAN") { //VLAN
2448+
array1.push("&forVirtualNetwork=true");
2449+
}
2450+
else { //Security Group
2451+
array1.push("&forVirtualNetwork=false");
2452+
}
2453+
}
24442454

24452455
$.ajax({
24462456
url: createURL("createVlanIpRange" + array1.join("")),

0 commit comments

Comments
 (0)