Revision a37c5497 snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js
158 158
          this.update_connecting_status();
159 159
        }, this);
160 160
        this.set({ports: this.ports});
161

  
162
        this.connectable_vms = new Backbone.FilteredCollection(undefined, {
163
          collection: synnefo.storage.vms,
164
          collectionFilter: function(m) {
165
            return m.can_connect();
166
          }
167
        });
161 168
      },
162 169
      
163 170
      update_connecting_status: function() {
......
178 185
        return this.get('router:external')
179 186
      },
180 187

  
181
      pluggable_vms: function() {
182
        var vms = synnefo.storage.vms.models;
183
        // TODO: filter out vms
184
        return vms;
185
      },
186
      
187 188
      connect_vm: function(vm, cb) {
188 189
        var self = this;
189 190
        var data = {

Also available in: Unified diff