iallocator.rst: refactor for readability; minor improvements
authorAdeodato Simo <dato@google.com>
Thu, 24 Mar 2011 21:28:47 +0000 (21:28 +0000)
committerAdeodato Simo <dato@google.com>
Mon, 28 Mar 2011 12:06:24 +0000 (13:06 +0100)
commit61791108dea923e7f2e722b21fba3b23d93ddcf9
treeef8e4a3d5107d979ccfda9c4440a0dae485b1f06
parente9f7d26ae316e1e1753b2fbc9f40d7c03195932a
iallocator.rst: refactor for readability; minor improvements

This commits breaks down the "Input message" section of iallocator.rst into
two separate subsections: one detailing keys that are required in all
operation types; a second one detailing the "request" element, which is
different for each type of request.

Some other minor improvements are included as well:

  - update input example to version 2, and add the "nodegroups" and
    "enabled_hypervisors" top-level elements, and the "group" and
    "hypervisor" attributes for nodes and allocation request, respectively.

  - sort keys in the example dictionaries according to the order in earlier
    sections, for easy comparison of documentation with its examples.

Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
doc/iallocator.rst