projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ef231
)
Query: allow query on maximum and minimum memory
author
Guido Trotter
<ultrotter@google.com>
Thu, 17 Nov 2011 14:39:43 +0000
(14:39 +0000)
committer
Guido Trotter
<ultrotter@google.com>
Tue, 22 Nov 2011 14:52:59 +0000
(14:52 +0000)
be/memory is kept as an alias.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/query.py
patch
|
blob
|
history
diff --git
a/lib/query.py
b/lib/query.py
index
0f85ab0
..
6d951b2
100644
(file)
--- a/
lib/query.py
+++ b/
lib/query.py
@@
-1626,7
+1626,8
@@
def _GetInstanceParameterFields():
# TODO: Consider moving titles closer to constants
be_title = {
constants.BE_AUTO_BALANCE: "Auto_balance",
- constants.BE_MEMORY: "ConfigMemory",
+ constants.BE_MAXMEM: "ConfigMaxMem",
+ constants.BE_MINMEM: "ConfigMinMem",
constants.BE_VCPUS: "ConfigVCPUs",
}
@@
-1836,6
+1837,7
@@
def _BuildInstanceFields():
aliases = [
("vcpus", "be/vcpus"),
+ ("be/memory", "be/maxmem"),
("sda_size", "disk.size/0"),
("sdb_size", "disk.size/1"),
] + network_aliases