• Home
  • Raw
  • Download

Lines Matching refs:afe

24 from autotest_lib.frontend.afe import rpc_client_lib
203 def __init__(self, afe): argument
204 self._afe = afe
740 def __init__(self, afe, hash): argument
741 self.afe = afe
774 return self.afe.run('label_add_hosts', id=self.name, hosts=hosts)
780 return self.afe.run('label_remove_hosts', id=self.name, hosts=hosts)
795 self.afe.log('Adding hosts %s to ACL %s' % (hosts, self.name))
796 return self.afe.run('acl_group_add_hosts', self.id, hosts)
800 self.afe.log('Removing hosts %s from ACL %s' % (hosts, self.name))
801 return self.afe.run('acl_group_remove_hosts', self.id, hosts)
805 self.afe.log('Adding users %s to ACL %s' % (users, self.name))
806 return self.afe.run('acl_group_add_users', id=self.name, users=users)
829 def __init__(self, afe, hash): argument
830 super(JobStatus, self).__init__(afe, hash)
831 self.job = Job(afe, self.job)
833 self.host = Host(afe, self.host)
848 def __init__(self, afe, hash): argument
849 super(SpecialTask, self).__init__(afe, hash)
850 self.host = Host(afe, self.host)
877 return self.afe.run('delete_host', id=self.id)
881 return self.afe.run('modify_host', id=self.id, **dargs)
885 return self.afe.get_acls(hosts__hostname=self.hostname)
889 self.afe.log('Adding ACL %s to host %s' % (acl_name, self.hostname))
890 return self.afe.run('acl_group_add_hosts', id=acl_name,
895 self.afe.log('Removing ACL %s from host %s' % (acl_name, self.hostname))
896 return self.afe.run('acl_group_remove_hosts', id=acl_name,
901 return self.afe.get_labels(host__hostname__in=[self.hostname])
905 self.afe.log('Adding labels %s to host %s' % (labels, self.hostname))
906 return self.afe.run('host_add_labels', id=self.id, labels=labels)
910 self.afe.log('Removing labels %s from host %s' % (labels,self.hostname))
911 return self.afe.run('host_remove_labels', id=self.id, labels=labels)