Revision 1af851fd snf-cyclades-app/synnefo/db/models.py

b/snf-cyclades-app/synnefo/db/models.py
240 240
        ('STOP', 'Shutdown VM'),
241 241
        ('SUSPEND', 'Admin Suspend VM'),
242 242
        ('REBOOT', 'Reboot VM'),
243
        ('DESTROY', 'Destroy VM')
243
        ('DESTROY', 'Destroy VM'),
244
        ('RESIZE', 'Resize a VM'),
244 245
    )
245 246

  
246 247
    # The internal operating state of a VM
......
249 250
        ('ERROR', 'Creation failed'),
250 251
        ('STOPPED', 'Stopped'),
251 252
        ('STARTED', 'Started'),
252
        ('DESTROYED', 'Destroyed')
253
        ('DESTROYED', 'Destroyed'),
254
        ('RESIZE', 'Resizing')
253 255
    )
254 256

  
255 257
    # The list of possible operations on the backend
......
304 306
        "ERROR": "ERROR",
305 307
        "STOPPED": "STOPPED",
306 308
        "STARTED": "ACTIVE",
307
        "DESTROYED": "DELETED"
309
        "DESTROYED": "DELETED",
310
        "RESIZE": "RESIZE"
308 311
    }
309 312

  
310 313
    name = models.CharField('Virtual Machine Name', max_length=255)

Also available in: Unified diff