public class WideCommunityIpV4Neighbour extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
IPV4_NEIGHBOUR_SIZE |
static byte |
TYPE |
| Constructor and Description |
|---|
WideCommunityIpV4Neighbour()
Creates an instance of wide community ipv4 neighbour subtlv.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.onlab.packet.IpAddress localSpeaker,
org.onlab.packet.IpAddress remoteSpeaker)
Adds local and remote speakers.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static WideCommunityIpV4Neighbour |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of WideCommunityIpV4Neighbour.
|
void |
remove(org.onlab.packet.IpAddress localSpeaker,
org.onlab.packet.IpAddress remoteSpeaker)
Deletes local and remote speakers.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte TYPE
public static final byte IPV4_NEIGHBOUR_SIZE
public WideCommunityIpV4Neighbour()
public void add(org.onlab.packet.IpAddress localSpeaker,
org.onlab.packet.IpAddress remoteSpeaker)
localSpeaker - local speakerremoteSpeaker - remote speakerpublic void remove(org.onlab.packet.IpAddress localSpeaker,
org.onlab.packet.IpAddress remoteSpeaker)
localSpeaker - local speakerremoteSpeaker - remote speakerpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static WideCommunityIpV4Neighbour read(org.jboss.netty.buffer.ChannelBuffer c) throws BgpParseException
c - ChannelBufferBgpParseException - on read errorpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectpublic short getType()
BgpValueTypegetType in interface BgpValueType