Some context why this is desired: p4lang/ptf#120
Effectively, scapy has a GPL license, which is incompatible with the Apache 2.0 license P4 is using. Ideally, we should use a Apache-compatible packet sniffing framework as the default. The PTF framework has already been extended to provide support for different kind of packet frameworks. We just need to add one.
https://github.com/open-traffic-generator/snappi could be a viable alternative.
@chrispsommers how much of an drop-in replacement is snappi for scapy? What are the trade-offs? Do you know by any chance?