Skip to content

Commit 2a5459d

Browse files
committed
cleanup commented out code
1 parent bff7c01 commit 2a5459d

1 file changed

Lines changed: 0 additions & 62 deletions

File tree

ui/scripts/network.js

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@
8686
});
8787

8888
} else { //non-portable IP which has only one NIC
89-
/*
90-
var nic = $.grep(instance.nic, function(nic) {
91-
return nic.networkid == network.id;
92-
})[0];
93-
*/
94-
9589
// Get NIC IPs
9690
$.ajax({
9791
url: createURL('listNics'),
@@ -170,12 +164,6 @@
170164
});
171165

172166
} else { //non-portable IP which has only one NIC
173-
/*
174-
var nic = $.grep(instance.nic, function(nic) {
175-
return nic.networkid == network.id;
176-
})[0];
177-
*/
178-
179167
// Get NIC IPs
180168
$.ajax({
181169
url: createURL('listNics'),
@@ -1993,8 +1981,6 @@
19931981
$.ajax({
19941982
url: createURL('listZones'),
19951983
data: dataObj,
1996-
// id: args.context.networks[0].zoneid
1997-
// },
19981984
async: false,
19991985
success: function(json) {
20001986
zoneObj = json.listzonesresponse.zone[0];
@@ -3557,49 +3543,6 @@
35573543
}
35583544
}
35593545

3560-
/*$.ajax({
3561-
url: createURL('assignCertToLoadBalancer'),
3562-
data: {certid: certificateData.certificate, lbruleid: lbID},
3563-
success: function(data) {
3564-
var jobID = data.assigncerttoloadbalancerresponse.jobid;
3565-
var lbProtocolCreated = false;
3566-
3567-
args.response.success({
3568-
_custom: {
3569-
jobId: jobID
3570-
},
3571-
notification: {
3572-
label: 'label.add.certificate',
3573-
poll: function(args) {
3574-
var complete = args.complete;
3575-
var error = args.error;
3576-
3577-
pollAsyncJobResult({
3578-
_custom: {
3579-
jobId: jobID
3580-
},
3581-
complete: function(args) {
3582-
if (lbProtocolCreated) return;
3583-
3584-
lbProtocolCreated = true;
3585-
3586-
if (certificateData && certificateData.certificate) {
3587-
cloudStack.lbCertificatePolicy.actions.add(lbID, certificateData, complete, error);
3588-
} else {
3589-
complete();
3590-
}
3591-
},
3592-
error: error
3593-
});
3594-
}
3595-
}
3596-
});
3597-
},
3598-
error: function(data) {
3599-
args.response.error(parseXMLHttpResponse(data));
3600-
}
3601-
});*/
3602-
36033546
$.ajax({
36043547
url: createURL('assignToLoadBalancerRule'),
36053548
data: inputData,
@@ -5972,11 +5915,6 @@
59725915
docID: 'helpVPNGatewayIKEDH',
59735916
select: function(args) {
59745917
var items = [];
5975-
// StrongSwan now requires a DH group to be specified...
5976-
//items.push({
5977-
// id: '',
5978-
// description: _l('label.none')
5979-
//});
59805918
items.push({
59815919
id: 'modp1536',
59825920
description: 'Group 5(modp1536)'

0 commit comments

Comments
 (0)