示例#1
0
 def __init__(self, conf_file="/etc/sfa/registries.xml"):
     Interfaces.__init__(self, conf_file)
     sfa_config = Config()
     if sfa_config.SFA_REGISTRY_ENABLED:
         addr = sfa_config.SFA_REGISTRY_HOST
         port = sfa_config.SFA_REGISTRY_PORT
         hrn = sfa_config.SFA_INTERFACE_HRN
         interface = Interface(hrn, addr, port)
         self[hrn] = interface
示例#2
0
文件: registry.py 项目: gnogueras/sfa
 def __init__(self, conf_file="/etc/sfa/registries.xml"):
     Interfaces.__init__(self, conf_file)
     sfa_config = Config()
     if sfa_config.SFA_REGISTRY_ENABLED:
         addr = sfa_config.SFA_REGISTRY_HOST
         port = sfa_config.SFA_REGISTRY_PORT
         hrn = sfa_config.SFA_INTERFACE_HRN
         interface = Interface(hrn, addr, port)
         self[hrn] = interface
示例#3
0
文件: aggregate.py 项目: aquila/sfa
 def __init__(self, conf_file = "/etc/sfa/aggregates.xml"):
     Interfaces.__init__(self, conf_file)
     sfa_config = Config() 
     # set up a connection to the local aggregate
     if sfa_config.SFA_AGGREGATE_ENABLED:
         addr = sfa_config.SFA_AGGREGATE_HOST
         port = sfa_config.SFA_AGGREGATE_PORT
         hrn = sfa_config.SFA_INTERFACE_HRN
         interface = Interface(hrn, addr, port)
         self[hrn] = interface
示例#4
0
 def __init__(self, conf_file="/etc/sfa/aggregates.xml"):
     Interfaces.__init__(self, conf_file)
     sfa_config = Config()
     # set up a connection to the local aggregate
     if sfa_config.SFA_AGGREGATE_ENABLED:
         addr = sfa_config.SFA_AGGREGATE_HOST
         port = sfa_config.SFA_AGGREGATE_PORT
         hrn = sfa_config.SFA_INTERFACE_HRN
         interface = Interface(hrn, addr, port)
         self[hrn] = interface