Interface Linkstate

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, RouteDistinguisherGrouping
    All Known Subinterfaces:
    CLinkstateDestination, LinkstateRoute

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

    This class represents the following YANG schema fragment defined in module bgp-linkstate

     grouping linkstate {
       uses bgp-t:route-distinguisher-grouping {
         refine route-distinguisher {
           mandatory false;
         }
       }
       leaf protocol-id {
         type protocol-id;
       }
       leaf identifier {
         type identifier;
       }
       choice object-type {
         case node-case {
           container node-descriptors {
             uses node-identifier;
           }
         }
         case link-case {
           container local-node-descriptors {
             uses node-identifier;
             uses bgp-epe:epe-node-descriptors;
           }
           container remote-node-descriptors {
             uses node-identifier;
             uses bgp-epe:epe-node-descriptors;
           }
           container link-descriptors {
             uses link-identifier;
           }
         }
         case prefix-case {
           container advertising-node-descriptors {
             uses node-identifier;
           }
           container prefix-descriptors {
             uses prefix-identifiers;
           }
         }
         case te-lsp-case {
           choice address-family {
             case ipv4-case {
               leaf ipv4-tunnel-sender-address {
                 type inet:ipv4-address-no-zone;
               }
               leaf ipv4-tunnel-endpoint-address {
                 type inet:ipv4-address-no-zone;
               }
             }
             case ipv6-case {
               leaf ipv6-tunnel-sender-address {
                 type inet:ipv6-address-no-zone;
               }
               leaf ipv6-tunnel-endpoint-address {
                 type inet:ipv6-address-no-zone;
               }
             }
           }
           leaf tunnel-id {
             type rsvp:tunnel-id;
           }
           leaf lsp-id {
             type rsvp:lsp-id;
           }
         }
       }
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends Linkstate> 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 RouteDistinguisherGrouping
      • getProtocolId

        ProtocolId getProtocolId()
        Return protocolId, or null if it is not present.
        Returns:
        ProtocolId protocolId, or null if it is not present.
      • requireProtocolId

        default @NonNull ProtocolId requireProtocolId()
        Return protocolId, guaranteed to be non-null.
        Returns:
        ProtocolId protocolId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if protocolId is not present
      • getIdentifier

        Identifier getIdentifier()
        Return identifier, or null if it is not present.
        Returns:
        Identifier identifier, or null if it is not present.
      • requireIdentifier

        default @NonNull Identifier requireIdentifier()
        Return identifier, guaranteed to be non-null.
        Returns:
        Identifier identifier, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if identifier is not present
      • getObjectType

        ObjectType getObjectType()
        Return objectType, or null if it is not present.
        Returns:
        ObjectType objectType, or null if it is not present.