Lines Matching refs:afe
55 def add_powerunit_info_to_host(afe, device, keyvals): argument
64 if not afe.get_hosts(hostname=device):
70 afe.set_host_attribute(key, val, hostname=device)
73 def add_from_csv(afe, csv_file): argument
91 add_powerunit_info_to_host(afe, device, keyvals)
94 def dump_to_csv(afe, csv_file): argument
103 hosts = afe.get_hosts()
112 def list_powerunit_info(afe, devices): argument
118 hosts = afe.get_hosts(hostname__in = devices)
173 afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10, variable
175 logging.info('Connected to %s', afe.server)
177 dump_to_csv(afe, options.csv_file)
183 add_from_csv(afe, options.csv_file)
185 list_powerunit_info(afe, [h.strip() for h in options.hostnames.split(',')])