blocklist Test Suite

The DPDK device blocklisting test suite.

This testing suite ensures tests the port blocklisting functionality of testpmd.

class TestBlocklist

Bases: TestSuite

DPDK device blocklisting test suite.

no_blocklisted() None

Run testpmd with no blocklisted device.

Steps:
  • Run testpmd without specifying allowed or blocked ports.

Verify:
  • No ports were blocked.

one_port_blocklisted() None

Run testpmd with one blocklisted port.

Steps:
  • Run testpmd with only one blocklisted port and allowing all the other ones.

Verify:
  • Port was successfully blocklisted.

all_but_one_port_blocklisted() None

Run testpmd with all but one blocklisted port.

Steps:
  • Run testpmd with only one allowed port, blocking all the other ones.

Verify:
  • All specified ports were successfully blocklisted.