Interface EthernetInterfaceState
- 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
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator")
public interface EthernetInterfaceState
extends org.opendaylight.yangtools.yang.binding.DataObject
Grouping for defining Ethernet-specific operational state
This class represents the following YANG schema fragment defined in module openconfig-if-ethernet
grouping ethernet-interface-state {
leaf hw-mac-address {
type oc-yang:mac-address;
}
leaf negotiated-duplex-mode {
type enumeration {
enum FULL {
}
enum HALF {
}
}
}
leaf negotiated-port-speed {
type identityref {
base ETHERNET_SPEED;
}
}
container counters {
uses ethernet-interface-state-counters;
}
}
-
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 counters, ornullif it is not present.Return hwMacAddress, ornullif it is not present.Return negotiatedDuplexMode, ornullif it is not present.Return negotiatedPortSpeed, ornullif it is not present.Class<? extends EthernetInterfaceState>@NonNull CountersReturn counters, or an empty instance if it is not present.default @NonNull MacAddressReturn hwMacAddress, guaranteed to be non-null.default @NonNull EthernetInterfaceState.NegotiatedDuplexModeReturn negotiatedDuplexMode, guaranteed to be non-null.default @NonNull ETHERNETSPEEDReturn negotiatedPortSpeed, 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 EthernetInterfaceState> 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
-
getHwMacAddress
MacAddress getHwMacAddress()Return hwMacAddress, ornullif it is not present.Represenets the 'burned-in', or system-assigned, MAC address for the Ethernet interface.- Returns:
MacAddresshwMacAddress, ornullif it is not present.
-
requireHwMacAddress
Return hwMacAddress, guaranteed to be non-null.Represenets the 'burned-in', or system-assigned, MAC address for the Ethernet interface.- Returns:
MacAddresshwMacAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if hwMacAddress is not present
-
getNegotiatedDuplexMode
EthernetInterfaceState.NegotiatedDuplexMode getNegotiatedDuplexMode()Return negotiatedDuplexMode, ornullif it is not present.When auto-negotiate is set to TRUE, and the interface has completed auto-negotiation with the remote peer, this value shows the duplex mode that has been negotiated.- Returns:
NegotiatedDuplexModenegotiatedDuplexMode, ornullif it is not present.
-
requireNegotiatedDuplexMode
Return negotiatedDuplexMode, guaranteed to be non-null.When auto-negotiate is set to TRUE, and the interface has completed auto-negotiation with the remote peer, this value shows the duplex mode that has been negotiated.- Returns:
NegotiatedDuplexModenegotiatedDuplexMode, guaranteed to be non-null.- Throws:
NoSuchElementException- if negotiatedDuplexMode is not present
-
getNegotiatedPortSpeed
ETHERNETSPEED getNegotiatedPortSpeed()Return negotiatedPortSpeed, ornullif it is not present.When auto-negotiate is set to TRUE, and the interface has completed auto-negotiation with the remote peer, this value shows the interface speed that has been negotiated.- Returns:
ETHERNETSPEEDnegotiatedPortSpeed, ornullif it is not present.
-
requireNegotiatedPortSpeed
Return negotiatedPortSpeed, guaranteed to be non-null.When auto-negotiate is set to TRUE, and the interface has completed auto-negotiation with the remote peer, this value shows the interface speed that has been negotiated.- Returns:
ETHERNETSPEEDnegotiatedPortSpeed, guaranteed to be non-null.- Throws:
NoSuchElementException- if negotiatedPortSpeed is not present
-
getCounters
Counters getCounters()Return counters, ornullif it is not present.Ethernet interface counters- Returns:
Counterscounters, ornullif it is not present.
-
nonnullCounters
@NonNull Counters nonnullCounters()Return counters, or an empty instance if it is not present.- Returns:
Counterscounters, or an empty instance if it is not present.
-