Beispiel #1
0
 def sandesh_fip_handle_request(self, req):
     # Return the set of FIPs
     resp = sandesh.FloatingIpListResp(floating_ips=[])
     if req.name_or_uuid is None:
         for fip in FloatingIpDM.values():
             sandesh_fip = self.sandesh_fip_build(fip)
             resp.floating_ips.append(sandesh_fip)
     else:
         fip = FloatingIpDM.find_by_name_or_uuid(req.name_or_uuid)
         if fip:
             sandesh_fip = self.sandesh_fip_build(fip)
             resp.floating_ips.append(sandesh_fip)
     resp.response(req.context())
Beispiel #2
0
 def sandesh_fip_handle_request(self, req):
     # Return the set of FIPs
     resp = sandesh.FloatingIpListResp(floating_ips=[])
     if req.name_or_uuid is None:
         for fip in FloatingIpDM.values():
             sandesh_fip = self.sandesh_fip_build(fip)
             resp.floating_ips.append(sandesh_fip)
     else:
         fip = FloatingIpDM.find_by_name_or_uuid(req.name_or_uuid)
         if fip:
             sandesh_fip = self.sandesh_fip_build(fip)
             resp.floating_ips.append(sandesh_fip)
     resp.response(req.context())