State

Leafs

Children

Enum Classes

class Interfaces.Interface.Ethernet.State

Bases: Entity

Class Hierarchy : Interfaces Interface Ethernet State

This class represents state data.

State variables 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}

config: False

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

config: False

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

config: False

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:

config: False

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

config: False

default value: false

hw_mac_address

Represenets the ‘burned-in’, or system-assigned, MAC address for the Ethernet interface

type: str

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

config: False

effective_speed

Reports the effective speed of the interface, e.g., the negotiated speed if auto-negotiate is enabled

type: int

range: 0..4294967295

config: False

units: Mbps

counters

Ethernet interface counters

type: Counters

config: False

aggregate_id

Specify the logical aggregate interface to which this interface belongs

type: str

refers to: name

config: False