Commit 47a626b0 authored by Guido Trotter's avatar Guido Trotter
Browse files

SimpleConfigReader: queries for default nicparams

GetDefaultNicParams returns the default nic parameters.
GetDefaultNicLink returns the default nic link.
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarMichael Hanselmann <>
parent f3313af5
......@@ -162,6 +162,12 @@ class SimpleConfigReader(object):
def GetClusterSerialNo(self):
return self._config_data["cluster"]["serial_no"]
def GetDefaultNicParams(self):
return self._config_data["cluster"]["nicparams"][constants.PP_DEFAULT]
def GetDefaultNicLink(self):
return self.GetDefaultNicParams()[constants.NIC_LINK]
def GetNodeStatusFlags(self, node):
"""Get a node's status flags
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