Config

Leafs

Enum Classes

class Interfaces.Interface.Ethernet.Config

Bases: Entity

Class Hierarchy : Interfaces Interface Ethernet Config

This class represents configuration data.

Configuration data for ethernet interfaces

mac_address

Assigns a MAC address to the Ethernet interface. If not specified, the corresponding operational state leaf is expected to show the system-assigned MAC address

type: str

pattern: [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}

auto_negotiate

Set to TRUE to request the interface to auto-negotiate transmission parameters with its peer interface. When set to FALSE, the transmission parameters are specified manually

type: bool

default value: true

duplex_mode

When auto-negotiate is TRUE, this optionally sets the duplex mode that will be advertised to the peer. If unspecified, the interface should negotiate the duplex mode directly (typically full-duplex). When auto-negotiate is FALSE, this sets the duplex mode on the interface directly

type: DuplexMode

port_speed

When auto-negotiate is TRUE, this optionally sets the port-speed mode that will be advertised to the peer for negotiation. If unspecified, it is expected that the interface will select the highest speed available based on negotiation. When auto-negotiate is set to FALSE, sets the link speed to a fixed value – supported values are defined by ETHERNET_SPEED identities

type: one of the below values:

enable_flow_control

Enable or disable flow control for this interface. Ethernet flow control is a mechanism by which a receiver may send PAUSE frames to a sender to stop transmission for a specified time. This setting should override auto-negotiated flow control settings. If left unspecified, and auto-negotiate is TRUE, flow control mode is negotiated with the peer interface

type: bool

default value: false

aggregate_id

Specify the logical aggregate interface to which this interface belongs

type: str

refers to: name

client_fec

Configure whether FEC will be manually or automatically enabled or disabled on the client port

type: ClientFec

default value: AUTO

client_als

Sets the client port behavior that defines if the actions of automatic laser shutdown (als), ethernet fault propagation, or nothing will be done upon the detection of a failure on the line port or the upstream remote client port

type: ClientAls

default value: ETHERNET

als_delay

The timer to delay the client-als actions on the client port when a local or remote fault is detected on the line port. The delay will only be valid when the client-als is set to LASER_SHUTDOWN

type: int

range: 0..4294967295

units: milliseconds

default value: 0