예제 #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
파일: aggregate.py 프로젝트: gnogueras/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