public class BgpEvpnNlriImpl extends java.lang.Object implements BgpEvpnNlri
| Modifier and Type | Field and Description |
|---|---|
static short |
TYPE_AND_LEN |
| Constructor and Description |
|---|
BgpEvpnNlriImpl()
Resets parameters.
|
BgpEvpnNlriImpl(byte routeType,
BgpEvpnNlriData routeTypeSpefic)
Constructor to initialize parameters for BGP EvpnNlri.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
BgpEvpnNlriData |
getNlri()
Returns route type specific Nlri.
|
BgpEvpnRouteType |
getRouteType()
Returns route type in Nlri.
|
short |
getType()
Returns the Type of BGP Message.
|
static BgpEvpnNlriImpl |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channelBuffer and parses Evpn Nlri.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE_AND_LEN
public BgpEvpnNlriImpl()
public BgpEvpnNlriImpl(byte routeType,
BgpEvpnNlriData routeTypeSpefic)
routeType - route TyperouteTypeSpefic - route type specificpublic static BgpEvpnNlriImpl read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing Bgp Evpn Nlripublic BgpEvpnNlriData getNlri()
BgpEvpnNlrigetNlri in interface BgpEvpnNlripublic BgpEvpnRouteType getRouteType()
BgpEvpnNlrigetRouteType in interface BgpEvpnNlripublic java.lang.String toString()
toString in class java.lang.Objectpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object