Commit 7118a0df authored by Iustin Pop's avatar Iustin Pop
Browse files

Export the uuid in RAPI

This also simplifies a little the field declaration in RAPI.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 259578eb
......@@ -31,6 +31,7 @@ from ganeti import rapi
from ganeti.rapi import baserlib
_COMMON_FIELDS = ["ctime", "mtime", "uuid", "serial_no", "tags"]
I_FIELDS = ["name", "admin_state", "os",
"pnode", "snodes",
......@@ -39,16 +40,16 @@ I_FIELDS = ["name", "admin_state", "os",
"disk.sizes", "disk_usage",
"beparams", "hvparams",
"oper_state", "oper_ram", "status",
N_FIELDS = ["name", "offline", "master_candidate", "drained",
"dtotal", "dfree",
"mtotal", "mnode", "mfree",
"pinst_cnt", "sinst_cnt", "tags",
"pinst_cnt", "sinst_cnt",
"ctotal", "cnodes", "csockets",
"pip", "sip", "serial_no", "role",
"pip", "sip", "role",
"pinst_list", "sinst_list",
_NR_DRAINED = "drained"
_NR_MASTER_CANDIATE = "master-candidate"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment