code: def stop_capture(self, port_number):
          
  
          if not [port["port_number"] for port in self._ports_mapping if port_number == port["port_number"]]:
              raise NodeError("Port {port_number} doesn't exist on cloud '{name}'".format(name=self.name,
                                                                                          port_number=port_number))
  
          if port_number not in self._nios:
              raise NodeError("Port {} is not connected".format(port_number))
  
          nio = self._nios[port_number]
          nio.stopPacketCapture()
          bridge_name = "{}-{}".format(self._id, port_number)
          yield from self._ubridge_send("bridge stop_capture {name}".format(name=bridge_name))
  
          log.info("Cloud'{name}' [{id}]: stopping packet capture on port {port_number}".format(name=self.name,
                                                                                                id=self.id,
                                                                                                port_number=port_number))
docs: Stops a packet capture.
  
          :param port_number: allocated port number