'Get the ending time of the node reservation.
:param node: the reservation node to update
:type  node: :class:`Node`
:return: unix timestamp
:rtype: ``int``'

def ex_get_request_end_time(self, node):

    res = self._vcl_request('XMLRPCgetRequestIds')
    time = 0
    for i in res['requests']:
        if (i['requestid'] == node.id):
            time = i['end']
    return time
