public final class MessageUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMON_HEADER_LENGTH |
static int |
MARKER_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static void |
formatMessage(int type,
io.netty.buffer.ByteBuf body,
io.netty.buffer.ByteBuf buffer)
Adds header to message value.
|
static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri |
getMpReachNlri(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.Attributes attrs)
Finds MP-REACH-NLRI in Update message attributes.
|
static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri |
getMpUnreachNlri(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.Attributes attrs)
Finds MP-UNREACH-NLRI in Update message attributes.
|
static boolean |
isAnyNlriPresent(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.Update message)
Check for NLRI attribute in Update message.
|
public static final int MARKER_LENGTH
public static final int COMMON_HEADER_LENGTH
public static void formatMessage(int type,
io.netty.buffer.ByteBuf body,
io.netty.buffer.ByteBuf buffer)
type - of the messagebody - message bodybuffer - ByteBuf where the message will be copied with its headerpublic static boolean isAnyNlriPresent(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.Update message)
message - Update messagepublic static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri getMpReachNlri(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.Attributes attrs)
attrs - Update message attributespublic static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpUnreachNlri getMpUnreachNlri(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.Attributes attrs)
attrs - Update message attributesCopyright © 2019 OpenDaylight. All rights reserved.