p4lang / ptf

Packet Test Framework
Apache License 2.0
144 stars 99 forks source link

Extending the set of packet verification functions #152

Closed aljer closed 2 years ago

aljer commented 2 years ago

The change introduces additional function for packet verification. This is verify_packets_on_multiple_port_lists() that verifies if each of the packets from packets list is received once on any port specified in an associated sublist in ports list. Also verify_any_packet_any_port() function was improved so that now it can verify also masked packets.

ravi861 commented 2 years ago

@antoninbas @Yi-Tseng @saynb Please help review.

saynb commented 2 years ago

Addition of a couple of nn based unit tests using these new functions would be great

aljer commented 2 years ago

Addition of a couple of nn based unit tests using these new functions would be great

@saynb Tests added