[SEBA-886] AAA Statistics in ONOS cli for SEBA-35
Cherry-picked from aaa-1.10.
Change-Id: Idee167aa85970f6e22e21e51b78fd7f91a86bf9c
diff --git a/api/src/main/java/org/opencord/aaa/AaaStatistics.java b/api/src/main/java/org/opencord/aaa/AaaStatistics.java
index e1d1485..48c95b6 100644
--- a/api/src/main/java/org/opencord/aaa/AaaStatistics.java
+++ b/api/src/main/java/org/opencord/aaa/AaaStatistics.java
@@ -282,6 +282,14 @@
requestRttMilis.set(0);
unknownServerRx.set(0);
unknownTypeRx.set(0);
+ eapolLogoffRx.set(0);
+ eapolAuthSuccessTrans.set(0);
+ eapolAuthFailureTrans.set(0);
+ eapolStartReqTrans.set(0);
+ eapolTransRespNotNak.set(0);
+ eapPktTxauthChooseEap.set(0);
+ eapolResIdentityMsgTrans.set(0);
+
}
public void countTransRespNotNak() {
long eapolTransactionNotNak = eapolMd5RspChall.get();
diff --git a/app/src/main/java/org/opencord/aaa/cli/AaaShowCountersCommand.java b/app/src/main/java/org/opencord/aaa/cli/AaaShowCountersCommand.java
index 6b7ba22..bdf023e 100644
--- a/app/src/main/java/org/opencord/aaa/cli/AaaShowCountersCommand.java
+++ b/app/src/main/java/org/opencord/aaa/cli/AaaShowCountersCommand.java
@@ -49,6 +49,13 @@
System.out.format("%30s %10d\n", "UnknownServerRx", aaaStats.getUnknownServerRx());
System.out.format("%30s %10d\n", "UnknownTypeRx", aaaStats.getUnknownTypeRx());
System.out.format("%30s %10d\n", "RequestRttMillis", aaaStats.getRequestRttMilis());
+ System.out.format("%30s %10d\n", "EapolLogoffRx", aaaStats.getEapolLogoffRx());
+ System.out.format("%30s %10d\n", "EapolAuthSuccessTrans", aaaStats.getEapolAuthSuccessTrans());
+ System.out.format("%30s %10d\n", "EapolAuthFailureTrans", aaaStats.getEapolAuthFailureTrans());
+ System.out.format("%30s %10d\n", "EapolStartReqTrans", aaaStats.getEapolStartReqTrans());
+ System.out.format("%30s %10d\n", "EapolTransRespNotNak", aaaStats.getEapolTransRespNotNak());
+ System.out.format("%30s %10d\n", "EapPktTxauthChooseEap", aaaStats.getEapPktTxauthChooseEap());
+ System.out.format("%30s %10d\n", "EapolResIdentityMsgTrans", aaaStats.getEapolResIdentityMsgTrans());
}
}