mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 13553: network page - display all networks instead of only isolated networks with SourceNAT, shared networks with LB, StaticNat,SecurityGroup.
This commit is contained in:
parent
5bfe6be091
commit
c6a78e056d
@ -259,46 +259,23 @@
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//temporary until Alena fixes listNetworks API to return both isolated and shared networks in one call
|
||||
var networkObjs1 = [];
|
||||
}
|
||||
$.ajax({
|
||||
url: createURL("listNetworks&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
|
||||
data: {
|
||||
type: 'isolated',
|
||||
supportedServices: 'SourceNat',
|
||||
data: {
|
||||
listAll: true
|
||||
},
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
success: function(data) {
|
||||
if(data.listnetworksresponse.network != null && data.listnetworksresponse.network.length > 0)
|
||||
networkObjs1 = data.listnetworksresponse.network;
|
||||
success: function(data) {
|
||||
args.response.success({
|
||||
data: data.listnetworksresponse.network
|
||||
});
|
||||
},
|
||||
error: function(data) {
|
||||
args.response.error(parseXMLHttpResponse(data));
|
||||
}
|
||||
});
|
||||
var networkObjs2 = [];
|
||||
$.ajax({
|
||||
url: createURL("listNetworks&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
|
||||
data: {
|
||||
type: 'shared',
|
||||
supportedServices: 'Lb,StaticNat,SecurityGroup',
|
||||
listAll: true
|
||||
},
|
||||
async: false,
|
||||
success: function(data) {
|
||||
if(data.listnetworksresponse.network != null && data.listnetworksresponse.network.length > 0)
|
||||
networkObjs2 = data.listnetworksresponse.network;
|
||||
}
|
||||
});
|
||||
|
||||
var networkObjs = $.extend(networkObjs1, networkObjs2);
|
||||
args.response.success({
|
||||
data: networkObjs
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
detailView: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user