Package org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.ospf.topology.rev131021.ospf.node.attributes
Interface OspfNodeAttributes
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<OspfNodeAttributes>,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.ChildOf<OspfNodeAttributes>,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.DataObject
@Generated("mdsal-binding-generator")
public interface OspfNodeAttributes
extends org.opendaylight.yangtools.binding.ChildOf<OspfNodeAttributes>, org.opendaylight.yangtools.binding.Augmentable<OspfNodeAttributes>
This class represents the following YANG schema fragment defined in module ospf-topology
container ospf-node-attributes {
choice router-type {
case abr {
leaf abr {
type empty;
}
}
case asbr {
leaf asbr {
type empty;
}
}
case internal {
leaf internal {
type empty;
}
}
case pseudonode {
leaf pseudonode {
type empty;
}
}
}
leaf dr-interface-id {
when ../router-type/pseudonode;
default 0;
type uint32;
}
leaf-list multi-topology-id {
max-elements 128;
type uint8 {
range 0..127;
}
}
leaf capabilities {
type bits {
bit graceful-restart-capable {
position 0;
}
bit graceful-restart-helper {
position 1;
}
bit stub-router-support {
position 2;
}
bit traffic-engineering-support {
position 3;
}
bit point-to-point-over-lan {
position 4;
}
bit experimental-te {
position 5;
}
}
}
container ted {
uses ted:ted-node-attributes;
}
}
To create instances of this class use OspfNodeAttributesBuilder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module ospf-topology -
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 OspfNodeAttributes thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull OspfNodeAttributes obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull OspfNodeAttributes obj) Default implementation ofObject.toString()contract for this interface.Return capabilities, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return drInterfaceId, ornullif it is not present.@Nullable Set<org.opendaylight.yangtools.yang.common.Uint8> Return multiTopologyId, ornullif it is not present.Return routerType, ornullif it is not present.getTed()Return ted, ornullif it is not present.default Class<OspfNodeAttributes> @NonNull TedReturn ted, or an empty instance if it is not present.default @NonNull OspfNodeAttributes.CapabilitiesReturn capabilities, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return drInterfaceId, guaranteed to be non-null.default @NonNull Set<org.opendaylight.yangtools.yang.common.Uint8> Return multiTopologyId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
-
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
-
getRouterType
RouterType getRouterType()Return routerType, ornullif it is not present.- Returns:
RouterTyperouterType, ornullif it is not present.
-
getDrInterfaceId
org.opendaylight.yangtools.yang.common.Uint32 getDrInterfaceId()Return drInterfaceId, ornullif it is not present.For pseudonodes, DR interface-id- Returns:
Uint32drInterfaceId, ornullif it is not present.
-
requireDrInterfaceId
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireDrInterfaceId()Return drInterfaceId, guaranteed to be non-null.For pseudonodes, DR interface-id- Returns:
Uint32drInterfaceId, guaranteed to be non-null.- Throws:
NoSuchElementException- if drInterfaceId is not present
-
getMultiTopologyId
@Nullable Set<org.opendaylight.yangtools.yang.common.Uint8> getMultiTopologyId()Return multiTopologyId, ornullif it is not present.List of Multi-Topology Identifier up-to 128 (0-127). RFC 4915- Returns:
Set<Uint8>multiTopologyId, ornullif it is not present.
-
requireMultiTopologyId
Return multiTopologyId, guaranteed to be non-null.List of Multi-Topology Identifier up-to 128 (0-127). RFC 4915- Returns:
Set<Uint8>multiTopologyId, guaranteed to be non-null.- Throws:
NoSuchElementException- if multiTopologyId is not present
-
getCapabilities
OspfNodeAttributes.Capabilities getCapabilities()Return capabilities, ornullif it is not present.OSPF capabilities as bit vector. RFC 4970- Returns:
Capabilitiescapabilities, ornullif it is not present.
-
requireCapabilities
Return capabilities, guaranteed to be non-null.OSPF capabilities as bit vector. RFC 4970- Returns:
Capabilitiescapabilities, guaranteed to be non-null.- Throws:
NoSuchElementException- if capabilities is not present
-
getTed
Ted getTed()Return ted, ornullif it is not present.- Returns:
Tedted, ornullif it is not present.
-
nonnullTed
@NonNull Ted nonnullTed()Return ted, or an empty instance if it is not present.- Returns:
Tedted, or an empty instance if it is not present.
-