def reboot(self, client):
self._set_init_system(client)<EOL>reboot_cmd = "<STR_LIT>".format(<EOL>sudo=self.get_sudo_exec_wrapper(),<EOL>stop_ssh=self.get_stop_ssh_service_cmd(),<EOL>reboot=self.get_reboot_cmd()<EOL>)<EOL>try:<EOL><INDENT>ipa_utils.execute_ssh_command(<EOL>client,<EOL>reboot_cmd<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise IpaDistroException(<EOL>'<STR_LIT>' % error<EOL>)<EOL><DEDENT>ipa_utils.clear_cache()<EOL>
Execute reboot command on instance.