Interface ReasonTlv

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<ReasonTlv>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<ReasonTlv>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, Tlv

    public interface ReasonTlv
    extends org.opendaylight.yangtools.yang.binding.ChildOf<ReasonTlv>, org.opendaylight.yangtools.yang.binding.Augmentable<ReasonTlv>, Tlv
    Type = 1: Reason. The Information field contains a two-byte code indicating the reason the connection was terminated. Some reasons may have further TLVs associated with them. Inclusion of this TLV is not optional.

    This class represents the following YANG schema fragment defined in module bmp-message

     container reason-tlv {
       uses tlv;
       leaf reason {
         type reason;
       }
     }
     
    The schema path to identify an instance is bmp-message/reason-tlv/reason-tlv

    To create instances of this class use ReasonTlvBuilder.

    See Also:
    ReasonTlvBuilder
    • Field Detail

      • QNAME

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

      • implementedInterface

        default Class<ReasonTlv> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
        Specified by:
        implementedInterface in interface Tlv
      • getReason

        @Nullable Reason getReason()
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.message.rev200120.Reason reason, or null if not present