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 MpReachNlri |
getMpReachNlri(Attributes attrs)
Finds MP-REACH-NLRI in Update message attributes
|
static MpUnreachNlri |
getMpUnreachNlri(Attributes attrs)
Finds MP-UNREACH-NLRI in Update message attributes
|
static boolean |
isAnyNlriPresent(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(Update message)
message - Update messagepublic static MpReachNlri getMpReachNlri(Attributes attrs)
attrs - Update message attributespublic static MpUnreachNlri getMpUnreachNlri(Attributes attrs)
attrs - Update message attributesCopyright © 2019 OpenDaylight. All rights reserved.