

@wsgi.response(202)
@wsgi.action('removeFixedIp')
@extensions.expected_errors((400, 404))
@validation.schema(multinic.remove_fixed_ip)
def _remove_fixed_ip(self, req, id, body):
    'Removes an IP from an instance.'
    context = req.environ['nova.context']
    authorize(context)
    instance = common.get_instance(self.compute_api, body, id)
    address = body['removeFixedIp']['address']
    try:
        self.compute_api.remove_fixed_ip(context, instance, address)
    except exception.InstanceUnknownCell as e:
        raise exc.HTTPNotFound(explanation=e.format_message())
    except exception.FixedIpNotFoundForSpecificInstance as e:
        raise exc.HTTPBadRequest(explanation=e.format_message())

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/multinic.py MultinicController._remove_fixed_ip/VarMisuse@80/110 `context`->`body`