From e7b0fe6953d82e028bb29fa6534179addb675caa Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 1 Dec 2009 16:25:40 +0000 Subject: [PATCH] added some default configuration variables --- sfa/util/config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) -- 2.43.0