'Called by dhcp-bridge when IP is leased.'

def lease_fixed_ip(self, context, address):

    LOG.debug('Leased    IP    |%s|', address)
    fixed_ip = objects.FixedIP.get_by_address(context, address)
    if (fixed_ip.instance_uuid is None):
        LOG.warning(_LW('IP    %s    leased    that    is    not    associated'), fixed_ip)
        return
    fixed_ip.leased = True
    fixed_ip.save()
    if (not fixed_ip.allocated):
        LOG.warning(_LW("IP    |%s|    leased    that    isn't    allocated"), fixed_ip, instance_uuid=fixed_ip.instance_uuid)
