git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29b3410
)
Adding a config option for the stanford aggregate manager. This is something we shoul...
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Tue, 22 Sep 2009 13:47:22 +0000
(13:47 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Tue, 22 Sep 2009 13:47:22 +0000
(13:47 +0000)
sfa/util/config.py
patch
|
blob
|
history
diff --git
a/sfa/util/config.py
b/sfa/util/config.py
index
919c348
..
d58243e
100644
(file)
--- 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
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
def get_aggregate_rspec_type(self):
if (hasattr(self,'SFA_AGGREGATE_RSPEC_TYPE')):
return self.SFA_AGGREGATE_RSPEC_TYPE