public class BgpPrefixIPv4LSNlriVer4 extends Object implements BgpPrefixLSNlri
| Modifier and Type | Field and Description |
|---|---|
static int |
IDENTIFIER_LENGTH |
protected static org.slf4j.Logger |
log |
static int |
PREFIX_IPV4_NLRITYPE |
| Constructor and Description |
|---|
BgpPrefixIPv4LSNlriVer4()
Resets parameters.
|
BgpPrefixIPv4LSNlriVer4(long identifier,
byte protocolId,
BgpPrefixLSIdentifier bgpPrefixLSIdentifier,
RouteDistinguisher routeDistinguisher,
boolean isVpn)
Constructor to initialize parameters for BGP PrefixLSNlri.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getIdentifier()
Returns Identifier in Nlri.
|
NodeDescriptors |
getLocalNodeDescriptors()
Returns local node descriptors.
|
NlriType |
getNlriType()
Returns NlriType of BGP-LS NLRI.
|
List<BgpValueType> |
getPrefixdescriptor()
Returns list of Prefix descriptor.
|
BgpPrefixLSIdentifier |
getPrefixIdentifier()
Returns Prefix Identifier.
|
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 BgpPrefixIPv4LSNlriVer4 |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short afi,
byte safi)
Reads from channelBuffer and parses Prefix LS Nlri.
|
void |
setPrefixLSIdentifier(BgpPrefixLSIdentifier bgpPrefixLSIdentifier)
Set the prefix LS identifier.
|
String |
toString() |
protected static final org.slf4j.Logger log
public static final int PREFIX_IPV4_NLRITYPE
public static final int IDENTIFIER_LENGTH
public BgpPrefixIPv4LSNlriVer4()
public BgpPrefixIPv4LSNlriVer4(long identifier,
byte protocolId,
BgpPrefixLSIdentifier bgpPrefixLSIdentifier,
RouteDistinguisher routeDistinguisher,
boolean isVpn)
identifier - field in BGP PrefixLSNlriprotocolId - protocol IdbgpPrefixLSIdentifier - prefix LS IdentifierrouteDistinguisher - RouteDistinguisherisVpn - vpn availability in messagepublic static BgpPrefixIPv4LSNlriVer4 read(org.jboss.netty.buffer.ChannelBuffer cb, short afi, byte safi) throws BgpParseException
cb - ChannelBufferafi - Address family identifiersafi - Subsequent address family identifierBgpParseException - while parsing Prefix LS Nlripublic NlriType getNlriType()
BgpLSNlrigetNlriType in interface BgpLSNlripublic NodeDescriptors getLocalNodeDescriptors()
BgpPrefixLSNlrigetLocalNodeDescriptors in interface BgpPrefixLSNlripublic long getIdentifier()
BgpLSNlrigetIdentifier in interface BgpLSNlripublic void setPrefixLSIdentifier(BgpPrefixLSIdentifier bgpPrefixLSIdentifier)
bgpPrefixLSIdentifier - prefix identifier to setpublic BgpNodeLSNlriVer4.ProtocolType getProtocolId() throws BgpParseException
BgpLSNlrigetProtocolId in interface BgpLSNlriBgpParseException - while getting protocol IDpublic boolean isVpnPresent()
public BgpPrefixLSIdentifier getPrefixIdentifier()
public RouteDistinguisher getRouteDistinguisher()
BgpLSNlrigetRouteDistinguisher in interface BgpLSNlripublic List<BgpValueType> getPrefixdescriptor()
BgpPrefixLSNlrigetPrefixdescriptor in interface BgpPrefixLSNlri