Interface EthernetInterfaceConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface EthernetInterfaceConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration items for Ethernet interfaces
This class represents the following YANG schema fragment defined in module openconfig-if-ethernet
grouping ethernet-interface-config {
leaf mac-address {
type oc-yang:mac-address;
}
leaf auto-negotiate {
type boolean;
default true;
}
leaf standalone-link-training {
type boolean;
default false;
}
leaf duplex-mode {
type enumeration {
enum FULL {
}
enum HALF {
}
}
}
leaf port-speed {
type identityref {
base ETHERNET_SPEED;
}
}
leaf enable-flow-control {
type boolean;
default false;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module openconfig-if-ethernet -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn autoNegotiate, ornullif it is not present.Return duplexMode, ornullif it is not present.Return enableFlowControl, ornullif it is not present.Return macAddress, ornullif it is not present.Return portSpeed, ornullif it is not present.Return standaloneLinkTraining, ornullif it is not present.Class<? extends EthernetInterfaceConfig>default @NonNull BooleanReturn autoNegotiate, guaranteed to be non-null.default @NonNull EthernetInterfaceConfig.DuplexModeReturn duplexMode, guaranteed to be non-null.default @NonNull BooleanReturn enableFlowControl, guaranteed to be non-null.default @NonNull MacAddressReturn macAddress, guaranteed to be non-null.default @NonNull ETHERNETSPEEDReturn portSpeed, guaranteed to be non-null.default @NonNull BooleanReturn standaloneLinkTraining, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends EthernetInterfaceConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getMacAddress
MacAddress getMacAddress()Return macAddress, ornullif it is not present.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.- Returns:
MacAddressmacAddress, ornullif it is not present.
-
requireMacAddress
Return macAddress, guaranteed to be non-null.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.- Returns:
MacAddressmacAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if macAddress is not present
-
getAutoNegotiate
Boolean getAutoNegotiate()Return autoNegotiate, ornullif it is not present.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.- Returns:
BooleanautoNegotiate, ornullif it is not present.
-
requireAutoNegotiate
Return autoNegotiate, guaranteed to be non-null.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.- Returns:
BooleanautoNegotiate, guaranteed to be non-null.- Throws:
NoSuchElementException- if autoNegotiate is not present
-
getStandaloneLinkTraining
Boolean getStandaloneLinkTraining()Return standaloneLinkTraining, ornullif it is not present.Link training is automatic tuning of the SerDes transmit and receive parameters to ensure an optimal connection over copper links. It is normally run as part of the auto negotiation sequence as specified in IEEE 802.3 Clause 73. Standalone link training is used when full auto negotiation is not desired on an Ethernet link but link training is needed. It is configured by setting the standalone-link-training leaf to TRUE and augo-negotiate leaf to FALSE. Note: If auto-negotiate is true, then the value of standalone link training leaf will be ignored.- Returns:
BooleanstandaloneLinkTraining, ornullif it is not present.
-
requireStandaloneLinkTraining
Return standaloneLinkTraining, guaranteed to be non-null.Link training is automatic tuning of the SerDes transmit and receive parameters to ensure an optimal connection over copper links. It is normally run as part of the auto negotiation sequence as specified in IEEE 802.3 Clause 73. Standalone link training is used when full auto negotiation is not desired on an Ethernet link but link training is needed. It is configured by setting the standalone-link-training leaf to TRUE and augo-negotiate leaf to FALSE. Note: If auto-negotiate is true, then the value of standalone link training leaf will be ignored.- Returns:
BooleanstandaloneLinkTraining, guaranteed to be non-null.- Throws:
NoSuchElementException- if standaloneLinkTraining is not present
-
getDuplexMode
EthernetInterfaceConfig.DuplexMode getDuplexMode()Return duplexMode, ornullif it is not present.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.- Returns:
DuplexModeduplexMode, ornullif it is not present.
-
requireDuplexMode
Return duplexMode, guaranteed to be non-null.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.- Returns:
DuplexModeduplexMode, guaranteed to be non-null.- Throws:
NoSuchElementException- if duplexMode is not present
-
getPortSpeed
ETHERNETSPEED getPortSpeed()Return portSpeed, ornullif it is not present.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- Returns:
ETHERNETSPEEDportSpeed, ornullif it is not present.
-
requirePortSpeed
Return portSpeed, guaranteed to be non-null.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- Returns:
ETHERNETSPEEDportSpeed, guaranteed to be non-null.- Throws:
NoSuchElementException- if portSpeed is not present
-
getEnableFlowControl
Boolean getEnableFlowControl()Return enableFlowControl, ornullif it is not present.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.- Returns:
BooleanenableFlowControl, ornullif it is not present.
-
requireEnableFlowControl
Return enableFlowControl, guaranteed to be non-null.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.- Returns:
BooleanenableFlowControl, guaranteed to be non-null.- Throws:
NoSuchElementException- if enableFlowControl is not present
-