public interface LispRouter
| Modifier and Type | Method and Description |
|---|---|
String |
channelId()
Identifies the channel used to communicate with the router.
|
boolean |
connectRouter()
Announces to the LISP agent that this router has connected.
|
org.onosproject.net.Device.Type |
deviceType()
Returns the router device type.
|
void |
disconnectRouter()
Disconnects the router by closing UDP connection.
|
List<LispEidRecord> |
getEidRecords()
Obtains a collection of EID records that associated with this router.
|
void |
handleMessage(LispMessage msg)
Handles the LISP control message from the channel.
|
boolean |
isConnected()
Checks if the router is connected.
|
boolean |
isSubscribed()
Checks if the router is subscribed.
|
org.onlab.packet.IpAddress |
routerId()
Obtains an IpAddress version of the ID for this router.
|
void |
sendMessage(LispMessage msg)
Writes the LISP control message to the channel.
|
void |
setAgent(LispRouterAgent agent)
Sets the LISP agent to be used.
|
void |
setChannel(io.netty.channel.Channel channel)
Sets the associated Netty channel for this router.
|
void |
setConnected(boolean connected)
Sets whether the router is connected.
|
void |
setEidRecords(List<LispEidRecord> records)
Associates the EID records to this router.
|
void |
setSubscribed(boolean subscribed)
Sets whether the router is subscribed.
|
String |
stringId()
Obtains a string version of the ID for this router.
|
void sendMessage(LispMessage msg)
msg - the message to be writtenvoid handleMessage(LispMessage msg)
msg - the message to be handledorg.onosproject.net.Device.Type deviceType()
String channelId()
void setChannel(io.netty.channel.Channel channel)
channel - the Netty channelString stringId()
org.onlab.packet.IpAddress routerId()
boolean isConnected()
void setConnected(boolean connected)
connected - whether the router is connectedboolean isSubscribed()
void setSubscribed(boolean subscribed)
subscribed - whether the router is subscribedList<LispEidRecord> getEidRecords()
void setEidRecords(List<LispEidRecord> records)
records - a collection of EID recordsvoid setAgent(LispRouterAgent agent)
agent - the agent to setboolean connectRouter()
void disconnectRouter()