Interface EthernetHeader

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    NeighborAdvertisePacket, NeighborSolicitationPacket, RouterAdvertisementPacket, RouterSolicitationPacket

    @Generated("mdsal-binding-generator")
    public interface EthernetHeader
    extends org.opendaylight.yangtools.yang.binding.DataObject

    This class represents the following YANG schema fragment defined in module ipv6-neighbor-discovery

     grouping ethernet-header {
       leaf source-mac {
         type yang:mac-address;
       }
       leaf destination-mac {
         type yang:mac-address;
       }
       leaf ethertype {
         type uint16;
       }
     }
     
    The schema path to identify an instance is ipv6-neighbor-discovery/ethernet-header
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static @NonNull org.opendaylight.yangtools.yang.common.QName QNAME  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getDestinationMac()
      Return destinationMac, or null if it is not present.
      org.opendaylight.yangtools.yang.common.Uint16 getEthertype()
      Return ethertype, or null if it is not present.
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getSourceMac()
      Return sourceMac, or null if it is not present.
      java.lang.Class<? extends EthernetHeader> implementedInterface()  
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        java.lang.Class<? extends EthernetHeader> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getSourceMac

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getSourceMac()
        Return sourceMac, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress sourceMac, or null if it is not present.
      • getDestinationMac

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getDestinationMac()
        Return destinationMac, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress destinationMac, or null if it is not present.
      • getEthertype

        org.opendaylight.yangtools.yang.common.Uint16 getEthertype()
        Return ethertype, or null if it is not present.
        Returns:
        org.opendaylight.yangtools.yang.common.Uint16 ethertype, or null if it is not present.