MCPcopy Create free account
hub / github.com/FDio/vpp / enable_capture

Method enable_capture

test/vpp_pg_interface.py:223–233  ·  view source on GitHub ↗

Enable capture on this packet-generator interface of at most n packets. If n < 0, this is no limit

(self)

Source from the content-addressed store, hash-verified

221 print("", file=f)
222
223 def enable_capture(self):
224 """Enable capture on this packet-generator interface
225 of at most n packets.
226 If n < 0, this is no limit
227 """
228 # disable the capture to flush the capture
229 self.disable_capture()
230 self.remove_old_pcap_file(self.out_path)
231 # FIXME this should be an API, but no such exists atm
232 self.test.vapi.cli(self.capture_cli)
233 self._pcap_reader = None
234
235 def disable_capture(self):
236 self.test.vapi.cli("%s disable" % self.capture_cli)

Calls 3

disable_captureMethod · 0.95
remove_old_pcap_fileMethod · 0.95
cliMethod · 0.45