public class BgpNodeLSNlriVer4 extends Object implements BgpNodeLSNlri
| Modifier and Type | Class and Description |
|---|---|
static class |
BgpNodeLSNlriVer4.ProtocolType
Enum to provide PROTOCOLTYPE.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
IDENTIFIER_LENGTH |
protected static org.slf4j.Logger |
log |
static int |
NODE_NLRITYPE |
| Constructor and Description |
|---|
BgpNodeLSNlriVer4()
Reset fields.
|
BgpNodeLSNlriVer4(long identifier,
byte protocolId,
BgpNodeLSIdentifier localNodeDescriptors,
boolean isVpn,
RouteDistinguisher routeDistinguisher)
Constructors to initialize its parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getIdentifier()
Returns Identifier in Nlri.
|
BgpNodeLSIdentifier |
getLocalNodeDescriptors()
Returns local node descriptors.
|
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.
|
static BgpNodeLSNlriVer4 |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short afi,
byte safi)
Reads from channelBuffer and parses Node LS Nlri.
|
void |
setNodeLSIdentifier(BgpNodeLSIdentifier localNodeDescriptors)
Set the node LS identifier.
|
String |
toString() |
protected static final org.slf4j.Logger log
public static final int NODE_NLRITYPE
public static final int IDENTIFIER_LENGTH
public BgpNodeLSNlriVer4()
public BgpNodeLSNlriVer4(long identifier,
byte protocolId,
BgpNodeLSIdentifier localNodeDescriptors,
boolean isVpn,
RouteDistinguisher routeDistinguisher)
identifier - of LinkState NlriprotocolId - of LinkState NlrilocalNodeDescriptors - local node descriptorsisVpn - true if VPN info is presentrouteDistinguisher - unique for each VPNpublic static BgpNodeLSNlriVer4 read(org.jboss.netty.buffer.ChannelBuffer cb, short afi, byte safi) throws BgpParseException
cb - ChannelBufferafi - Address Family Identifiersafi - Subsequent Address Family IdentifierBgpParseException - while parsing node descriptorspublic NlriType getNlriType()
BgpLSNlrigetNlriType in interface BgpLSNlripublic BgpNodeLSIdentifier getLocalNodeDescriptors()
BgpNodeLSNlrigetLocalNodeDescriptors in interface BgpNodeLSNlripublic boolean isVpnPresent()
public RouteDistinguisher getRouteDistinguisher()
BgpLSNlrigetRouteDistinguisher in interface BgpLSNlripublic long getIdentifier()
BgpLSNlrigetIdentifier in interface BgpLSNlripublic void setNodeLSIdentifier(BgpNodeLSIdentifier localNodeDescriptors)
localNodeDescriptors - node LS identifier to setpublic BgpNodeLSNlriVer4.ProtocolType getProtocolId() throws BgpParseException
BgpLSNlrigetProtocolId in interface BgpLSNlriBgpParseException - while getting protocol ID