VOL-947 Moved the netcfg update listener and factory within activate method
Added better logging to indicate where radius packets are being sent and whats received.
6/19 - Improved logging a bit more to track down EAP reply before radius is sent
Change-Id: If74cb4315db0123625be84285d581e3f1f959d80
diff --git a/src/main/java/org/opencord/aaa/SocketBasedRadiusCommunicator.java b/src/main/java/org/opencord/aaa/SocketBasedRadiusCommunicator.java
index bb99f09..6b64a18 100755
--- a/src/main/java/org/opencord/aaa/SocketBasedRadiusCommunicator.java
+++ b/src/main/java/org/opencord/aaa/SocketBasedRadiusCommunicator.java
@@ -92,6 +92,8 @@
log.error("Can't open RADIUS socket", ex);
}
+ log.info("Remote RADIUS Server: {}:{}", radiusIpAddress, radiusServerPort);
+
executor = Executors.newSingleThreadExecutor(
new ThreadFactoryBuilder()
.setNameFormat("AAA-radius-%d").build());
@@ -134,7 +136,8 @@
radiusIpAddress, radiusServerPort);
socket.send(packet);
- log.info("Packet sent to Radius Server using socket packet = {}", packet);
+ log.debug("Packet sent to Radius Server {}:{} using socket",
+ radiusIpAddress, radiusServerPort);
} catch (IOException e) {
log.info("Cannot send packet to RADIUS server", e);
}
@@ -145,7 +148,7 @@
InboundPacket pkt = context.inPacket();
Ethernet ethPkt = pkt.parsed();
- log.trace("Skipping Ethernet packet type {}",
+ log.debug("Skipping Ethernet packet type {}",
EthType.EtherType.lookup(ethPkt.getEtherType()));
}
@@ -165,7 +168,7 @@
new DatagramPacket(packetBuffer, packetBuffer.length);
DatagramSocket socket = radiusSocket;
socket.receive(inboundBasePacket);
- log.info("Packet #{} received", packetNumber++);
+ log.debug("Packet #{} received", packetNumber++);
try {
inboundRadiusPacket =
RADIUS.deserializer()