Interface EthernetInterfaceState
-
- All Superinterfaces:
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 stateThis 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 Classes Modifier and Type Interface Description static classEthernetInterfaceState.NegotiatedDuplexMode
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CountersgetCounters()Return counters, ornullif it is not present.MacAddressgetHwMacAddress()Return hwMacAddress, ornullif it is not present.EthernetInterfaceState.NegotiatedDuplexModegetNegotiatedDuplexMode()Return negotiatedDuplexMode, ornullif it is not present.Class<? extends ETHERNETSPEED>getNegotiatedPortSpeed()Return negotiatedPortSpeed, ornullif it is not present.Class<? extends EthernetInterfaceState>implementedInterface()default @NonNull MacAddressrequireHwMacAddress()Return hwMacAddress, guaranteed to be non-null.default @NonNull EthernetInterfaceState.NegotiatedDuplexModerequireNegotiatedDuplexMode()Return negotiatedDuplexMode, guaranteed to be non-null.default @NonNull Class<? extends ETHERNETSPEED>requireNegotiatedPortSpeed()Return negotiatedPortSpeed, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends EthernetInterfaceState> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.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
default @NonNull MacAddress 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
default @NonNull EthernetInterfaceState.NegotiatedDuplexMode 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
Class<? extends 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:
Class<? extends ETHERNETSPEED>negotiatedPortSpeed, ornullif it is not present.
-
requireNegotiatedPortSpeed
default @NonNull Class<? extends ETHERNETSPEED> 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:
Class<? extends ETHERNETSPEED>negotiatedPortSpeed, 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.
-
-