[ONOS-5267] Rewrite LISP bootstrap class to use UDP rather than TCP
- Try to use MessageToMessageDecoder to decode DatagramPacket
- Use Bootstrap instead of ServerBootstrap in a way to use UDP
- Add a dummy LispController interface
- Remove unnecessary handlers from LispChannelInitializer
- Rename LispController to LispControllerBootstrap
Change-Id: I7d930f46ffb87d88b3449ba78e066d8b1c065093
diff --git a/protocols/lisp/ctl/src/main/java/org/onosproject/lisp/ctl/LispChannelHandler.java b/protocols/lisp/ctl/src/main/java/org/onosproject/lisp/ctl/LispChannelHandler.java
index 1cd8d0b..136831a 100644
--- a/protocols/lisp/ctl/src/main/java/org/onosproject/lisp/ctl/LispChannelHandler.java
+++ b/protocols/lisp/ctl/src/main/java/org/onosproject/lisp/ctl/LispChannelHandler.java
@@ -39,14 +39,16 @@
if (msg instanceof LispMapRegister) {
LispMapServer mapServer = new LispMapServer();
- LispMapNotify mapNotify = (LispMapNotify) mapServer.process((LispMapRegister) msg);
+ LispMapNotify mapNotify =
+ (LispMapNotify) mapServer.processMapRegister((LispMapRegister) msg);
// TODO: deserialize mapNotify message and write to channel
}
if (msg instanceof LispMapRequest) {
LispMapResolver mapResolver = new LispMapResolver();
- LispMapReply mapReply = (LispMapReply) mapResolver.process((LispMapRequest) msg);
+ LispMapReply mapReply =
+ (LispMapReply) mapResolver.processMapRequest((LispMapRequest) msg);
// TODO: deserialize mapReply message and write to channel
}