Revision 74b7c6dc kamaki/clients/network/__init__.py
b/kamaki/clients/network/__init__.py | ||
---|---|---|
323 | 323 |
|
324 | 324 |
def list_floatingips(self): |
325 | 325 |
r = self.floatingips_get(success=200) |
326 |
return r['floatingips'] |
|
326 |
return r.json['floatingips']
|
|
327 | 327 |
|
328 | 328 |
def get_floatingip_details(self, floatingip_id): |
329 |
r = self.floatingips_get(floatingip_id, success=201)
|
|
330 |
return r['floatingip'] |
|
329 |
r = self.floatingips_get(floatingip_id, success=200)
|
|
330 |
return r.json['floatingip']
|
|
331 | 331 |
|
332 | 332 |
def create_floatingip( |
333 | 333 |
self, floating_network_id, |
... | ... | |
340 | 340 |
if fixed_ip_address: |
341 | 341 |
floatingip['fixed_ip_address'] = fixed_ip_address |
342 | 342 |
r = self.floatingips_post( |
343 |
json_data=dict(floatingip=floatingip), success=201)
|
|
343 |
json_data=dict(floatingip=floatingip), success=200)
|
|
344 | 344 |
return r.json['floatingip'] |
345 | 345 |
|
346 | 346 |
def update_floatingip( |
... | ... | |
355 | 355 |
if fixed_ip_address != '': |
356 | 356 |
floatingip['fixed_ip_address'] = fixed_ip_address |
357 | 357 |
r = self.floatingips_put( |
358 |
floatingip_id, json_data=dict(floatingip=floatingip), success=201)
|
|
358 |
floatingip_id, json_data=dict(floatingip=floatingip), success=200)
|
|
359 | 359 |
return r['floatingip'] |
360 | 360 |
|
361 | 361 |
def delete_floatingip(self, floatingip_id): |
Also available in: Unified diff