public class MpReachNlri extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAGS |
static byte |
LINK_NLRITYPE |
static byte |
MPREACHNLRI_TYPE |
| Constructor and Description |
|---|
MpReachNlri(BgpFlowSpecNlri bgpFlowSpecNlri,
short afi,
byte safi) |
MpReachNlri(List<BgpLSNlri> mpReachNlri,
short afi,
byte safi,
org.onlab.packet.Ip4Address ipNextHop,
int length)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
short |
afi()
Returns AFI.
|
BgpFlowSpecNlri |
bgpFlowSpecNlri()
Returns BGP flow specification info.
|
int |
compareTo(Object o)
Compares two objects.
|
short |
getType()
Returns the Type of BGP Message.
|
boolean |
isMpReachNlriSet()
Returns whether MpReachNlri is present.
|
List<BgpLSNlri> |
mpReachNlri()
Returns list of MpReach Nlri.
|
int |
mpReachNlriLen()
Returns length of MpReachNlri.
|
org.onlab.packet.Ip4Address |
nexthop4()
Returns Nexthop IpAddress.
|
static MpReachNlri |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from ChannelBuffer and parses MpReachNlri.
|
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 MPREACHNLRI_TYPE
public static final byte LINK_NLRITYPE
public static final byte FLAGS
public MpReachNlri(List<BgpLSNlri> mpReachNlri, short afi, byte safi, org.onlab.packet.Ip4Address ipNextHop, int length)
mpReachNlri - MpReach Nlri attributeafi - address family identifiersafi - subsequent address family identifieripNextHop - nexthop IpAddresslength - of MpReachNlripublic MpReachNlri(BgpFlowSpecNlri bgpFlowSpecNlri, short afi, byte safi)
public boolean isMpReachNlriSet()
public List<BgpLSNlri> mpReachNlri()
public int mpReachNlriLen()
public BgpFlowSpecNlri bgpFlowSpecNlri()
public static MpReachNlri read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channelBufferBgpParseException - while parsing MpReachNlripublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic short afi()
public org.onlab.packet.Ip4Address nexthop4()
public byte safi()
public int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object