277
294
raise webob.exc.HTTPBadRequest(explanation=msg)
279
296
# get the floating ip object
282
304
# get the associated instance object (if any)
283
305
instance = get_instance_by_floating_ip_addr(self, context, address)
285
307
# disassociate if associated
287
309
floating_ip.get('fixed_ip_id') and
289
311
[instance['uuid'] == id] or
290
312
[instance['id'] == id])[0]):
291
313
disassociate_floating_ip(self, context, instance, address)