Home | History | Annotate | Download | only in server

Lines Matching refs:AFE

12     http://www.chromium.org/chromium-os/testing/afe-rpc-infrastructure
24 from autotest_lib.frontend.afe import rpc_client_lib
54 if key == 'afe' or key == 'hash':
63 Inherited for both TKO and AFE uses.
65 All the constructors go in the afe / tko class.
102 Make a RPC call to the AFE server
143 @param job_id: The afe job id to look up.
197 @property _afe AFE object through which to make the actual RPC
203 def __init__(self, afe):
204 self._afe = afe
212 in the AFE database, and returns it as a dictionary
225 `stable_versions` table in the AFE database.
238 Set the mapping in the `stable_versions` table in the AFE
252 Remove the mapping in the `stable_versions` table in the AFE
341 # Get all the mappings from the AFE, extract just the mappings
422 class AFE(RpcClient):
443 super(AFE, self).__init__(path='/afe/server/noauth/rpc/',
740 def __init__(self, afe, hash):
741 self.afe = afe
752 AFE control file object
762 AFE label object
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)
785 AFE acl object
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)
811 AFE job object
824 AFE job_status object
829 def __init__(self, afe, hash):
830 super(JobStatus, self).__init__(afe, hash)
831 self.job = Job(afe, self.job)
833 self.host = Host(afe, self.host)
846 AFE special task object
848 def __init__(self, afe, hash):
849 super(SpecialTask, self).__init__(afe, hash)
850 self.host = Host(afe, self.host)
859 AFE host object
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)
942 AFE host attribute object