port - NIC Port Representation

NIC port model.

Basic port information, such as location (the port are identified by their PCI address on a node), drivers and address.

class PortIdentifier

Bases: object

The port identifier.

node

The node where the port resides.

Type:

str

pci

The PCI address of the port on node.

Type:

str

__init__(node: str, pci: str) None
class Port

Bases: object

Physical port on a node.

The ports are identified by the node they’re on and their PCI addresses. The port on the other side of the connection is also captured here. Each port is serviced by a driver, which may be different for the operating system (os_driver) and for DPDK (os_driver_for_dpdk). For some devices, they are the same, e.g.: mlx5_core.

identifier

The PCI address of the port on a node.

Type:

framework.testbed_model.port.PortIdentifier

os_driver

The operating system driver name when the operating system controls the port, e.g.: i40e.

Type:

str

os_driver_for_dpdk

The operating system driver name for use with DPDK, e.g.: vfio-pci.

Type:

str

peer

The identifier of a port this port is connected with. The peer is on a different node.

Type:

framework.testbed_model.port.PortIdentifier

mac_address

The MAC address of the port.

Type:

str

logical_name

The logical name of the port. Must be discovered.

Type:

str

__init__(node_name: str, config: PortConfig)

Initialize the port from node_name and config.

Parameters:
  • node_name (str) – The name of the port’s node.

  • config (PortConfig) – The test run configuration of the port.

property node: str

The node where the port resides.

property pci: str

The PCI address of the port.

Bases: object

The physical, cabled connection between the ports.

sut_port

The port on the SUT node connected to tg_port.

Type:

framework.testbed_model.port.Port

tg_port

The port on the TG node connected to sut_port.

Type:

framework.testbed_model.port.Port

__init__(sut_port: Port, tg_port: Port) None