Revision 7219c7a3 snf-cyclades-app/synnefo/api/floating_ips.py
b/snf-cyclades-app/synnefo/api/floating_ips.py | ||
---|---|---|
98 | 98 |
"instance_id": str(machine_id) if machine_id else None, |
99 | 99 |
"floating_ip_address": floating_ip.address, |
100 | 100 |
"port_id": str(port_id) if port_id else None, |
101 |
"floating_network_id": str(floating_ip.network_id)} |
|
101 |
"floating_network_id": str(floating_ip.network_id), |
|
102 |
"deleted": floating_ip.deleted} |
|
102 | 103 |
|
103 | 104 |
|
104 | 105 |
@api.api_method(http_method="GET", user_required=True, logger=log, |
... | ... | |
236 | 237 |
total, free = network.ip_count() |
237 | 238 |
return {"name": str(network.id), |
238 | 239 |
"size": total, |
239 |
"free": free} |
|
240 |
"free": free, |
|
241 |
"deleted": network.deleted} |
Also available in: Unified diff