public final class BgpAttrRouterIdV6 extends java.lang.Object implements BgpValueType
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.Ip6Address |
attrRouterId()
Returns IPV6 router ID.
|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpAttrRouterIdV6 |
of(org.onlab.packet.Ip6Address ip6RouterId,
short sType)
Returns object of this class with specified values.
|
static BgpAttrRouterIdV6 |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short sType)
Reads the IPv6 Router-ID.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static BgpAttrRouterIdV6 of(org.onlab.packet.Ip6Address ip6RouterId, short sType)
ip6RouterId - IPV6 address of the router IDsType - TLV typepublic static BgpAttrRouterIdV6 read(org.jboss.netty.buffer.ChannelBuffer cb, short sType) throws BgpParseException
cb - ChannelBuffersType - TLV typeBgpParseException - while parsing BgpAttrRouterIdV6public org.onlab.packet.Ip6Address attrRouterId()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object