Revision 939d71dd snf-cyclades-app/synnefo/api/networks.py
b/snf-cyclades-app/synnefo/api/networks.py | ||
---|---|---|
99 | 99 |
|
100 | 100 |
attachments = [util.construct_nic_id(nic) |
101 | 101 |
for nic in network.nics.filter(machine__userid=user_id) |
102 |
.filter(state="ACTIVE") |
|
102 | 103 |
.order_by('machine')] |
103 | 104 |
d['attachments'] = {'values': attachments} |
104 | 105 |
return d |
Also available in: Unified diff