Revision 495e2be8 snf-cyclades-app/synnefo/db/models.py
b/snf-cyclades-app/synnefo/db/models.py | ||
---|---|---|
313 | 313 |
serial = models.ForeignKey(QuotaHolderSerial, |
314 | 314 |
related_name='virtual_machine', null=True, |
315 | 315 |
on_delete=models.SET_NULL) |
316 |
router = models.BooleanField('Router', default=False) |
|
317 | 316 |
|
318 | 317 |
# VM State |
319 | 318 |
# The following fields are volatile data, in the sense |
... | ... | |
492 | 491 |
state = models.CharField(choices=OPER_STATES, max_length=32, |
493 | 492 |
default='PENDING') |
494 | 493 |
machines = models.ManyToManyField(VirtualMachine, |
495 |
through='NetworkInterface', |
|
496 |
related_name='networks') |
|
494 |
through='NetworkInterface') |
|
497 | 495 |
action = models.CharField(choices=ACTIONS, max_length=32, null=True, |
498 | 496 |
default=None) |
499 | 497 |
drained = models.BooleanField("Drained", default=False, null=False) |
... | ... | |
957 | 955 |
|
958 | 956 |
class Meta: |
959 | 957 |
ordering = ['-created'] |
960 |
# Copyright 2011-2012 GRNET S.A. All rights reserved. |
Also available in: Unified diff