Advertisement
Guest User

Untitled

a guest
Feb 15th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. def get_reachabilitytests_data(self):
  2.         return [NeutronAPIDictWrapper({"id": "0ffb9bfa-ae27-4f78-9ea9-064176c1d1df", "name": "test1", "src_tenant_id": "tenant1", "src_segment_id": "segment1", "src_ip": "10.1.1.1", "dst_ip": "10.2.1.1", "expected_result": "dropped"})]
  3.  
  4.         """print("request is:")
  5.        print(str(self.request))
  6.        try:
  7.            print("getting the marker")
  8.            marker = self.request.GET.get(\
  9.                        ReachabilityTestsTable._meta.pagination_param, None)
  10.            print("getting the reachability tests")
  11.            reachabilitytests = api.neutron.reachabilitytest_list(self.request)
  12.            print("results we got are:")
  13.            print(reachabilitytests)
  14.            #return reachabilitytests
  15.        except Exception:
  16.            self._has_more = False
  17.            error_message = _('Unable to get Reachability Tests')"""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement