'This method is used to get the list of the loadbalancers.'

@logged
def list_loadbalancer(self):

    resources = []
    if (self.lb_version == 'v2'):
        resp = self.client.list_loadbalancers()
        resources = resp.get('loadbalancers')
    return resources
