Interface SrNodeAttributes

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

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

    This class represents the following YANG schema fragment defined in module network-topology-sr

     grouping sr-node-attributes {
       list segments {
         leaf segment-id {
           type segment-id;
         }
         key segment-id;
         choice segment-specification {
           case adjacency-case {
             container adjacency {
               leaf adjacency {
                 type nt:link-ref;
               }
             }
           }
           case prefix-case {
             container prefix {
               leaf prefix {
                 type inet:ip-prefix;
               }
               leaf node-sid {
                 type boolean;
                 default false;
               }
             }
           }
         }
       }
     }
     
    The schema path to identify an instance is network-topology-srsr-node-attributes
    • Field Detail

      • QNAME

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

      • implementedInterface

        Class<? extends SrNodeAttributes> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getSegments

        @Nullable Map<SegmentsKey,​Segments> getSegments()
        Return segments, or null if it is not present.
        Returns:
        Map<SegmentsKey, Segments> segments, or null if it is not present.
      • nonnullSegments

        default @NonNull Map<SegmentsKey,​Segments> nonnullSegments()
        Return segments, or an empty list if it is not present.
        Returns:
        Map<SegmentsKey, Segments> segments, or an empty list if it is not present.