public class BgpEvpnRouteType2Nlri extends java.lang.Object implements BgpEvpnNlriData
| Modifier and Type | Field and Description |
|---|---|
static short |
IPV4_ADDRESS_LENGTH |
static short |
MAC_ADDRESS_LENGTH |
static short |
TYPE |
| Constructor and Description |
|---|
BgpEvpnRouteType2Nlri()
Resets parameters.
|
BgpEvpnRouteType2Nlri(RouteDistinguisher rd,
BgpEvpnEsi esi,
int ethernetTagID,
org.onlab.packet.MacAddress macAddress,
java.net.InetAddress ipAddress,
BgpEvpnLabel mplsLabel1,
BgpEvpnLabel mplsLabel2)
Creates the Evpn route type 2 route.
|
| Modifier and Type | Method and Description |
|---|---|
BgpEvpnEsi |
getEthernetSegmentidentifier()
Returns the esi.
|
int |
getEthernetTagID()
Returns the ethernet tag id.
|
java.net.InetAddress |
getIpAddress()
Returns the ip address.
|
org.onlab.packet.MacAddress |
getMacAddress() |
BgpEvpnLabel |
getMplsLable1()
Returns the mpls label.
|
BgpEvpnLabel |
getMplsLable2()
Returns the mpls label.
|
RouteDistinguisher |
getRouteDistinguisher()
Returns the rd.
|
BgpEvpnRouteType |
getType()
Returns the Type of RouteTypeSpefic.
|
static BgpEvpnRouteType2Nlri |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the Evpn type 2 attributes.
|
void |
setEthernetSegmentidentifier(BgpEvpnEsi esi)
Set the ESI.
|
void |
setEthernetTagID(int ethernetTagID)
Set the ethernet tag id.
|
void |
setIpAddress(java.net.InetAddress ipAddress)
Set the ip address.
|
void |
setMacAddress(org.onlab.packet.MacAddress macAddress)
Set the mac address.
|
void |
setMplsLable1(BgpEvpnLabel mplsLabel1)
Set the mpls label.
|
void |
setMplsLable2(BgpEvpnLabel mplsLabel2)
Set the mpls label.
|
void |
setRouteDistinguisher(RouteDistinguisher rd)
Set the rd.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE
public static final short IPV4_ADDRESS_LENGTH
public static final short MAC_ADDRESS_LENGTH
public BgpEvpnRouteType2Nlri()
public BgpEvpnRouteType2Nlri(RouteDistinguisher rd, BgpEvpnEsi esi, int ethernetTagID, org.onlab.packet.MacAddress macAddress, java.net.InetAddress ipAddress, BgpEvpnLabel mplsLabel1, BgpEvpnLabel mplsLabel2)
rd - route distinguisheresi - esiethernetTagID - ethernet tag idmacAddress - macipAddress - ipmplsLabel1 - labelmplsLabel2 - labelpublic static BgpEvpnRouteType2Nlri read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channel bufferBgpParseException - parse exceptionpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpEvpnNlriDatawrite in interface BgpEvpnNlriDatacb - channel bufferpublic RouteDistinguisher getRouteDistinguisher()
public BgpEvpnEsi getEthernetSegmentidentifier()
public int getEthernetTagID()
public org.onlab.packet.MacAddress getMacAddress()
public java.net.InetAddress getIpAddress()
public BgpEvpnLabel getMplsLable1()
public BgpEvpnLabel getMplsLable2()
public void setRouteDistinguisher(RouteDistinguisher rd)
rd - route distinguisherpublic void setEthernetSegmentidentifier(BgpEvpnEsi esi)
esi - esipublic void setEthernetTagID(int ethernetTagID)
ethernetTagID - ethernet tag id.public void setMacAddress(org.onlab.packet.MacAddress macAddress)
macAddress - macpublic void setIpAddress(java.net.InetAddress ipAddress)
ipAddress - ippublic void setMplsLable1(BgpEvpnLabel mplsLabel1)
mplsLabel1 - labelpublic void setMplsLable2(BgpEvpnLabel mplsLabel2)
mplsLabel2 - labelpublic BgpEvpnRouteType getType()
BgpEvpnNlriDatagetType in interface BgpEvpnNlriDatapublic java.lang.String toString()
toString in class java.lang.Object