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
602c3b87
Commit
602c3b87
authored
Mar 04, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SNMP: remove wrsPtpInstanceAsymConstAsym
parent
024e8f35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
28 deletions
+16
-28
WR-SWITCH-MIB.txt
userspace/snmpd/WR-SWITCH-MIB.txt
+16
-25
wrsPtpInstanceTable.c
userspace/snmpd/wrsPtpInstanceTable.c
+0
-2
wrsPtpInstanceTable.h
userspace/snmpd/wrsPtpInstanceTable.h
+0
-1
No files found.
userspace/snmpd/WR-SWITCH-MIB.txt
View file @
602c3b87
...
...
@@ -2867,7 +2867,6 @@ WrsPtpInstanceEntry ::=
wrsPtpInstanceProfile INTEGER,
wrsPtpInstanceExtension INTEGER,
wrsPtpInstanceAsymEnabled INTEGER,
wrsPtpInstanceAsymConstAsym Counter64,
wrsPtpInstanceAsymConstAsymPS Counter64,
wrsPtpInstanceAsymScDelayCoef Counter64,
wrsPtpInstanceAsymScDelayCoefHR DisplayString,
...
...
@@ -3038,21 +3037,13 @@ wrsPtpInstanceAsymEnabled OBJECT-TYPE
"Asymmetry Corrections enabled/disabled on the PTP Instance"
::= { wrsPtpInstanceEntry 13 }
wrsPtpInstanceAsymConstAsym OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Constant Asymmetry in scaled nanoseconds"
::= { wrsPtpInstanceEntry 14 }
wrsPtpInstanceAsymConstAsymPS OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Constant Asymmetry in picoseconds"
::= { wrsPtpInstanceEntry 1
5
}
::= { wrsPtpInstanceEntry 1
4
}
wrsPtpInstanceAsymScDelayCoef OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3060,7 +3051,7 @@ wrsPtpInstanceAsymScDelayCoef OBJECT-TYPE
STATUS current
DESCRIPTION
"Scaled Relative Delay Coefficient"
::= { wrsPtpInstanceEntry 1
6
}
::= { wrsPtpInstanceEntry 1
5
}
wrsPtpInstanceAsymScDelayCoefHR OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..64))
...
...
@@ -3068,7 +3059,7 @@ wrsPtpInstanceAsymScDelayCoefHR OBJECT-TYPE
STATUS current
DESCRIPTION
"Relative Delay Coefficient in a floating form"
::= { wrsPtpInstanceEntry 1
7
}
::= { wrsPtpInstanceEntry 1
6
}
wrsPtpInstanceTSCorrEgressLat OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3076,7 +3067,7 @@ wrsPtpInstanceTSCorrEgressLat OBJECT-TYPE
STATUS current
DESCRIPTION
"Egress Latency (Tx Fixed Delay) in scaled nanoseconds"
::= { wrsPtpInstanceEntry 1
8
}
::= { wrsPtpInstanceEntry 1
7
}
wrsPtpInstanceTSCorrEgressLatPS OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3084,7 +3075,7 @@ wrsPtpInstanceTSCorrEgressLatPS OBJECT-TYPE
STATUS current
DESCRIPTION
"Egress Latency (Tx Fixed Delay) in picoseconds"
::= { wrsPtpInstanceEntry 1
9
}
::= { wrsPtpInstanceEntry 1
8
}
wrsPtpInstanceTSCorrIngLat OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3092,7 +3083,7 @@ wrsPtpInstanceTSCorrIngLat OBJECT-TYPE
STATUS current
DESCRIPTION
"Ingress Latency (Rx Fixed Delay) in scaled nanoseconds"
::= { wrsPtpInstanceEntry
20
}
::= { wrsPtpInstanceEntry
19
}
wrsPtpInstanceTSCorrIngLatPS OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3100,7 +3091,7 @@ wrsPtpInstanceTSCorrIngLatPS OBJECT-TYPE
STATUS current
DESCRIPTION
"Ingress Latency (Rx Fixed Delay) in picoseconds"
::= { wrsPtpInstanceEntry 2
1
}
::= { wrsPtpInstanceEntry 2
0
}
wrsPtpInstanceTSCorrSemistLat OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3108,7 +3099,7 @@ wrsPtpInstanceTSCorrSemistLat OBJECT-TYPE
STATUS current
DESCRIPTION
"Semi-static latency (bitslide) in scaled nanoseconds"
::= { wrsPtpInstanceEntry 2
2
}
::= { wrsPtpInstanceEntry 2
1
}
wrsPtpInstanceTSCorrSemistLatPS OBJECT-TYPE
SYNTAX Counter64
...
...
@@ -3116,7 +3107,7 @@ wrsPtpInstanceTSCorrSemistLatPS OBJECT-TYPE
STATUS current
DESCRIPTION
"Semi-static latency (bitslide) in picoseconds"
::= { wrsPtpInstanceEntry 2
3
}
::= { wrsPtpInstanceEntry 2
2
}
wrsPtpInstanceProtoDetectState OBJECT-TYPE
SYNTAX INTEGER { -- ppsi/include/ppsi/pp-instance.h
...
...
@@ -3131,7 +3122,7 @@ wrsPtpInstanceProtoDetectState OBJECT-TYPE
STATUS current
DESCRIPTION
"Protocol detection state"
::= { wrsPtpInstanceEntry 2
4
}
::= { wrsPtpInstanceEntry 2
3
}
wrsPtpInstanceExtState OBJECT-TYPE
SYNTAX INTEGER { -- ppsi/include/ppsi/pp-instance.h
...
...
@@ -3144,7 +3135,7 @@ wrsPtpInstanceProtoDetectState OBJECT-TYPE
STATUS current
DESCRIPTION
"State of PTP extension (more than one are allowed per 1 physical port)"
::= { wrsPtpInstanceEntry 2
5
}
::= { wrsPtpInstanceEntry 2
4
}
wrsPtpInstancePeerMac OBJECT-TYPE
...
...
@@ -3153,7 +3144,7 @@ wrsPtpInstancePeerMac OBJECT-TYPE
STATUS current
DESCRIPTION
"MAC used by an instance"
::= { wrsPtpInstanceEntry 2
6
}
::= { wrsPtpInstanceEntry 2
5
}
wrsPtpInstancePeerVid OBJECT-TYPE
SYNTAX Integer32
...
...
@@ -3161,7 +3152,7 @@ wrsPtpInstancePeerVid OBJECT-TYPE
STATUS current
DESCRIPTION
"VID used by an instance"
::= { wrsPtpInstanceEntry 2
7
}
::= { wrsPtpInstanceEntry 2
6
}
wrsPtpInstanceVlanNum OBJECT-TYPE
SYNTAX Integer32
...
...
@@ -3169,7 +3160,7 @@ wrsPtpInstanceVlanNum OBJECT-TYPE
STATUS current
DESCRIPTION
"Number of VLANs used by an instance"
::= { wrsPtpInstanceEntry 2
8
}
::= { wrsPtpInstanceEntry 2
7
}
wrsPtpInstanceVlanListStr OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..160)) --32*5-
...
...
@@ -3177,7 +3168,7 @@ wrsPtpInstanceVlanListStr OBJECT-TYPE
STATUS current
DESCRIPTION
"Comma separated list of VLANs used by an instance"
::= { wrsPtpInstanceEntry 2
9
}
::= { wrsPtpInstanceEntry 2
8
}
wrsPtpInstanceStatusError OBJECT-TYPE
SYNTAX INTEGER {
...
...
@@ -3195,7 +3186,7 @@ wrsPtpInstanceVlanListStr OBJECT-TYPE
warningNA - at least one field is equal to 0 (NA),
shouldn't happen in normal operation
"
::= { wrsPtpInstanceEntry
30
}
::= { wrsPtpInstanceEntry
29
}
--wrsNetworking
--Configuration
...
...
userspace/snmpd/wrsPtpInstanceTable.c
View file @
602c3b87
...
...
@@ -26,7 +26,6 @@ static struct pickinfo wrsPtpInstanceTable_pickinfo[] = {
FIELD
(
wrsPtpInstanceTable_s
,
ASN_INTEGER
,
wrsPtpInstanceExtension
),
FIELD
(
wrsPtpInstanceTable_s
,
ASN_INTEGER
,
wrsPtpInstanceAsymEnabled
),
FIELD
(
wrsPtpInstanceTable_s
,
ASN_COUNTER64
,
wrsPtpInstanceAsymConstAsym
),
FIELD
(
wrsPtpInstanceTable_s
,
ASN_COUNTER64
,
wrsPtpInstanceAsymConstAsymPS
),
FIELD
(
wrsPtpInstanceTable_s
,
ASN_COUNTER64
,
wrsPtpInstanceAsymScDelayCoef
),
FIELD
(
wrsPtpInstanceTable_s
,
ASN_OCTET_STR
,
wrsPtpInstanceAsymScDelayCoefHR
),
...
...
@@ -160,7 +159,6 @@ time_t wrsPtpInstanceTable_data_fill(unsigned int *n_rows)
i_a
[
i
].
wrsPtpInstanceProfile
=
ppsi_i
->
cfg
.
profile
+
1
;
i_a
[
i
].
wrsPtpInstanceExtension
=
ppsi_i
->
protocol_extension
+
1
;
i_a
[
i
].
wrsPtpInstanceAsymEnabled
=
ppsi_i
->
asymmetryCorrectionPortDS
.
enable
+
1
;
i_a
[
i
].
wrsPtpInstanceAsymConstAsym
=
ppsi_i
->
asymmetryCorrectionPortDS
.
constantAsymmetry
;
i_a
[
i
].
wrsPtpInstanceAsymConstAsymPS
=
(
int64_t
)((((
float
)
ppsi_i
->
asymmetryCorrectionPortDS
.
constantAsymmetry
)
/
(
1
<<
16
))
*
1000
);
i_a
[
i
].
wrsPtpInstanceAsymScDelayCoef
=
ppsi_i
->
asymmetryCorrectionPortDS
.
scaledDelayCoefficient
;
tmpstr_p
=
i_a
[
i
].
wrsPtpInstanceAsymScDelayCoefHR
;
...
...
userspace/snmpd/wrsPtpInstanceTable.h
View file @
602c3b87
...
...
@@ -32,7 +32,6 @@ struct wrsPtpInstanceTable_s {
int
wrsPtpInstanceProfile
;
int
wrsPtpInstanceExtension
;
int
wrsPtpInstanceAsymEnabled
;
int64_t
wrsPtpInstanceAsymConstAsym
;
int64_t
wrsPtpInstanceAsymConstAsymPS
;
int64_t
wrsPtpInstanceAsymScDelayCoef
;
char
wrsPtpInstanceAsymScDelayCoefHR
[
64
];
...
...
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