public class BgpLinkLsNlriVer4 extends Object implements BgpLinkLsNlri
| Modifier and Type | Field and Description |
|---|---|
static int |
LINK_NLRITYPE |
| Constructor and Description |
|---|
BgpLinkLsNlriVer4()
Initialize fields.
|
BgpLinkLsNlriVer4(byte protocolId,
long identifier,
BgpLinkLSIdentifier linkLSIdentifier,
RouteDistinguisher routeDistinguisher,
boolean isVpn)
Constructor to initialize parameters for BGP LinkLSNlri.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getIdentifier()
Returns Identifier in Nlri.
|
BgpLinkLSIdentifier |
getLinkIdentifier()
Returns link identifier.
|
NlriType |
getNlriType()
Returns NlriType of BGP-LS NLRI.
|
BgpNodeLSNlriVer4.ProtocolType |
getProtocolId()
Returns Protocol Id in Nlri.
|
RouteDistinguisher |
getRouteDistinguisher()
Returns Route distinguisher in Nlri.
|
boolean |
isVpnPresent()
Returns whether VPN is present or not.
|
List<BgpValueType> |
linkDescriptors()
Returns link descriptors.
|
NodeDescriptors |
localNodeDescriptors()
Returns local node descriptors.
|
static BgpLinkLsNlriVer4 |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short afi,
byte safi)
Reads from channelBuffer and parses Link LS Nlri.
|
NodeDescriptors |
remoteNodeDescriptors()
Returns remote node descriptors.
|
void |
setLinkLSIdentifier(BgpLinkLSIdentifier linkLSIdentifier)
Set the link LS identifier.
|
String |
toString() |
public static final int LINK_NLRITYPE
public BgpLinkLsNlriVer4()
public BgpLinkLsNlriVer4(byte protocolId,
long identifier,
BgpLinkLSIdentifier linkLSIdentifier,
RouteDistinguisher routeDistinguisher,
boolean isVpn)
protocolId - protocol Ididentifier - field in BGP LinkLSNlrilinkLSIdentifier - link LS identifierrouteDistinguisher - route distinguisher from messageisVpn - vpn info availability in messagepublic static BgpLinkLsNlriVer4 read(org.jboss.netty.buffer.ChannelBuffer cb, short afi, byte safi) throws BgpParseException
cb - ChannelBufferafi - Address Family Identifiersafi - Subsequent Address Family IdentifierBgpParseException - while parsing Link LS NLRIpublic NlriType getNlriType()
BgpLSNlrigetNlriType in interface BgpLSNlripublic long getIdentifier()
BgpLSNlrigetIdentifier in interface BgpLSNlripublic void setLinkLSIdentifier(BgpLinkLSIdentifier linkLSIdentifier)
linkLSIdentifier - link LS identifier to setpublic BgpNodeLSNlriVer4.ProtocolType getProtocolId() throws BgpParseException
BgpLSNlrigetProtocolId in interface BgpLSNlriBgpParseException - while getting protocol IDpublic NodeDescriptors localNodeDescriptors()
BgpLinkLsNlrilocalNodeDescriptors in interface BgpLinkLsNlripublic NodeDescriptors remoteNodeDescriptors()
BgpLinkLsNlriremoteNodeDescriptors in interface BgpLinkLsNlripublic boolean isVpnPresent()
public RouteDistinguisher getRouteDistinguisher()
BgpLSNlrigetRouteDistinguisher in interface BgpLSNlripublic BgpLinkLSIdentifier getLinkIdentifier()
public List<BgpValueType> linkDescriptors()
BgpLinkLsNlrilinkDescriptors in interface BgpLinkLsNlriCopyright © 2016. All rights reserved.