'Power on/off/reboot a host through cobbler.
:param host: Autotest host object.
:param state: Allowed states - one of \'on\', \'off\', \'reboot\'.'

def power_host(self, host, state='reboot'):

    if self.xmlrpc_url:
        system_handle = self.get_system_handle(host)[1]
        self.server.power_system(system_handle, state, self.token)
