cloudstack 3.0 new UI - IP address page - create load balancer rule - always pass publicIpId regardless network type.

This commit is contained in:
Jessica Wang 2012-01-24 12:42:30 -08:00
parent ce32ab71c1
commit b4c5f07fca
1 changed files with 6 additions and 6 deletions

View File

@ -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({