public class MpUnReachNlri extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAGS |
static short |
FLOW_SPEC_LEN |
static byte |
LINK_NLRITYPE |
static byte |
MPUNREACHNLRI_TYPE |
| Constructor and Description |
|---|
MpUnReachNlri(BgpFlowSpecDetails bgpFlowSpecInfo,
short afi,
byte safi) |
MpUnReachNlri(List<BgpLSNlri> mpUnReachNlri,
short afi,
byte safi,
int length)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
short |
afi()
Returns AFI.
|
BgpFlowSpecDetails |
bgpFlowSpecInfo()
Returns BGP flow specification info.
|
int |
compareTo(Object o)
Compares two objects.
|
short |
getType()
Returns the Type of BGP Message.
|
boolean |
isMpUnReachNlriSet()
Returns whether MpReachNlri is present.
|
List<BgpLSNlri> |
mpUnReachNlri()
Returns list of MpUnReach Nlri.
|
int |
mpUnReachNlriLen()
Returns length of MpUnReach.
|
static MpUnReachNlri |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from ChannelBuffer and parses MpUnReachNlri.
|
byte |
safi()
Returns SAFI.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte MPUNREACHNLRI_TYPE
public static final byte LINK_NLRITYPE
public static final byte FLAGS
public static final short FLOW_SPEC_LEN
public MpUnReachNlri(List<BgpLSNlri> mpUnReachNlri, short afi, byte safi, int length)
mpUnReachNlri - MpUnReach Nlri attributeafi - address family identifiersafi - subsequent address family identifierlength - of MpUnReachNlripublic MpUnReachNlri(BgpFlowSpecDetails bgpFlowSpecInfo, short afi, byte safi)
public BgpFlowSpecDetails bgpFlowSpecInfo()
public static MpUnReachNlri read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing MpUnReachNlripublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic byte safi()
public short afi()
public List<BgpLSNlri> mpUnReachNlri()
public boolean isMpUnReachNlriSet()
public int mpUnReachNlriLen()
public int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.