Commit 69b5436d authored by Adam Wujek's avatar Adam Wujek

[BUG: #215] userspace/snmpd: don't warn on wrsSpllDelCnt greather than 0

Instead, warn only on the increase of wrsSpllDelCnt.
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent fc274359
......@@ -183,9 +183,7 @@
\texttt{\glshyperlink{WR-SWITCH-MIB::wrsSpllMlock}} equals to 0 (for
Boundary Clock mode).\\
\texttt{Warning} when \texttt{\glshyperlink{WR-SWITCH-MIB::wrsSpllDelCnt}}
is greater then 0 (for Grand Master mode) or
\texttt{\glshyperlink{WR-SWITCH-MIB::wrsSpllDelCnt}} has changed (for all
other modes).\\
has changed (for all modes).\\
\underline{On error:}\\
For GrandMaster WRS:
\begin{pck_proc}
......
......@@ -296,7 +296,7 @@ static void get_wrsSoftPLLStatus(void)
/* check if warning */
if (!t->wrsSoftPLLStatus) {
if (s->wrsSpllMode == WRS_SPLL_MODE_GRAND_MASTER && s->wrsSpllDelCnt > 0) {
if (s->wrsSpllMode == WRS_SPLL_MODE_GRAND_MASTER && s->wrsSpllDelCnt != spll_DelCnt_prev) {
t->wrsSoftPLLStatus = WRS_SOFTPLL_STATUS_WARNING;
snmp_log(LOG_WARNING, "SNMP: " SL_W " %s: "
"SoftPLL in GrandMaster mode has unlocked from "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment