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 Port

Bases: object

Physical port on a node.

node

The port’s node.

Type:

Final[Node]

config

The port’s configuration.

Type:

Final[framework.config.node.PortConfig]

mac_address

The MAC address of the port.

Type:

Final[str]

logical_name

The logical name of the port.

Type:

Final[str]

bound_for_dpdk

True if the port is bound to the driver for DPDK.

Type:

bool

__init__(node: Node, config: PortConfig)

Initialize the port from node and config.

Parameters:
  • node (Node) – The port’s node.

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

property name: str

The name of the port.

property pci: str

The PCI address of the port.

configure_mtu(mtu: int)

Configure the port’s MTU value.

Parameters:

mtu (int) – Desired MTU value.

to_dict() dict[str, Any]

Convert to a dictionary.