Revision b2272468 snf-cyclades-app/synnefo/db/models.py

b/snf-cyclades-app/synnefo/db/models.py
701 701
    def __unicode__(self):
702 702
        return '%s@%s' % (self.machine.name, self.network.name)
703 703

  
704
    @property
705
    def backend_uuid(self):
706
        """Return the name of NIC in Ganeti."""
707
        return "%snic-%s" % (settings.BACKEND_PREFIX_ID, str(self.id))
708

  
704 709

  
705 710
class PoolTable(models.Model):
706 711
    available_map = models.TextField(default="", null=False)

Also available in: Unified diff