ImportExport: use max and min memory params
authorGuido Trotter <ultrotter@google.com>
Thu, 17 Nov 2011 14:09:32 +0000 (14:09 +0000)
committerGuido Trotter <ultrotter@google.com>
Tue, 22 Nov 2011 14:53:00 +0000 (14:53 +0000)
commit1db993d553469080653a75d0248344aa0e7069f8
tree73f9c3a1186f7b1f99046240c0f640c703a69bdc
parent31d1791acac3a1c0c1456d68d69834d7718ff14e
ImportExport: use max and min memory params

Import uses the old "memory" parameter to populate the two new ones, if
they're not overridden already.

FinalizeExport exports minmem and maxmem, but also memory, as maxmem, to
allow importing to older ganeti clusters.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/cmdlib.py