mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 new UI - IP address page - create load balancer rule - always pass publicIpId regardless network type.
This commit is contained in:
parent
ce32ab71c1
commit
b4c5f07fca
|
|
@ -1569,9 +1569,9 @@
|
|||
var stickyData = $.extend(true, {}, args.data.sticky);
|
||||
|
||||
var apiCmd = "createLoadBalancerRule";
|
||||
if(args.context.networks[0].type == "Shared")
|
||||
apiCmd += "&domainid=" + g_domainid + "&account=" + g_account;
|
||||
else //args.context.networks[0].type == "Isolated"
|
||||
//if(args.context.networks[0].type == "Shared")
|
||||
//apiCmd += "&domainid=" + g_domainid + "&account=" + g_account;
|
||||
//else //args.context.networks[0].type == "Isolated"
|
||||
apiCmd += "&publicipid=" + args.context.ipAddresses[0].id;
|
||||
|
||||
$.ajax({
|
||||
|
|
@ -1725,9 +1725,9 @@
|
|||
},
|
||||
dataProvider: function(args) {
|
||||
var apiCmd = "listLoadBalancerRules";
|
||||
if(args.context.networks[0].type == "Shared")
|
||||
apiCmd += "&domainid=" + g_domainid + "&account=" + g_account;
|
||||
else //args.context.networks[0].type == "Isolated"
|
||||
//if(args.context.networks[0].type == "Shared")
|
||||
// apiCmd += "&domainid=" + g_domainid + "&account=" + g_account;
|
||||
//else //args.context.networks[0].type == "Isolated"
|
||||
apiCmd += "&publicipid=" + args.context.ipAddresses[0].id;
|
||||
|
||||
$.ajax({
|
||||
|
|
|
|||
Loading…
Reference in New Issue