public final class BgpAttrRouterIdV4 extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.Ip4Address |
attrRouterId()
Returns the IPV4 router ID.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpAttrRouterIdV4 |
of(org.onlab.packet.Ip4Address ip4RouterId,
short sType)
Returns object of this class with specified values.
|
static BgpAttrRouterIdV4 |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short sType)
Reads the IPv4 Router-ID.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static BgpAttrRouterIdV4 of(org.onlab.packet.Ip4Address ip4RouterId, short sType)
ip4RouterId - IPv4 addresssType - Type of this TLVpublic static BgpAttrRouterIdV4 read(org.jboss.netty.buffer.ChannelBuffer cb, short sType) throws BgpParseException
cb - ChannelBuffersType - tag typeBgpParseException - while parsing BgpAttrRouterIdV4public org.onlab.packet.Ip4Address attrRouterId()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object