Interface Attributes

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Attributes>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<PathAttributes>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, NextHop

    @Generated("mdsal-binding-generator")
    public interface Attributes
    extends org.opendaylight.yangtools.yang.binding.ChildOf<PathAttributes>, org.opendaylight.yangtools.yang.binding.Augmentable<Attributes>, NextHop

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

     container attributes {
       container origin {
         leaf value {
           type bgp-t:bgp-origin;
         }
       }
       container as-path {
         list segments {
           uses bgp-t:as-path-segment;
         }
       }
       uses bgp-t:next-hop;
       container multi-exit-disc {
         leaf med {
           type uint32;
         }
       }
       container local-pref {
         leaf pref {
           type uint32;
         }
       }
       container atomic-aggregate {
         presence "Atomic Aggregate attribute is present.";
       }
       container aggregator {
         uses bgp-t:bgp-aggregator;
       }
       list communities {
         uses bgp-t:community;
       }
       list extended-communities {
         uses bgp-t:extended-community;
       }
       container originator-id {
         uses originator-id;
       }
       container cluster-id {
         uses cluster-id;
       }
       container aigp {
         container aigp-tlv {
           leaf metric {
             type netc:accumulated-igp-metric;
           }
         }
       }
       list unrecognized-attributes {
         key type;
         leaf partial {
           type boolean;
         }
         leaf transitive {
           type boolean;
         }
         leaf type {
           type uint8;
         }
         leaf value {
           type binary {
             length 0..65535;
           }
         }
       }
       container bgp-prefix-sid {
         list bgp-prefix-sid-tlvs {
           choice bgp-prefix-sid-tlv {
           }
         }
       }
     }
     

    To create instances of this class use AttributesBuilder.

    See Also:
    AttributesBuilder
    • 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

        default Class<Attributes> 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 NextHop
      • bindingHashCode

        static int bindingHashCode​(@NonNull Attributes obj)
        Default implementation of Object.hashCode() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.
        Parameters:
        obj - Object for which to generate hashCode() result.
        Returns:
        Hash code value of data modeled by this interface.
        Throws:
        NullPointerException - if obj is null
      • bindingEquals

        static boolean bindingEquals​(@NonNull Attributes thisObj,
                                     Object obj)
        Default implementation of Object.equals(Object) contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.
        Parameters:
        thisObj - Object acting as the receiver of equals invocation
        obj - Object acting as argument to equals invocation
        Returns:
        True if thisObj and obj are considered equal
        Throws:
        NullPointerException - if thisObj is null
      • bindingToString

        static String bindingToString​(@NonNull Attributes obj)
        Default implementation of Object.toString() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.
        Parameters:
        obj - Object for which to generate toString() result.
        Returns:
        String value of data modeled by this interface.
        Throws:
        NullPointerException - if obj is null
      • getOrigin

        Origin getOrigin()
        Return origin, or null if it is not present.
        Returns:
        Origin origin, or null if it is not present.
      • getAsPath

        AsPath getAsPath()
        Return asPath, or null if it is not present.
        Returns:
        AsPath asPath, or null if it is not present.
      • getMultiExitDisc

        MultiExitDisc getMultiExitDisc()
        Return multiExitDisc, or null if it is not present.
        Returns:
        MultiExitDisc multiExitDisc, or null if it is not present.
      • getLocalPref

        LocalPref getLocalPref()
        Return localPref, or null if it is not present.
        Returns:
        LocalPref localPref, or null if it is not present.
      • getAtomicAggregate

        AtomicAggregate getAtomicAggregate()
        Return atomicAggregate, or null if it is not present.
        Returns:
        AtomicAggregate atomicAggregate, or null if it is not present.
      • getAggregator

        Aggregator getAggregator()
        Return aggregator, or null if it is not present.
        Returns:
        Aggregator aggregator, or null if it is not present.
      • getCommunities

        @Nullable List<Communities> getCommunities()
        Return communities, or null if it is not present.
        Returns:
        List<Communities> communities, or null if it is not present.
      • nonnullCommunities

        default @NonNull List<Communities> nonnullCommunities()
        Return communities, or an empty list if it is not present.
        Returns:
        List<Communities> communities, or an empty list if it is not present.
      • getExtendedCommunities

        @Nullable List<ExtendedCommunities> getExtendedCommunities()
        Return extendedCommunities, or null if it is not present.
        Returns:
        List<ExtendedCommunities> extendedCommunities, or null if it is not present.
      • nonnullExtendedCommunities

        default @NonNull List<ExtendedCommunities> nonnullExtendedCommunities()
        Return extendedCommunities, or an empty list if it is not present.
        Returns:
        List<ExtendedCommunities> extendedCommunities, or an empty list if it is not present.
      • getOriginatorId

        OriginatorId getOriginatorId()
        Return originatorId, or null if it is not present.
        Returns:
        OriginatorId originatorId, or null if it is not present.
      • getClusterId

        ClusterId getClusterId()
        Return clusterId, or null if it is not present.
        Returns:
        ClusterId clusterId, or null if it is not present.
      • getAigp

        Aigp getAigp()
        Return aigp, or null if it is not present.
        Returns:
        Aigp aigp, or null if it is not present.
      • getUnrecognizedAttributes

        @Nullable Map<UnrecognizedAttributesKey,​UnrecognizedAttributes> getUnrecognizedAttributes()
        Return unrecognizedAttributes, or null if it is not present.
        Returns:
        Map<UnrecognizedAttributesKey, UnrecognizedAttributes> unrecognizedAttributes, or null if it is not present.
      • nonnullUnrecognizedAttributes

        default @NonNull Map<UnrecognizedAttributesKey,​UnrecognizedAttributes> nonnullUnrecognizedAttributes()
        Return unrecognizedAttributes, or an empty list if it is not present.
        Returns:
        Map<UnrecognizedAttributesKey, UnrecognizedAttributes> unrecognizedAttributes, or an empty list if it is not present.
      • getBgpPrefixSid

        BgpPrefixSid getBgpPrefixSid()
        Return bgpPrefixSid, or null if it is not present.
        Returns:
        BgpPrefixSid bgpPrefixSid, or null if it is not present.