Revision e4330db2 snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js | ||
---|---|---|
399 | 399 |
], |
400 | 400 |
}, |
401 | 401 |
|
402 |
set_firewall: function(value, callback, error, options) { |
|
403 |
// MOCK CALL |
|
404 |
window.setTimeout(_.bind(function() { |
|
405 |
var vm = this.get('vm'); |
|
406 |
var attachments = []; |
|
407 |
attachments.push({id: this.id, firewallProfile: value}); |
|
408 |
vm.set({attachments: attachments}); |
|
409 |
}, this), 2000); |
|
410 |
window.setTimeout(_.bind(function() { |
|
411 |
callback(); |
|
412 |
}), 300); |
|
413 |
}, |
|
414 |
|
|
415 | 402 |
disconnect: function(cb) { |
416 | 403 |
var network = this.get('network'); |
417 | 404 |
var vm = this.get('vm'); |
Also available in: Unified diff