Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
8e23ed50
Commit
8e23ed50
authored
May 24, 2013
by
Christos Stavrakakis
Browse files
cyclades: Make NIC representation more verbose
parent
8807a828
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/db/models.py
View file @
8e23ed50
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment