Revision 365af933 snf-cyclades-app/synnefo/ui/static/snf/js/models.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
690 | 690 |
}, |
691 | 691 |
|
692 | 692 |
initialize: function(params) { |
693 |
|
|
693 |
var self = this; |
|
694 |
this.ports = new Backbone.FilteredCollection(undefined, { |
|
695 |
collection: synnefo.storage.ports, |
|
696 |
collectionFilter: function(m) { |
|
697 |
return self.id == m.get('device_id') |
|
698 |
}}); |
|
699 |
|
|
694 | 700 |
this.pending_firewalls = {}; |
695 | 701 |
|
696 | 702 |
models.VM.__super__.initialize.apply(this, arguments); |
697 | 703 |
|
704 |
|
|
698 | 705 |
this.set({state: params.status || "ERROR"}); |
699 | 706 |
this.log = new snf.logging.logger("VM " + this.id); |
700 | 707 |
this.pending_action = undefined; |
Also available in: Unified diff