[SEBA-887] View and Reset of SEBA-34&623 Statistics from ONOS CLI
Change-Id: Ia0307cf290c5200aa6a17f7c4bf98b4a099b8d38
diff --git a/api/src/main/java/org/opencord/aaa/AaaStatistics.java b/api/src/main/java/org/opencord/aaa/AaaStatistics.java
index db21c02..c9953e3 100644
--- a/api/src/main/java/org/opencord/aaa/AaaStatistics.java
+++ b/api/src/main/java/org/opencord/aaa/AaaStatistics.java
@@ -385,6 +385,8 @@
invalidBodyLength.set(0);
validEapolFramesRx.set(0);
pendingResSupp.set(0);
+ timedOutPackets.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 bdf023e..054f6f1 100644
--- a/app/src/main/java/org/opencord/aaa/cli/AaaShowCountersCommand.java
+++ b/app/src/main/java/org/opencord/aaa/cli/AaaShowCountersCommand.java
@@ -56,6 +56,15 @@
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());
+ System.out.format("%30s %10d\n", "AuthStateIdle", aaaStats.getAuthStateIdle());
+ System.out.format("%30s %10d\n", "RequestIdFramesTx", aaaStats.getRequestIdFramesTx());
+ System.out.format("%30s %10d\n", "ReqEapFramesTx", aaaStats.getReqEapFramesTx());
+ System.out.format("%30s %10d\n", "InvalidPktType", aaaStats.getInvalidPktType());
+ System.out.format("%30s %10d\n", "InvalidBodyLength", aaaStats.getInvalidBodyLength());
+ System.out.format("%30s %10d\n", "ValidEapolFramesRx", aaaStats.getValidEapolFramesRx());
+ System.out.format("%30s %10d\n", "PendingResSupp", aaaStats.getPendingResSupp());
+ System.out.format("%30s %10d\n", "EapolFramesTx", aaaStats.getEapolFramesTx());
+ System.out.format("%30s %10d\n", "TimedOutPackets", aaaStats.getTimedOutPackets());
}
}