def __init__(self, log): super(SfaApi, self).__init__("sfaapi", log) self._actionLog = KeyAdapter("expedient-sfa", logging.getLogger('sfaapi-actions')) #retrieve updated dict as a json file from foam db folder filedir = './opt/ofelia/ofam/local/db' filename = os.path.join(filedir, 'expedient_slices_info.json') if os.path.isfile(filename): f = open(filename, 'r') self.slice_info_dict = json.load(f) f.close() else: self.slice_info_dict = {} #if ConfigDB.getConfigItemByKey("flowvisor.hostname").getValue() is None: self.switch_dpid_list = None self.link_list = None self.callback_http_attr_list = [ ] #we have multiple expedients communicating with foam! self.callback_cred_attr_list = [ ] #we have multiple expedients communicating with foam! self.driver = OFSfaDriver() self.pm = PermissionManager()