Revision 828a28df snf-cyclades-app/synnefo/api/floating_ips.py
b/snf-cyclades-app/synnefo/api/floating_ips.py | ||
---|---|---|
99 | 99 |
"floating_ip_address": floating_ip.address, |
100 | 100 |
"port_id": str(port_id) if port_id else None, |
101 | 101 |
"floating_network_id": str(floating_ip.network_id), |
102 |
"deleted": floating_ip.deleted} |
|
102 |
"deleted": floating_ip.deleted, |
|
103 |
"tenant_id": floating_ip.userid, |
|
104 |
"user_id": floating_ip.userid} |
|
103 | 105 |
|
104 | 106 |
|
105 | 107 |
@api.api_method(http_method="GET", user_required=True, logger=log, |
... | ... | |
144 | 146 |
userid = request.user_uniq |
145 | 147 |
log.info('allocate_floating_ip user: %s request: %s', userid, req) |
146 | 148 |
|
147 |
|
|
148 | 149 |
# the network_pool is a mandatory field |
149 | 150 |
network_id = api.utils.get_attribute(floating_ip_dict, |
150 | 151 |
"floating_network_id", |
Also available in: Unified diff