Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / models / network.js @ b83df8e7

History | View | Annotate | Download (615 Bytes)

1
Snf.Network = DS.Model.extend({
2

    
3
    name       : DS.attr(),
4
    status     : DS.attr(),
5
    ports      : DS.hasMany('port', { async:true }),
6

    
7
    /* TODO
8

9
    enabledActions: function() {
10
        return statusActionsNetwork[this.get('status')].enabledActions;
11
    }.property('status'),*/
12

    
13
});
14

    
15

    
16
Snf.Network.FIXTURES = [
17
    {
18
        id: 1,
19
        name: 'Network 1',
20
        status: 'running',
21
        ports: [1,3,4,6],
22
    },
23
    {
24
        id: 2,
25
        name: 'Network 2',
26
        status: 'building',
27
        ports: [2,5],
28
    },
29
    {
30
        id: 3,
31
        name: 'Network 3',
32
        status: 'off',
33
    },
34
];