8.3.2.4. Port Packet Engine

This module contains the L47 port packet engine classes.


class P4E_ALLOCATE[source]

Bases: object

Simple mode only: Allocate a number of PEs to this port.

get()[source]

Get the number of PEs allocated to this port.

Returns:

the total number of PEs to allocate to this port - including the PEs already allocated to the port.

Return type:

P4E_ALLOCATE.GetDataAttr

set(pe_count_alloc)[source]

Allocate a number of PEs to this port.

Parameters:

pe_count_alloc (int) – the total number of PEs to allocate to this port - including the PEs already allocated to the port.

class P4E_ALLOCATION_INFO[source]

Bases: object

Display information about which PEs that are available for allocation/assignment and which are currently allocated/assigned to this port.

get()[source]

Get PEs allocation information.

Returns:

PEs allocation information

Return type:

P4E_ALLOCATION_INFO.GetDataAttr

class P4E_ASSIGN[source]

Bases: object

Advanced mode only: Assign previously reserved PEs to a port.

get()[source]

Get the assigned PEs on the port.

Returns:

previously reserved PEs

Return type:

P4E_ASSIGN.GetDataAttr

set(mask)[source]

Assign the previously reserved PEs to the port.

Parameters:

mask (str) – a bitmask specifying which PEs should be assigned to this port

class P4E_AVAILABLE[source]

Bases: object

Simple mode only: Report the number of PEs available for allocation.

get()[source]

Get the number of PEs available for allocation.

Returns:

the number of PEs available for allocation.

Return type:

P4E_AVAILABLE.GetDataAttr