Closed desaimg1 closed 1 year ago
captured_packets = self.dp.api.get_capture(self.dp.configuration.ports[0].name)
don't work
You have to create capture_request body and send it as input to get_capture
request = self.dp.api.capture_request()
request.port_name = self.dp.configuration.ports[0].name
captured_packets = self.dp.api.get_capture(request)
Hi Team,
I tried using following sample for packet capture but is is throwing Error.
Sample Code : https://github.com/open-traffic-generator/conformance/blob/main/features/flows/headers/tcp/test_tcp_header.py#L48
My code :
Error:
test_hero_8_24k_ips_b2b.py:299:
self = <snappi_ixnetwork.snappi_api.Api object at 0x7fbb950482b0>, request = 'VNET-1'
/usr/local/lib/python3.7/dist-packages/snappi_ixnetwork/snappi_api.py:449: SnappiIxnException