'Reboot a node.
:param node: The node to be rebooted
:type node: :class:`.Node`
:return: True if the reboot was successful, otherwise False
:rtype: ``bool``'

def reboot_node(self, node):

    target = ('%s/restart' % node.id)
    try:
        self.connection.request(target, params={'api-version': '2015-06-15'}, method='POST')
        return True
    except BaseHTTPError as h:
        if (h.code == 202):
            return True
        else:
            return False
