Skip to content

Commit a902443

Browse files
author
Jessica Wang
committed
CS-15792: cloudstack 3.0 UI - VPC - pass domainid+account instead of listAll to all listNetworks API calls under VPC section.
1 parent babc868 commit a902443

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

ui/scripts/network.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,8 +1383,10 @@
13831383
async: false,
13841384
data: {
13851385
vpcid: args.context.vpc[0].id,
1386-
listAll: true,
1387-
supportedservices: 'StaticNat'
1386+
//listAll: true, //do not pass listAll to listNetworks under VPC
1387+
domainid: args.context.vpc[0].domainid,
1388+
account: args.context.vpc[0].account,
1389+
supportedservices: 'StaticNat'
13881390
},
13891391
success: function(json) {
13901392
var networks = json.listnetworksresponse.network;
@@ -2208,12 +2210,14 @@
22082210
select: function(args) {
22092211
if('vpc' in args.context) {
22102212
var data = {
2211-
listAll: true,
2213+
//listAll: true, //do not pass listAll to listNetworks under VPC
22122214
supportedservices: 'Lb'
22132215
};
22142216
if(args.context.ipAddresses[0].associatednetworkid == null) {
22152217
$.extend(data, {
2216-
vpcid: args.context.vpc[0].id
2218+
vpcid: args.context.vpc[0].id,
2219+
domainid: args.context.vpc[0].domainid,
2220+
account: args.context.vpc[0].account
22172221
});
22182222
}
22192223
else {
@@ -2615,12 +2619,14 @@
26152619
select: function(args) {
26162620
if('vpc' in args.context) {
26172621
var data = {
2618-
listAll: true,
2622+
//listAll: true, //do not pass listAll to listNetworks under VPC
26192623
supportedservices: 'PortForwarding'
26202624
};
26212625
if(args.context.ipAddresses[0].associatednetworkid == null) {
26222626
$.extend(data, {
2623-
vpcid: args.context.vpc[0].id
2627+
vpcid: args.context.vpc[0].id,
2628+
domainid: args.context.vpc[0].domainid,
2629+
account: args.context.vpc[0].account
26242630
});
26252631
}
26262632
else {

ui/scripts/vpc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,9 @@
19001900
dataType: "json",
19011901
data: {
19021902
vpcid: args.context.vpc[0].id,
1903-
listAll: true
1903+
//listAll: true, //do not pass listAll to listNetworks under VPC
1904+
domainid: args.context.vpc[0].domainid,
1905+
account: args.context.vpc[0].account
19041906
},
19051907
async: true,
19061908
success: function(json) {

0 commit comments

Comments
 (0)