Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
85
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
602c3b87
Commit
602c3b87
authored
5 years ago
by
Jean-Claude BAU
Browse files
Options
Downloads
Patches
Plain Diff
SNMP: remove wrsPtpInstanceAsymConstAsym
parent
024e8f35
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
userspace/snmpd/WR-SWITCH-MIB.txt
+16
-25
16 additions, 25 deletions
userspace/snmpd/WR-SWITCH-MIB.txt
userspace/snmpd/wrsPtpInstanceTable.c
+0
-2
0 additions, 2 deletions
userspace/snmpd/wrsPtpInstanceTable.c
userspace/snmpd/wrsPtpInstanceTable.h
+0
-1
0 additions, 1 deletion
userspace/snmpd/wrsPtpInstanceTable.h
with
16 additions
and
28 deletions
userspace/snmpd/WR-SWITCH-MIB.txt
+
16
−
25
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
...
...
This diff is collapsed.
Click to expand it.
userspace/snmpd/wrsPtpInstanceTable.c
+
0
−
2
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
;
...
...
This diff is collapsed.
Click to expand it.
userspace/snmpd/wrsPtpInstanceTable.h
+
0
−
1
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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment