public class BgpUpdateMsgVer4 extends Object implements BgpUpdateMsg
| Modifier and Type | Class and Description |
|---|---|
static class |
BgpUpdateMsgVer4.Writer
Writer class for writing BGP update message to channel buffer.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_IN_BITS |
static BgpHeader |
DEFAULT_UPDATE_HEADER |
protected static org.slf4j.Logger |
log |
static byte[] |
marker |
static int |
MARKER_LENGTH |
static int |
MIN_LEN_AFTER_WITHDRW_ROUTES |
static int |
MINIMUM_COMMON_HEADER_LENGTH |
static BgpType |
MSG_TYPE |
static int |
PACKET_MINIMUM_LENGTH |
static byte |
PACKET_VERSION |
static org.onosproject.bgpio.protocol.ver4.BgpUpdateMsgVer4.Reader |
READER |
static BgpUpdateMsgVer4.Writer |
WRITER |
| Constructor and Description |
|---|
BgpUpdateMsgVer4(BgpHeader bgpHeader,
List<org.onlab.packet.IpPrefix> withdrawnRoutes,
BgpPathAttributes bgpPathAttributes,
List<org.onlab.packet.IpPrefix> nlri)
Constructor to initialize parameters for BGP Update message.
|
| Modifier and Type | Method and Description |
|---|---|
BgpPathAttributes |
bgpPathAttributes()
Returns path attributes in BGP Update Message.
|
BgpHeader |
getHeader()
Returns BGP Header of BGP Message.
|
BgpType |
getType()
Returns BGP Type of BGP Message.
|
BgpVersion |
getVersion()
Returns version of BGP Message.
|
List<org.onlab.packet.IpPrefix> |
nlri()
Returns NLRI list of prefix.
|
static LinkedList<org.onlab.packet.IpPrefix> |
parseNlri(org.jboss.netty.buffer.ChannelBuffer cb)
Parses NLRI from channel buffer.
|
static LinkedList<org.onlab.packet.IpPrefix> |
parseWithdrawnRoutes(org.jboss.netty.buffer.ChannelBuffer cb)
Parsing withdrawn routes from channel buffer.
|
String |
toString() |
List<org.onlab.packet.IpPrefix> |
withdrawnRoutes()
Returns withdrawn Routes.
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer channelBuffer)
Writes byte streams of messages to channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte PACKET_VERSION
public static final int PACKET_MINIMUM_LENGTH
public static final int MARKER_LENGTH
public static final int BYTE_IN_BITS
public static final int MIN_LEN_AFTER_WITHDRW_ROUTES
public static final int MINIMUM_COMMON_HEADER_LENGTH
public static final BgpType MSG_TYPE
public static byte[] marker
public static final BgpHeader DEFAULT_UPDATE_HEADER
public static final org.onosproject.bgpio.protocol.ver4.BgpUpdateMsgVer4.Reader READER
public static final BgpUpdateMsgVer4.Writer WRITER
public BgpUpdateMsgVer4(BgpHeader bgpHeader, List<org.onlab.packet.IpPrefix> withdrawnRoutes, BgpPathAttributes bgpPathAttributes, List<org.onlab.packet.IpPrefix> nlri)
bgpHeader - in Update messagewithdrawnRoutes - withdrawn routesbgpPathAttributes - BGP Path attributesnlri - Network Layer Reachability Informationpublic static LinkedList<org.onlab.packet.IpPrefix> parseNlri(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channelBufferBgpParseException - while parsing NLRIpublic static LinkedList<org.onlab.packet.IpPrefix> parseWithdrawnRoutes(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channelBufferBgpParseException - while parsing withdrawn routespublic BgpVersion getVersion()
BgpMessagegetVersion in interface BgpMessagegetVersion in interface BgpUpdateMsgpublic BgpType getType()
BgpMessagegetType in interface BgpMessagegetType in interface BgpUpdateMsgpublic void writeTo(org.jboss.netty.buffer.ChannelBuffer channelBuffer)
WriteablewriteTo in interface BgpMessagewriteTo in interface BgpUpdateMsgwriteTo in interface WriteablechannelBuffer - channelBufferpublic BgpPathAttributes bgpPathAttributes()
BgpUpdateMsgbgpPathAttributes in interface BgpUpdateMsgpublic List<org.onlab.packet.IpPrefix> withdrawnRoutes()
BgpUpdateMsgwithdrawnRoutes in interface BgpUpdateMsgpublic List<org.onlab.packet.IpPrefix> nlri()
BgpUpdateMsgnlri in interface BgpUpdateMsgpublic BgpHeader getHeader()
BgpMessagegetHeader in interface BgpMessagegetHeader in interface BgpUpdateMsg