'Return a list of nodes in the current zone or all zones.
:return:  List of Node objects
:rtype:   ``list`` of :class:`Node`'

def list_nodes(self):

    vms = self.connection.request('hosting.vm.list').object
    ips = self.connection.request('hosting.ip.list').object
    for vm in vms:
        vm['ips'] = []
        for ip in ips:
            if (vm['ifaces_id'][0] == ip['iface_id']):
                ip = ip.get('ip', None)
                if ip:
                    vm['ips'].append(ip)
    nodes = self._to_nodes(vms)
    return nodes
