8.3.2.2. Module Packet Engine

This module contains the L47 module packet engine classes.


class M4E_MODE[source]

Bases: object

Select resource allocation mode.

get()[source]

Get the resource allocation mode.

Returns:

resource allocation mode

Return type:

M4E_MODE.GetDataAttr

set(mode)[source]

Set the resource allocation mode.

Parameters:

mode (ResourceAllocationMode) – resource allocation mode

set_advanced()

Set resource allocation mode to Advanced.

set_simple()

Set resource allocation mode to Simple.

class M4E_RESERVE[source]

Bases: object

Advanced mode only: Reserve a number of PEs so they later can be assigned to specific ports.

get()[source]

Get the PEs reserved.

Returns:

the number of PEs reserved.

Return type:

M4E_RESERVE.GetDataAttr

set(mask)[source]

Set PEs reserved.

Parameters:

mask (str) – bitmask of PEs to reserve