This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ptp_datatypes.go
244 lines (175 loc) · 5.77 KB
/
ptp_datatypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
// This module contains a collection of generally useful
// derived YANG data types.
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ptp_datatypes
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package ptp_datatypes"))
}
// PtpTelecomClock represents Ptp telecom clock
type PtpTelecomClock string
const (
// Telecom grandmaster clock
PtpTelecomClock_telecom_grandmaster PtpTelecomClock = "telecom-grandmaster"
// Telecom boundary clock
PtpTelecomClock_telecom_boundary PtpTelecomClock = "telecom-boundary"
// Telecom slave clock
PtpTelecomClock_telecom_slave PtpTelecomClock = "telecom-slave"
)
// PtpInvalidUnicastGrantRequestResponse represents Ptp invalid unicast grant request response
type PtpInvalidUnicastGrantRequestResponse string
const (
// Reduce grant parameters
PtpInvalidUnicastGrantRequestResponse_reduce PtpInvalidUnicastGrantRequestResponse = "reduce"
// Deny grant
PtpInvalidUnicastGrantRequestResponse_deny PtpInvalidUnicastGrantRequestResponse = "deny"
)
// PtpClockId represents Ptp clock id
type PtpClockId string
const (
// Use the router's MAC
PtpClockId_router_mac PtpClockId = "router-mac"
// Use a user-specified MAC
PtpClockId_user_mac PtpClockId = "user-mac"
// Use a user-specified EUI-64 number
PtpClockId_eui PtpClockId = "eui"
)
// PtpClockSelectionMode represents Ptp clock selection mode
type PtpClockSelectionMode string
const (
// Use 1588v2 clock selection
PtpClockSelectionMode_Y_1588v2 PtpClockSelectionMode = "1588v2"
// Use Telecom Profile clock selection
PtpClockSelectionMode_telecom_profile PtpClockSelectionMode = "telecom-profile"
)
// PtpClockOperation represents Ptp clock operation
type PtpClockOperation string
const (
// Two-step clock operation
PtpClockOperation_two_step PtpClockOperation = "two-step"
// One-step clock operation
PtpClockOperation_one_step PtpClockOperation = "one-step"
)
// PtpTimePeriod represents Ptp time period
type PtpTimePeriod string
const (
// One
PtpTimePeriod_Y_1 PtpTimePeriod = "1"
// Two
PtpTimePeriod_Y_2 PtpTimePeriod = "2"
// Four
PtpTimePeriod_Y_4 PtpTimePeriod = "4"
// Eight
PtpTimePeriod_Y_8 PtpTimePeriod = "8"
// Sixteen
PtpTimePeriod_Y_16 PtpTimePeriod = "16"
// Thirty Two
PtpTimePeriod_Y_32 PtpTimePeriod = "32"
// Sixty Four
PtpTimePeriod_Y_64 PtpTimePeriod = "64"
// One Hundred and Twenty-Eight
PtpTimePeriod_Y_128 PtpTimePeriod = "128"
)
// PtpTransport represents Ptp transport
type PtpTransport string
const (
// Unicast communication
PtpTransport_unicast PtpTransport = "unicast"
// Mixed-mode communication
PtpTransport_mixed_mode PtpTransport = "mixed-mode"
// Multicast communication
PtpTransport_multicast PtpTransport = "multicast"
)
// PtpDelayAsymmetryUnits represents Ptp delay asymmetry units
type PtpDelayAsymmetryUnits string
const (
// Nanoseconds
PtpDelayAsymmetryUnits_nanoseconds PtpDelayAsymmetryUnits = "nanoseconds"
// Microseconds
PtpDelayAsymmetryUnits_microseconds PtpDelayAsymmetryUnits = "microseconds"
// Milliseconds
PtpDelayAsymmetryUnits_milliseconds PtpDelayAsymmetryUnits = "milliseconds"
)
// PtpTimescale represents Ptp timescale
type PtpTimescale string
const (
// PTP timescale
PtpTimescale_ptp PtpTimescale = "ptp"
// ARB timescale
PtpTimescale_arb PtpTimescale = "arb"
)
// PtpClockProfile represents Ptp clock profile
type PtpClockProfile string
const (
// Default clock profile
PtpClockProfile_default_ PtpClockProfile = "default"
// G.8265.1 profile
PtpClockProfile_g82651 PtpClockProfile = "g82651"
// G.8275.1 profile
PtpClockProfile_g82751 PtpClockProfile = "g82751"
// G.8275.2 profile
PtpClockProfile_g82752 PtpClockProfile = "g82752"
)
// PtpPortState represents Ptp port state
type PtpPortState string
const (
// Any port state allowed
PtpPortState_any PtpPortState = "any"
// Restrict to slave
PtpPortState_slave_only PtpPortState = "slave-only"
// Restrict to master
PtpPortState_master_only PtpPortState = "master-only"
)
// PtpTimeSource represents Ptp time source
type PtpTimeSource string
const (
// Unknown
PtpTimeSource_unknown PtpTimeSource = "unknown"
// Atomic Clock
PtpTimeSource_atomic_clock PtpTimeSource = "atomic-clock"
// GPS
PtpTimeSource_gps PtpTimeSource = "gps"
// Terrestrial Radio
PtpTimeSource_terrestrial_radio PtpTimeSource = "terrestrial-radio"
// PTP
PtpTimeSource_ptp PtpTimeSource = "ptp"
// NTP
PtpTimeSource_ntp PtpTimeSource = "ntp"
// Hand set
PtpTimeSource_hand_set PtpTimeSource = "hand-set"
// Other
PtpTimeSource_other PtpTimeSource = "other"
// Internal Oscillator
PtpTimeSource_internal_oscillator PtpTimeSource = "internal-oscillator"
)
// PtpEncap represents Ptp encap
type PtpEncap string
const (
// Ethernet Encapsulation
PtpEncap_ethernet PtpEncap = "ethernet"
// IPv4 Encapsulation
PtpEncap_ipv4 PtpEncap = "ipv4"
// IPv6 Encapsulation
PtpEncap_ipv6 PtpEncap = "ipv6"
)
// PtpTime represents Ptp time
type PtpTime string
const (
// Time interval in seconds
PtpTime_interval PtpTime = "interval"
// Frequency per second
PtpTime_frequency PtpTime = "frequency"
)
// PtpClockAdvertisementMode represents Ptp clock advertisement mode
type PtpClockAdvertisementMode string
const (
// Use 1588v2 clock selection
PtpClockAdvertisementMode_Y_1588v2 PtpClockAdvertisementMode = "1588v2"
// Use Telecom Profile clock selection
PtpClockAdvertisementMode_telecom_profile PtpClockAdvertisementMode = "telecom-profile"
)