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
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
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