Remove app registration logic from deativate method and add logs
Change-Id: I0fd58e8deeaf2dbf8975dc9ee399a35dbdd326b9
diff --git a/src/main/java/org/onosproject/aaa/AaaManager.java b/src/main/java/org/onosproject/aaa/AaaManager.java
index dd324ee..30ef879 100644
--- a/src/main/java/org/onosproject/aaa/AaaManager.java
+++ b/src/main/java/org/onosproject/aaa/AaaManager.java
@@ -192,11 +192,11 @@
new ThreadFactoryBuilder()
.setNameFormat("AAA-radius-%d").build());
executor.execute(radiusListener);
+ log.info("Started");
}
@Deactivate
public void deactivate() {
- appId = coreService.registerApplication("org.onosproject.aaa");
withdrawIntercepts();
// de-register and null our handler
packetService.removeProcessor(processor);
@@ -204,6 +204,7 @@
StateMachine.destroyMaps();
radiusSocket.close();
executor.shutdownNow();
+ log.info("Stopped");
}
protected void sendRadiusPacket(RADIUS radiusPacket) {