added some default configuration variables
authorTony Mack <tmack@cs.princeton.edu>
Tue, 1 Dec 2009 16:25:40 +0000 (16:25 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 1 Dec 2009 16:25:40 +0000 (16:25 +0000)
sfa/util/config.py

index 8a37997..fba98d1 100644 (file)
@@ -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)