Commit 62779dd0 authored by Iustin Pop's avatar Iustin Pop
Browse files

Implement a standard way of getting the cluster object from the

configuration.

Reviewed-by: imsnah
parent 923b1523
......@@ -603,3 +603,15 @@ class ConfigWriter:
self._OpenConfig()
self._ReleaseLock()
return self._config_data.cluster.mac_prefix
def GetClusterInfo(self):
"""Returns informations about the cluster
Returns:
the cluster object
"""
self._OpenConfig()
self._ReleaseLock()
return self._config_data.cluster
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