4 # This module holds topology configuration for SFA. It is implemnted as a
5 # list of site_id tuples
9 from sfa.util.sfalogging import logger
14 Parse the topology configuration file.
17 def __init__(self, config_file="/etc/sfa/topology"):
21 f = open(config_file, 'r')
23 ignore = line.find('#')
28 self.add((tup[0], tup[1]))
29 except Exception as e:
31 "Could not find or load the configuration file: %s" % config_file)