Interface PrefixState

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

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

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

     grouping prefix-state {
       container igp-bits {
         uses igp-bits;
       }
       leaf-list route-tags {
         type route-tag;
       }
       leaf-list extended-tags {
         type extended-route-tag;
       }
       leaf prefix-metric {
         type netc:igp-metric;
       }
       leaf ospf-forwarding-address {
         type inet:ip-address-no-zone;
       }
       container sr-prefix {
         uses bgp-sr:prefix-sid-tlv;
       }
       container ipv6-sr-prefix {
         uses bgp-sr:ipv6-prefix-sid-tlv;
       }
       container sr-range {
         uses bgp-sr:range-tlv;
       }
       list sr-binding-sid-labels {
         uses bgp-sr:binding-sid-tlv;
       }
     }
     
    • 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 PrefixState> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getIgpBits

        IgpBits getIgpBits()
        Return igpBits, or null if it is not present.
        Returns:
        IgpBits igpBits, or null if it is not present.
      • getRouteTags

        @Nullable Set<RouteTag> getRouteTags()
        Return routeTags, or null if it is not present.
        Returns:
        Set<RouteTag> routeTags, or null if it is not present.
      • requireRouteTags

        default @NonNull Set<RouteTag> requireRouteTags()
        Return routeTags, guaranteed to be non-null.
        Returns:
        Set<RouteTag> routeTags, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if routeTags is not present
      • getExtendedTags

        @Nullable Set<ExtendedRouteTag> getExtendedTags()
        Return extendedTags, or null if it is not present.
        Returns:
        Set<ExtendedRouteTag> extendedTags, or null if it is not present.
      • requireExtendedTags

        default @NonNull Set<ExtendedRouteTag> requireExtendedTags()
        Return extendedTags, guaranteed to be non-null.
        Returns:
        Set<ExtendedRouteTag> extendedTags, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if extendedTags is not present
      • getPrefixMetric

        IgpMetric getPrefixMetric()
        Return prefixMetric, or null if it is not present.
        Returns:
        IgpMetric prefixMetric, or null if it is not present.
      • requirePrefixMetric

        default @NonNull IgpMetric requirePrefixMetric()
        Return prefixMetric, guaranteed to be non-null.
        Returns:
        IgpMetric prefixMetric, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if prefixMetric is not present
      • getOspfForwardingAddress

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getOspfForwardingAddress()
        Return ospfForwardingAddress, or null if it is not present.
        Returns:
        IpAddressNoZone ospfForwardingAddress, or null if it is not present.
      • requireOspfForwardingAddress

        default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone requireOspfForwardingAddress()
        Return ospfForwardingAddress, guaranteed to be non-null.
        Returns:
        IpAddressNoZone ospfForwardingAddress, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if ospfForwardingAddress is not present
      • getSrPrefix

        SrPrefix getSrPrefix()
        Return srPrefix, or null if it is not present.
        Returns:
        SrPrefix srPrefix, or null if it is not present.
      • getIpv6SrPrefix

        Ipv6SrPrefix getIpv6SrPrefix()
        Return ipv6SrPrefix, or null if it is not present.
        Returns:
        Ipv6SrPrefix ipv6SrPrefix, or null if it is not present.
      • getSrRange

        SrRange getSrRange()
        Return srRange, or null if it is not present.
        Returns:
        SrRange srRange, or null if it is not present.
      • getSrBindingSidLabels

        @Nullable List<SrBindingSidLabels> getSrBindingSidLabels()
        Return srBindingSidLabels, or null if it is not present.
        Returns:
        List<SrBindingSidLabels> srBindingSidLabels, or null if it is not present.
      • nonnullSrBindingSidLabels

        default @NonNull List<SrBindingSidLabels> nonnullSrBindingSidLabels()
        Return srBindingSidLabels, or an empty list if it is not present.
        Returns:
        List<SrBindingSidLabels> srBindingSidLabels, or an empty list if it is not present.