Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
b3fb2ec6
Commit
b3fb2ec6
authored
May 25, 2020
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp: report t24p error only for monitored ports
parent
080d36d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wrsTimingStatusGroup.c
userspace/snmpd/wrsTimingStatusGroup.c
+2
-1
No files found.
userspace/snmpd/wrsTimingStatusGroup.c
View file @
b3fb2ec6
...
@@ -222,7 +222,8 @@ static void get_wrsPTPStatus(unsigned int ptp_data_nrows, unsigned int port_stat
...
@@ -222,7 +222,8 @@ static void get_wrsPTPStatus(unsigned int ptp_data_nrows, unsigned int port_stat
/* Check if all ports have valid T24P configuration */
/* Check if all ports have valid T24P configuration */
for
(
i
=
0
;
i
<
port_status_nrows
;
i
++
)
{
for
(
i
=
0
;
i
<
port_status_nrows
;
i
++
)
{
if
(
p_a
[
i
].
wrsPortStatusT24pValid
==
0
)
{
if
(
p_a
[
i
].
wrsPortStatusT24pValid
==
0
&&
p_a
[
i
].
wrsPortStatusMonitor
!=
WRS_PORT_STATUS_MONITOR_DISABLE
)
{
t
->
wrsPTPStatus
=
WRS_PTP_STATUS_ERROR
;
t
->
wrsPTPStatus
=
WRS_PTP_STATUS_ERROR
;
snmp_log
(
LOG_ERR
,
"SNMP: "
SL_ER
" %s: "
snmp_log
(
LOG_ERR
,
"SNMP: "
SL_ER
" %s: "
"T24P for port %d not found in configuration
\n
"
,
"T24P for port %d not found in configuration
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment