From 7752b921c2f0810d467981b339f6bae03c3b7c7c Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 22 Sep 2009 13:47:22 +0000 Subject: [PATCH] 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. --- sfa/util/config.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.43.0