From: Tony Mack Date: Tue, 1 Dec 2009 16:25:40 +0000 (+0000) Subject: added some default configuration variables X-Git-Tag: sfa-0.9-7~263 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=e7b0fe6953d82e028bb29fa6534179addb675caa added some default configuration variables --- diff --git a/sfa/util/config.py b/sfa/util/config.py index 8a37997a..fba98d19 100644 --- a/sfa/util/config.py +++ b/sfa/util/config.py @@ -49,6 +49,20 @@ class Config: # default to /var/lib/sfa not specified in config self.SFA_CONFIG_DIR="/etc/sfa" + # define interface types + # this will determine which manager to use + if not hasattr(self, 'SFA_REGISTRY_TYPE'): + self.SFA_REGISTRY_TYPE='pl' + + if not hasattr(self, 'SFA_AGGREGATE_TYPE'): + self.SFA_AGGREGATE_TYPE='pl' + + if not hasattr(self, 'SFA_SM_TYPE'): + self.SFA_SM_TYPE='pl' + + if not hasattr(self, 'SFA_COMPONENT_TYPE'): + self.SFA_COMPONENT_TYPE='pl' + # create the data directory if it doesnt exist if not os.path.isdir(self.SFA_DATA_DIR): os.mkdir(self.SFA_DATA_DIR)