public final class PathIdUtil extends Object
Modifier and Type | Field and Description |
---|---|
static PathId |
NON_PATH_ID |
static long |
NON_PATH_ID_VALUE |
Modifier and Type | Method and Description |
---|---|
static PathId |
buildPathId(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> routesCont,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier pathIdNii)
Build Path Id.
|
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates |
createNidKey(org.opendaylight.yangtools.yang.common.QName routeQName,
org.opendaylight.yangtools.util.ImmutableOffsetMapTemplate<org.opendaylight.yangtools.yang.common.QName> routeKeyTemplate,
Object routeKeyValue,
Optional<org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument,?>> maybePathIdLeaf)
Build Route Key for supporting mp.
|
static Long |
extractPathId(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier pathNii)
Extract PathId from route change received.
|
static PathId |
readPathId(io.netty.buffer.ByteBuf buffer)
Reads Path Identifier (4 bytes) from buffer.
|
static void |
writePathId(PathId pathId,
io.netty.buffer.ByteBuf buffer)
Writes path-id value into the buffer when
the path-id is not null or does not equal to zero.
|
public static final long NON_PATH_ID_VALUE
public static final PathId NON_PATH_ID
public static void writePathId(PathId pathId, io.netty.buffer.ByteBuf buffer)
pathId
- The NLRI Path Identifier.buffer
- The ByteBuf where path-id value can be written.public static PathId readPathId(io.netty.buffer.ByteBuf buffer)
buffer
- Input buffer.public static Long extractPathId(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier pathNii)
data
- Data containing the path IdpathNii
- Path Id NodeIdentifier specific per each Rib supportpublic static PathId buildPathId(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> routesCont, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier pathIdNii)
routesCont
- route containerpathIdNii
- path Id node Identifierpublic static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates createNidKey(org.opendaylight.yangtools.yang.common.QName routeQName, org.opendaylight.yangtools.util.ImmutableOffsetMapTemplate<org.opendaylight.yangtools.yang.common.QName> routeKeyTemplate, Object routeKeyValue, Optional<org.opendaylight.yangtools.yang.data.api.schema.DataContainerChild<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument,?>> maybePathIdLeaf)
routeQName
- route QNamerouteKeyTemplate
- route key templaterouteKeyValue
- route key valuemaybePathIdLeaf
- path id container, it might me supported or not, in that case default 0 value will
be assignedCopyright © 2020 OpenDaylight. All rights reserved.