Commit 790fc19d authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Expose the list of online nodes at ssconf



Ganeti's ssconf contains the list of nodes currently considered
online. Expose this data at the ssconf interface.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarJose Lopes <jabolopes@google.com>
parent 750b7090
......@@ -273,6 +273,14 @@ class SimpleStore(object):
nl = data.splitlines(False)
return nl
def GetOnlineNodeList(self):
"""Return the list of online cluster nodes.
"""
data = self._ReadFile(constants.SS_ONLINE_NODES)
nl = data.splitlines(False)
return nl
def GetNodePrimaryIPList(self):
"""Return the list of cluster nodes' primary IP.
......
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