Revision da5f09ef doc/rapi.rst

b/doc/rapi.rst
226 226

  
227 227
.. pyassert::
228 228

  
229
  constants.IPOLICY_ALL_KEYS == set([constants.ISPECS_MIN,
230
                                     constants.ISPECS_MAX,
229
  constants.IPOLICY_ALL_KEYS == set([constants.ISPECS_MINMAX,
231 230
                                     constants.ISPECS_STD,
232 231
                                     constants.IPOLICY_DTS,
233 232
                                     constants.IPOLICY_VCPU_RATIO,
......
249 248
.. |ispec-std| replace:: :pyeval:`constants.ISPECS_STD`
250 249

  
251 250

  
252
|ispec-min|, |ispec-max|, |ispec-std|
253
  A sub- `dict` with the following fields, which sets the limit and standard
254
  values of the instances:
255

  
256
  :pyeval:`constants.ISPEC_MEM_SIZE`
257
    The size in MiB of the memory used
258
  :pyeval:`constants.ISPEC_DISK_SIZE`
259
    The size in MiB of the disk used
260
  :pyeval:`constants.ISPEC_DISK_COUNT`
261
    The numbers of disks used
262
  :pyeval:`constants.ISPEC_CPU_COUNT`
263
    The numbers of cpus used
264
  :pyeval:`constants.ISPEC_NIC_COUNT`
265
    The numbers of nics used
266
  :pyeval:`constants.ISPEC_SPINDLE_USE`
267
    The numbers of virtual disk spindles used by this instance. They are
268
    not real in the sense of actual HDD spindles, but useful for
269
    accounting the spindle usage on the residing node
251
:pyeval:`constants.ISPECS_MINMAX`
252
  A dict with the following two fields:
253

  
254
  |ispec-min|, |ispec-max|
255
    A sub- `dict` with the following fields, which sets the limit of the
256
    instances:
257

  
258
    :pyeval:`constants.ISPEC_MEM_SIZE`
259
      The size in MiB of the memory used
260
    :pyeval:`constants.ISPEC_DISK_SIZE`
261
      The size in MiB of the disk used
262
    :pyeval:`constants.ISPEC_DISK_COUNT`
263
      The numbers of disks used
264
    :pyeval:`constants.ISPEC_CPU_COUNT`
265
      The numbers of cpus used
266
    :pyeval:`constants.ISPEC_NIC_COUNT`
267
      The numbers of nics used
268
    :pyeval:`constants.ISPEC_SPINDLE_USE`
269
      The numbers of virtual disk spindles used by this instance. They
270
      are not real in the sense of actual HDD spindles, but useful for
271
      accounting the spindle usage on the residing node
272
|ispec-std|
273
  A sub- `dict` with the same fields as |ispec-min| and |ispec-max| above,
274
  which sets the standard values of the instances.
270 275
:pyeval:`constants.IPOLICY_DTS`
271 276
  A `list` of disk templates allowed for instances using this policy
272 277
:pyeval:`constants.IPOLICY_VCPU_RATIO`

Also available in: Unified diff