Commit 8e23ed50 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Make NIC representation more verbose

parent 8807a828
......@@ -701,7 +701,9 @@ class NetworkInterface(models.Model):
choices=STATES)
def __unicode__(self):
return '%s@%s' % (self.machine.name, self.network.name)
return "<%s:vm:%s network:%s ipv4:%s ipv6:%s>" % \
(self.index, self.machine_id, self.network_id, self.ipv4,
self.ipv6)
class FloatingIP(models.Model):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment