mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02: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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//temporary until Alena fixes listNetworks API to return both isolated and shared networks in one call
|
|
||||||
var networkObjs1 = [];
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listNetworks&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
|
url: createURL("listNetworks&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
|
||||||
data: {
|
data: {
|
||||||
type: 'isolated',
|
|
||||||
supportedServices: 'SourceNat',
|
|
||||||
listAll: true
|
listAll: true
|
||||||
},
|
},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
async: false,
|
async: false,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if(data.listnetworksresponse.network != null && data.listnetworksresponse.network.length > 0)
|
args.response.success({
|
||||||
networkObjs1 = data.listnetworksresponse.network;
|
data: data.listnetworksresponse.network
|
||||||
|
});
|
||||||
},
|
},
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
args.response.error(parseXMLHttpResponse(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: {
|
detailView: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user