def get_reachabilitytests_data(self): try: reachabilitytests = neutron.reachabilitytest_list( self.request, **{}) return reachabilitytests except Exception: return []
def get_reachabilitytests_data(self): try: reachabilitytests = neutron.reachabilitytest_list( self.request, **{'tenant_id': self.request.user.project_id}) return reachabilitytests except Exception: return []
def get_reachabilitytests_data(self): try: reachabilitytests = neutron.reachabilitytest_list(self.request, **{}) return reachabilitytests except Exception: return []
def get(self, request): result = bsnneutron.reachabilitytest_list( request, **{'tenant_id': request.user.project_id}) return {'items': [n.to_dict() for n in result]}