'Attach a member to balancer
:param balancer: LoadBalancer which should be used
:type  balancer: :class:`LoadBalancer`
:param member: Member to join to the balancer
:type member: :class:`Member`
:return: Member after joining the balancer.
:rtype: :class:`Member`'

def balancer_attach_member(self, balancer, member):

    node = self.ex_create_node(network_domain_id=balancer.extra['network_domain_id'], name=('Member.' + member.ip), ip=member.ip, ex_description='')
    if (node is False):
        return False
    pool = self.ex_get_pool(balancer.extra['pool_id'])
    pool_member = self.ex_create_pool_member(pool=pool, node=node, port=member.port)
    member.id = pool_member.id
    return member
