Revision 88329243 snf-cyclades-app/synnefo/helpdesk/templatetags/helpdesk_tags.py
b/snf-cyclades-app/synnefo/helpdesk/templatetags/helpdesk_tags.py | ||
---|---|---|
10 | 10 |
address |
11 | 11 |
""" |
12 | 12 |
try: |
13 |
return vm.nics.filter(network__public=True)[0].ipv4 |
|
13 |
return vm.nics.filter(network__public=True)[0].ipv4_address
|
|
14 | 14 |
except IndexError: |
15 | 15 |
return "No public ip" |
16 | 16 |
|
Also available in: Unified diff