From: Sapan Bhatia Date: Tue, 22 Sep 2009 13:47:22 +0000 (+0000) Subject: Adding a config option for the stanford aggregate manager. This is something we shoul... X-Git-Tag: sfa-0.9-3~58 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=7752b921c2f0810d467981b339f6bae03c3b7c7c;p=sfa.git Adding a config option for the stanford aggregate manager. This is something we should move to a separate config file, but let's put it here for now. --- diff --git a/sfa/util/config.py b/sfa/util/config.py index 919c3482..d58243e0 100644 --- a/sfa/util/config.py +++ b/sfa/util/config.py @@ -41,6 +41,17 @@ class Config: except IOError, e: raise IOError, "Could not find the configuration file: %s" % config_file + def get_openflow_aggrMgr_info(self): + aggr_mgr_ip = 'localhost' + if (hasattr(self,'OPENFLOW_AGGREGATE_MANAGER_IP')): + aggr_mgr_ip = self.OPENFLOW_AGGREGATE_MANAGER_IP + + aggr_mgr_port = 2603 + if (hasattr(self,'OPENFLOW_AGGREGATE_MANAGER_PORT')): + aggr_mgr_port = self.OPENFLOW_AGGREGATE_MANAGER_PORT + + return (aggr_mgr_ip,aggr_mgr_port) + def get_aggregate_rspec_type(self): if (hasattr(self,'SFA_AGGREGATE_RSPEC_TYPE')): return self.SFA_AGGREGATE_RSPEC_TYPE