Interface Vertex
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
Vertex
@Generated("mdsal-binding-generator")
public interface Vertex
extends org.opendaylight.yangtools.binding.Grouping
Vertex (node) representation for the network topology
This class represents the following YANG schema fragment defined in module graph
grouping vertex {
leaf vertex-id {
type uint64;
}
leaf name {
type string;
}
leaf router-id {
type inet:ipv4-address;
}
leaf router-id6 {
type inet:ipv6-address;
}
leaf type {
type node-type;
}
leaf asn {
type uint32;
}
container sr-node-attributes {
uses sr-node-attributes;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint32getAsn()Return asn, ornullif it is not present.getName()Return name, ornullif it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressReturn routerId, ornullif it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressReturn routerId6, ornullif it is not present.Return srNodeAttributes, ornullif it is not present.getType()Return type, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64Return vertexId, ornullif it is not present.@NonNull SrNodeAttributesReturn srNodeAttributes, or an empty instance if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return asn, guaranteed to be non-null.default @NonNull StringReturn name, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressReturn routerId, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressReturn routerId6, guaranteed to be non-null.default @NonNull NodeTypeReturn type, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return vertexId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getVertexId
org.opendaylight.yangtools.yang.common.Uint64 getVertexId()Return vertexId, ornullif it is not present.Identifier of the Vertex- Returns:
Uint64vertexId, ornullif it is not present.
-
requireVertexId
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requireVertexId()Return vertexId, guaranteed to be non-null.Identifier of the Vertex- Returns:
Uint64vertexId, guaranteed to be non-null.- Throws:
NoSuchElementException- if vertexId is not present
-
getName
String getName()Return name, ornullif it is not present.Name of the Vertex when known- Returns:
Stringname, ornullif it is not present.
-
requireName
Return name, guaranteed to be non-null.Name of the Vertex when known- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getRouterId
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address getRouterId()Return routerId, ornullif it is not present.Global unique IPv4 Trafic Engineering Router ID- Returns:
Ipv4AddressrouterId, ornullif it is not present.
-
requireRouterId
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address requireRouterId()Return routerId, guaranteed to be non-null.Global unique IPv4 Trafic Engineering Router ID- Returns:
Ipv4AddressrouterId, guaranteed to be non-null.- Throws:
NoSuchElementException- if routerId is not present
-
getRouterId6
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address getRouterId6()Return routerId6, ornullif it is not present.Global unique IPv6 Trafic Engineering Router ID- Returns:
Ipv6AddressrouterId6, ornullif it is not present.
-
requireRouterId6
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address requireRouterId6()Return routerId6, guaranteed to be non-null.Global unique IPv6 Trafic Engineering Router ID- Returns:
Ipv6AddressrouterId6, guaranteed to be non-null.- Throws:
NoSuchElementException- if routerId6 is not present
-
getType
NodeType getType()Return type, ornullif it is not present.- Returns:
NodeTypetype, ornullif it is not present.
-
requireType
Return type, guaranteed to be non-null.- Returns:
NodeTypetype, guaranteed to be non-null.- Throws:
NoSuchElementException- if type is not present
-
getAsn
org.opendaylight.yangtools.yang.common.Uint32 getAsn()Return asn, ornullif it is not present.AS Number- Returns:
Uint32asn, ornullif it is not present.
-
requireAsn
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireAsn()Return asn, guaranteed to be non-null.AS Number- Returns:
Uint32asn, guaranteed to be non-null.- Throws:
NoSuchElementException- if asn is not present
-
getSrNodeAttributes
SrNodeAttributes getSrNodeAttributes()Return srNodeAttributes, ornullif it is not present.Vertex Segment Routing information- Returns:
SrNodeAttributessrNodeAttributes, ornullif it is not present.
-
nonnullSrNodeAttributes
@NonNull SrNodeAttributes nonnullSrNodeAttributes()Return srNodeAttributes, or an empty instance if it is not present.- Returns:
SrNodeAttributessrNodeAttributes, or an empty instance if it is not present.
-