'Return list of members attached to balancer.
In Dimension Data terminology these are the members of the pools
within a virtual listener.
:param balancer: LoadBalancer which should be used
:type  balancer: :class:`LoadBalancer`
:rtype: ``list`` of :class:`Member`'

def balancer_list_members(self, balancer):

    pool_members = self.ex_get_pool_members(balancer.extra['pool_id'])
    members = []
    for pool_member in pool_members:
        members.append(Member(id=pool_member.id, ip=pool_member.ip, port=pool_member.port, balancer=balancer, extra=None))
    return members
