Interface Attributes
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<Attributes>,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.ChildOf<PathAttributes>,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.DataObject,org.opendaylight.yangtools.binding.Grouping,NextHop
@Generated("mdsal-binding-generator")
public interface Attributes
extends org.opendaylight.yangtools.binding.ChildOf<PathAttributes>, org.opendaylight.yangtools.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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbindingEquals(@NonNull Attributes thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Attributes obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Attributes obj) Default implementation ofObject.toString()contract for this interface.Return aggregator, ornullif it is not present.getAigp()Return aigp, ornullif it is not present.Return asPath, ornullif it is not present.Return atomicAggregate, ornullif it is not present.Return bgpPrefixSid, ornullif it is not present.Return clusterId, ornullif it is not present.@Nullable List<Communities> Return communities, ornullif it is not present.@Nullable List<ExtendedCommunities> Return extendedCommunities, ornullif it is not present.Return localPref, ornullif it is not present.Return multiExitDisc, ornullif it is not present.Return origin, ornullif it is not present.Return originatorId, ornullif it is not present.@Nullable Map<UnrecognizedAttributesKey, UnrecognizedAttributes> Return unrecognizedAttributes, ornullif it is not present.default Class<Attributes> @NonNull AggregatorReturn aggregator, or an empty instance if it is not present.@NonNull AigpReturn aigp, or an empty instance if it is not present.@NonNull AsPathReturn asPath, or an empty instance if it is not present.@NonNull BgpPrefixSidReturn bgpPrefixSid, or an empty instance if it is not present.@NonNull ClusterIdReturn clusterId, or an empty instance if it is not present.default @NonNull List<Communities> Return communities, or an empty list if it is not present.default @NonNull List<ExtendedCommunities> Return extendedCommunities, or an empty list if it is not present.@NonNull LocalPrefReturn localPref, or an empty instance if it is not present.@NonNull MultiExitDiscReturn multiExitDisc, or an empty instance if it is not present.@NonNull OriginReturn origin, or an empty instance if it is not present.@NonNull OriginatorIdReturn originatorId, or an empty instance if it is not present.default @NonNull Map<UnrecognizedAttributesKey, UnrecognizedAttributes> Return unrecognizedAttributes, or an empty list if it is not present.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentationsMethods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.NextHop
getCNextHop
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.DataObject
-
bindingHashCode
Default implementation ofObject.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- ifobjisnull
-
bindingEquals
Default implementation ofObject.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 invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjisnull
-
bindingToString
Default implementation ofObject.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:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjisnull
-
getOrigin
Origin getOrigin()Return origin, ornullif it is not present.- Returns:
Originorigin, ornullif it is not present.
-
nonnullOrigin
@NonNull Origin nonnullOrigin()Return origin, or an empty instance if it is not present.- Returns:
Originorigin, or an empty instance if it is not present.
-
getAsPath
AsPath getAsPath()Return asPath, ornullif it is not present.- Returns:
AsPathasPath, ornullif it is not present.
-
nonnullAsPath
@NonNull AsPath nonnullAsPath()Return asPath, or an empty instance if it is not present.- Returns:
AsPathasPath, or an empty instance if it is not present.
-
getMultiExitDisc
MultiExitDisc getMultiExitDisc()Return multiExitDisc, ornullif it is not present.- Returns:
MultiExitDiscmultiExitDisc, ornullif it is not present.
-
nonnullMultiExitDisc
@NonNull MultiExitDisc nonnullMultiExitDisc()Return multiExitDisc, or an empty instance if it is not present.- Returns:
MultiExitDiscmultiExitDisc, or an empty instance if it is not present.
-
getLocalPref
LocalPref getLocalPref()Return localPref, ornullif it is not present.- Returns:
LocalPreflocalPref, ornullif it is not present.
-
nonnullLocalPref
@NonNull LocalPref nonnullLocalPref()Return localPref, or an empty instance if it is not present.- Returns:
LocalPreflocalPref, or an empty instance if it is not present.
-
getAtomicAggregate
AtomicAggregate getAtomicAggregate()Return atomicAggregate, ornullif it is not present.- Returns:
AtomicAggregateatomicAggregate, ornullif it is not present.
-
getAggregator
Aggregator getAggregator()Return aggregator, ornullif it is not present.- Returns:
Aggregatoraggregator, ornullif it is not present.
-
nonnullAggregator
@NonNull Aggregator nonnullAggregator()Return aggregator, or an empty instance if it is not present.- Returns:
Aggregatoraggregator, or an empty instance if it is not present.
-
getCommunities
@Nullable List<Communities> getCommunities()Return communities, ornullif it is not present.- Returns:
List<Communities>communities, ornullif it is not present.
-
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, ornullif it is not present.- Returns:
List<ExtendedCommunities>extendedCommunities, ornullif it is not present.
-
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, ornullif it is not present.- Returns:
OriginatorIdoriginatorId, ornullif it is not present.
-
nonnullOriginatorId
@NonNull OriginatorId nonnullOriginatorId()Return originatorId, or an empty instance if it is not present.- Returns:
OriginatorIdoriginatorId, or an empty instance if it is not present.
-
getClusterId
ClusterId getClusterId()Return clusterId, ornullif it is not present.- Returns:
ClusterIdclusterId, ornullif it is not present.
-
nonnullClusterId
@NonNull ClusterId nonnullClusterId()Return clusterId, or an empty instance if it is not present.- Returns:
ClusterIdclusterId, or an empty instance if it is not present.
-
getAigp
Aigp getAigp()Return aigp, ornullif it is not present.- Returns:
Aigpaigp, ornullif it is not present.
-
nonnullAigp
@NonNull Aigp nonnullAigp()Return aigp, or an empty instance if it is not present.- Returns:
Aigpaigp, or an empty instance if it is not present.
-
getUnrecognizedAttributes
@Nullable Map<UnrecognizedAttributesKey,UnrecognizedAttributes> getUnrecognizedAttributes()Return unrecognizedAttributes, ornullif it is not present.- Returns:
Map<UnrecognizedAttributesKey, UnrecognizedAttributes>unrecognizedAttributes, ornullif 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, ornullif it is not present.- Returns:
BgpPrefixSidbgpPrefixSid, ornullif it is not present.
-
nonnullBgpPrefixSid
@NonNull BgpPrefixSid nonnullBgpPrefixSid()Return bgpPrefixSid, or an empty instance if it is not present.- Returns:
BgpPrefixSidbgpPrefixSid, or an empty instance if it is not present.
-