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
/
crypto_macsec_secy_oper.go
531 lines (429 loc) · 23.5 KB
/
crypto_macsec_secy_oper.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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
// This module contains a collection of YANG definitions
// for Cisco IOS-XR crypto-macsec-secy package operational data.
//
// This module contains definitions
// for the following management objects:
// macsec: Macsec operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package crypto_macsec_secy_oper
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"github.com/CiscoDevNet/ydk-go/ydk/types/yfilter"
"github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xr"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package crypto_macsec_secy_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-macsec-secy-oper macsec}", reflect.TypeOf(Macsec{}))
ydk.RegisterEntity("Cisco-IOS-XR-crypto-macsec-secy-oper:macsec", reflect.TypeOf(Macsec{}))
}
// Macsec
// Macsec operational data
type Macsec struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// MAC Security Entity.
Secy Macsec_Secy
}
func (macsec *Macsec) GetEntityData() *types.CommonEntityData {
macsec.EntityData.YFilter = macsec.YFilter
macsec.EntityData.YangName = "macsec"
macsec.EntityData.BundleName = "cisco_ios_xr"
macsec.EntityData.ParentYangName = "Cisco-IOS-XR-crypto-macsec-secy-oper"
macsec.EntityData.SegmentPath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec"
macsec.EntityData.AbsolutePath = macsec.EntityData.SegmentPath
macsec.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
macsec.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
macsec.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
macsec.EntityData.Children = types.NewOrderedMap()
macsec.EntityData.Children.Append("secy", types.YChild{"Secy", &macsec.Secy})
macsec.EntityData.Leafs = types.NewOrderedMap()
macsec.EntityData.YListKeys = []string {}
return &(macsec.EntityData)
}
// Macsec_Secy
// MAC Security Entity
type Macsec_Secy struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// MAC Security Data.
Interfaces Macsec_Secy_Interfaces
}
func (secy *Macsec_Secy) GetEntityData() *types.CommonEntityData {
secy.EntityData.YFilter = secy.YFilter
secy.EntityData.YangName = "secy"
secy.EntityData.BundleName = "cisco_ios_xr"
secy.EntityData.ParentYangName = "macsec"
secy.EntityData.SegmentPath = "secy"
secy.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/" + secy.EntityData.SegmentPath
secy.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
secy.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
secy.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
secy.EntityData.Children = types.NewOrderedMap()
secy.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &secy.Interfaces})
secy.EntityData.Leafs = types.NewOrderedMap()
secy.EntityData.YListKeys = []string {}
return &(secy.EntityData)
}
// Macsec_Secy_Interfaces
// MAC Security Data
type Macsec_Secy_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// MAC Security Data for the Interface. The type is slice of
// Macsec_Secy_Interfaces_Interface.
Interface []*Macsec_Secy_Interfaces_Interface
}
func (interfaces *Macsec_Secy_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "secy"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/" + interfaces.EntityData.SegmentPath
interfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaces.EntityData.Children = types.NewOrderedMap()
interfaces.EntityData.Children.Append("interface", types.YChild{"Interface", nil})
for i := range interfaces.Interface {
interfaces.EntityData.Children.Append(types.GetSegmentPath(interfaces.Interface[i]), types.YChild{"Interface", interfaces.Interface[i]})
}
interfaces.EntityData.Leafs = types.NewOrderedMap()
interfaces.EntityData.YListKeys = []string {}
return &(interfaces.EntityData)
}
// Macsec_Secy_Interfaces_Interface
// MAC Security Data for the Interface
type Macsec_Secy_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface Name. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
Name interface{}
// MACsec Stats.
Stats Macsec_Secy_Interfaces_Interface_Stats
}
func (self *Macsec_Secy_Interfaces_Interface) GetEntityData() *types.CommonEntityData {
self.EntityData.YFilter = self.YFilter
self.EntityData.YangName = "interface"
self.EntityData.BundleName = "cisco_ios_xr"
self.EntityData.ParentYangName = "interfaces"
self.EntityData.SegmentPath = "interface" + types.AddKeyToken(self.Name, "name")
self.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Children.Append("stats", types.YChild{"Stats", &self.Stats})
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("name", types.YLeaf{"Name", self.Name})
self.EntityData.YListKeys = []string {"Name"}
return &(self.EntityData)
}
// Macsec_Secy_Interfaces_Interface_Stats
// MACsec Stats
type Macsec_Secy_Interfaces_Interface_Stats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Interface stats.
IntfStats Macsec_Secy_Interfaces_Interface_Stats_IntfStats
// Tx SC Stats.
TxScStats Macsec_Secy_Interfaces_Interface_Stats_TxScStats
// RX SC Stats List. The type is slice of
// Macsec_Secy_Interfaces_Interface_Stats_RxScStats.
RxScStats []*Macsec_Secy_Interfaces_Interface_Stats_RxScStats
}
func (stats *Macsec_Secy_Interfaces_Interface_Stats) GetEntityData() *types.CommonEntityData {
stats.EntityData.YFilter = stats.YFilter
stats.EntityData.YangName = "stats"
stats.EntityData.BundleName = "cisco_ios_xr"
stats.EntityData.ParentYangName = "interface"
stats.EntityData.SegmentPath = "stats"
stats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/interface/" + stats.EntityData.SegmentPath
stats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
stats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
stats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
stats.EntityData.Children = types.NewOrderedMap()
stats.EntityData.Children.Append("intf-stats", types.YChild{"IntfStats", &stats.IntfStats})
stats.EntityData.Children.Append("tx-sc-stats", types.YChild{"TxScStats", &stats.TxScStats})
stats.EntityData.Children.Append("rx-sc-stats", types.YChild{"RxScStats", nil})
for i := range stats.RxScStats {
types.SetYListKey(stats.RxScStats[i], i)
stats.EntityData.Children.Append(types.GetSegmentPath(stats.RxScStats[i]), types.YChild{"RxScStats", stats.RxScStats[i]})
}
stats.EntityData.Leafs = types.NewOrderedMap()
stats.EntityData.YListKeys = []string {}
return &(stats.EntityData)
}
// Macsec_Secy_Interfaces_Interface_Stats_IntfStats
// Interface stats
type Macsec_Secy_Interfaces_Interface_Stats_IntfStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// InPktsUntagged. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUntagged interface{}
// InPktsNoTag. The type is interface{} with range: 0..18446744073709551615.
InPktsNoTag interface{}
// InPktsBadTag. The type is interface{} with range: 0..18446744073709551615.
InPktsBadTag interface{}
// InPktsUnknownSCI. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUnknownSci interface{}
// InPktsNoSCI. The type is interface{} with range: 0..18446744073709551615.
InPktsNoSci interface{}
// InPktsOverrun. The type is interface{} with range: 0..18446744073709551615.
InPktsOverrun interface{}
// InOctetsValidated. The type is interface{} with range:
// 0..18446744073709551615.
InOctetsValidated interface{}
// InOctetsDecrypted. The type is interface{} with range:
// 0..18446744073709551615.
InOctetsDecrypted interface{}
// OutPktsUntagged. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsUntagged interface{}
// OutPktsTooLong. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsTooLong interface{}
// OutOctetsProtected. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsProtected interface{}
// OutOctetsEncrypted. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsEncrypted interface{}
}
func (intfStats *Macsec_Secy_Interfaces_Interface_Stats_IntfStats) GetEntityData() *types.CommonEntityData {
intfStats.EntityData.YFilter = intfStats.YFilter
intfStats.EntityData.YangName = "intf-stats"
intfStats.EntityData.BundleName = "cisco_ios_xr"
intfStats.EntityData.ParentYangName = "stats"
intfStats.EntityData.SegmentPath = "intf-stats"
intfStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/interface/stats/" + intfStats.EntityData.SegmentPath
intfStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
intfStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
intfStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
intfStats.EntityData.Children = types.NewOrderedMap()
intfStats.EntityData.Leafs = types.NewOrderedMap()
intfStats.EntityData.Leafs.Append("in-pkts-untagged", types.YLeaf{"InPktsUntagged", intfStats.InPktsUntagged})
intfStats.EntityData.Leafs.Append("in-pkts-no-tag", types.YLeaf{"InPktsNoTag", intfStats.InPktsNoTag})
intfStats.EntityData.Leafs.Append("in-pkts-bad-tag", types.YLeaf{"InPktsBadTag", intfStats.InPktsBadTag})
intfStats.EntityData.Leafs.Append("in-pkts-unknown-sci", types.YLeaf{"InPktsUnknownSci", intfStats.InPktsUnknownSci})
intfStats.EntityData.Leafs.Append("in-pkts-no-sci", types.YLeaf{"InPktsNoSci", intfStats.InPktsNoSci})
intfStats.EntityData.Leafs.Append("in-pkts-overrun", types.YLeaf{"InPktsOverrun", intfStats.InPktsOverrun})
intfStats.EntityData.Leafs.Append("in-octets-validated", types.YLeaf{"InOctetsValidated", intfStats.InOctetsValidated})
intfStats.EntityData.Leafs.Append("in-octets-decrypted", types.YLeaf{"InOctetsDecrypted", intfStats.InOctetsDecrypted})
intfStats.EntityData.Leafs.Append("out-pkts-untagged", types.YLeaf{"OutPktsUntagged", intfStats.OutPktsUntagged})
intfStats.EntityData.Leafs.Append("out-pkts-too-long", types.YLeaf{"OutPktsTooLong", intfStats.OutPktsTooLong})
intfStats.EntityData.Leafs.Append("out-octets-protected", types.YLeaf{"OutOctetsProtected", intfStats.OutOctetsProtected})
intfStats.EntityData.Leafs.Append("out-octets-encrypted", types.YLeaf{"OutOctetsEncrypted", intfStats.OutOctetsEncrypted})
intfStats.EntityData.YListKeys = []string {}
return &(intfStats.EntityData)
}
// Macsec_Secy_Interfaces_Interface_Stats_TxScStats
// Tx SC Stats
type Macsec_Secy_Interfaces_Interface_Stats_TxScStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx SCI. The type is interface{} with range: 0..18446744073709551615.
TxSci interface{}
// OutPktsProtected. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsProtected interface{}
// OutPktsEncrypted. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsEncrypted interface{}
// OutOctetsProtected. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsProtected interface{}
// OutOctetsEncrypted. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsEncrypted interface{}
// OutPktsTooLong. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsTooLong interface{}
// tx sa stats. The type is slice of
// Macsec_Secy_Interfaces_Interface_Stats_TxScStats_TxsaStat.
TxsaStat []*Macsec_Secy_Interfaces_Interface_Stats_TxScStats_TxsaStat
}
func (txScStats *Macsec_Secy_Interfaces_Interface_Stats_TxScStats) GetEntityData() *types.CommonEntityData {
txScStats.EntityData.YFilter = txScStats.YFilter
txScStats.EntityData.YangName = "tx-sc-stats"
txScStats.EntityData.BundleName = "cisco_ios_xr"
txScStats.EntityData.ParentYangName = "stats"
txScStats.EntityData.SegmentPath = "tx-sc-stats"
txScStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/interface/stats/" + txScStats.EntityData.SegmentPath
txScStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
txScStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
txScStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
txScStats.EntityData.Children = types.NewOrderedMap()
txScStats.EntityData.Children.Append("txsa-stat", types.YChild{"TxsaStat", nil})
for i := range txScStats.TxsaStat {
types.SetYListKey(txScStats.TxsaStat[i], i)
txScStats.EntityData.Children.Append(types.GetSegmentPath(txScStats.TxsaStat[i]), types.YChild{"TxsaStat", txScStats.TxsaStat[i]})
}
txScStats.EntityData.Leafs = types.NewOrderedMap()
txScStats.EntityData.Leafs.Append("tx-sci", types.YLeaf{"TxSci", txScStats.TxSci})
txScStats.EntityData.Leafs.Append("out-pkts-protected", types.YLeaf{"OutPktsProtected", txScStats.OutPktsProtected})
txScStats.EntityData.Leafs.Append("out-pkts-encrypted", types.YLeaf{"OutPktsEncrypted", txScStats.OutPktsEncrypted})
txScStats.EntityData.Leafs.Append("out-octets-protected", types.YLeaf{"OutOctetsProtected", txScStats.OutOctetsProtected})
txScStats.EntityData.Leafs.Append("out-octets-encrypted", types.YLeaf{"OutOctetsEncrypted", txScStats.OutOctetsEncrypted})
txScStats.EntityData.Leafs.Append("out-pkts-too-long", types.YLeaf{"OutPktsTooLong", txScStats.OutPktsTooLong})
txScStats.EntityData.YListKeys = []string {}
return &(txScStats.EntityData)
}
// Macsec_Secy_Interfaces_Interface_Stats_TxScStats_TxsaStat
// tx sa stats
type Macsec_Secy_Interfaces_Interface_Stats_TxScStats_TxsaStat struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// OutPktsProtected. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsProtected interface{}
// OutPktsEncrypted. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsEncrypted interface{}
// NextPN. The type is interface{} with range: 0..18446744073709551615.
NextPn interface{}
}
func (txsaStat *Macsec_Secy_Interfaces_Interface_Stats_TxScStats_TxsaStat) GetEntityData() *types.CommonEntityData {
txsaStat.EntityData.YFilter = txsaStat.YFilter
txsaStat.EntityData.YangName = "txsa-stat"
txsaStat.EntityData.BundleName = "cisco_ios_xr"
txsaStat.EntityData.ParentYangName = "tx-sc-stats"
txsaStat.EntityData.SegmentPath = "txsa-stat" + types.AddNoKeyToken(txsaStat)
txsaStat.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/interface/stats/tx-sc-stats/" + txsaStat.EntityData.SegmentPath
txsaStat.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
txsaStat.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
txsaStat.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
txsaStat.EntityData.Children = types.NewOrderedMap()
txsaStat.EntityData.Leafs = types.NewOrderedMap()
txsaStat.EntityData.Leafs.Append("out-pkts-protected", types.YLeaf{"OutPktsProtected", txsaStat.OutPktsProtected})
txsaStat.EntityData.Leafs.Append("out-pkts-encrypted", types.YLeaf{"OutPktsEncrypted", txsaStat.OutPktsEncrypted})
txsaStat.EntityData.Leafs.Append("next-pn", types.YLeaf{"NextPn", txsaStat.NextPn})
txsaStat.EntityData.YListKeys = []string {}
return &(txsaStat.EntityData)
}
// Macsec_Secy_Interfaces_Interface_Stats_RxScStats
// RX SC Stats List
type Macsec_Secy_Interfaces_Interface_Stats_RxScStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Rx SCI. The type is interface{} with range: 0..18446744073709551615.
RxSci interface{}
// InPktsUnchecked. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUnchecked interface{}
// InPktsDelayed. The type is interface{} with range: 0..18446744073709551615.
InPktsDelayed interface{}
// InPktsLate. The type is interface{} with range: 0..18446744073709551615.
InPktsLate interface{}
// InPktsOK. The type is interface{} with range: 0..18446744073709551615.
InPktsOk interface{}
// InPktsInvalid. The type is interface{} with range: 0..18446744073709551615.
InPktsInvalid interface{}
// InPktsNotValid. The type is interface{} with range:
// 0..18446744073709551615.
InPktsNotValid interface{}
// InPktsNotUsingSA. The type is interface{} with range:
// 0..18446744073709551615.
InPktsNotUsingSa interface{}
// InPktsUnusedSA. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUnusedSa interface{}
// InPktsUntaggedHit. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUntaggedHit interface{}
// InOctetsValidated. The type is interface{} with range:
// 0..18446744073709551615.
InOctetsValidated interface{}
// InOctetsDecrypted. The type is interface{} with range:
// 0..18446744073709551615.
InOctetsDecrypted interface{}
// rxsa stats. The type is slice of
// Macsec_Secy_Interfaces_Interface_Stats_RxScStats_RxsaStat.
RxsaStat []*Macsec_Secy_Interfaces_Interface_Stats_RxScStats_RxsaStat
}
func (rxScStats *Macsec_Secy_Interfaces_Interface_Stats_RxScStats) GetEntityData() *types.CommonEntityData {
rxScStats.EntityData.YFilter = rxScStats.YFilter
rxScStats.EntityData.YangName = "rx-sc-stats"
rxScStats.EntityData.BundleName = "cisco_ios_xr"
rxScStats.EntityData.ParentYangName = "stats"
rxScStats.EntityData.SegmentPath = "rx-sc-stats" + types.AddNoKeyToken(rxScStats)
rxScStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/interface/stats/" + rxScStats.EntityData.SegmentPath
rxScStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rxScStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rxScStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rxScStats.EntityData.Children = types.NewOrderedMap()
rxScStats.EntityData.Children.Append("rxsa-stat", types.YChild{"RxsaStat", nil})
for i := range rxScStats.RxsaStat {
types.SetYListKey(rxScStats.RxsaStat[i], i)
rxScStats.EntityData.Children.Append(types.GetSegmentPath(rxScStats.RxsaStat[i]), types.YChild{"RxsaStat", rxScStats.RxsaStat[i]})
}
rxScStats.EntityData.Leafs = types.NewOrderedMap()
rxScStats.EntityData.Leafs.Append("rx-sci", types.YLeaf{"RxSci", rxScStats.RxSci})
rxScStats.EntityData.Leafs.Append("in-pkts-unchecked", types.YLeaf{"InPktsUnchecked", rxScStats.InPktsUnchecked})
rxScStats.EntityData.Leafs.Append("in-pkts-delayed", types.YLeaf{"InPktsDelayed", rxScStats.InPktsDelayed})
rxScStats.EntityData.Leafs.Append("in-pkts-late", types.YLeaf{"InPktsLate", rxScStats.InPktsLate})
rxScStats.EntityData.Leafs.Append("in-pkts-ok", types.YLeaf{"InPktsOk", rxScStats.InPktsOk})
rxScStats.EntityData.Leafs.Append("in-pkts-invalid", types.YLeaf{"InPktsInvalid", rxScStats.InPktsInvalid})
rxScStats.EntityData.Leafs.Append("in-pkts-not-valid", types.YLeaf{"InPktsNotValid", rxScStats.InPktsNotValid})
rxScStats.EntityData.Leafs.Append("in-pkts-not-using-sa", types.YLeaf{"InPktsNotUsingSa", rxScStats.InPktsNotUsingSa})
rxScStats.EntityData.Leafs.Append("in-pkts-unused-sa", types.YLeaf{"InPktsUnusedSa", rxScStats.InPktsUnusedSa})
rxScStats.EntityData.Leafs.Append("in-pkts-untagged-hit", types.YLeaf{"InPktsUntaggedHit", rxScStats.InPktsUntaggedHit})
rxScStats.EntityData.Leafs.Append("in-octets-validated", types.YLeaf{"InOctetsValidated", rxScStats.InOctetsValidated})
rxScStats.EntityData.Leafs.Append("in-octets-decrypted", types.YLeaf{"InOctetsDecrypted", rxScStats.InOctetsDecrypted})
rxScStats.EntityData.YListKeys = []string {}
return &(rxScStats.EntityData)
}
// Macsec_Secy_Interfaces_Interface_Stats_RxScStats_RxsaStat
// rxsa stats
type Macsec_Secy_Interfaces_Interface_Stats_RxScStats_RxsaStat struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// InPktsOK. The type is interface{} with range: 0..18446744073709551615.
InPktsOk interface{}
// InPktsInvalid. The type is interface{} with range: 0..18446744073709551615.
InPktsInvalid interface{}
// InPktsNotValid. The type is interface{} with range:
// 0..18446744073709551615.
InPktsNotValid interface{}
// InPktsNotUsingSA. The type is interface{} with range:
// 0..18446744073709551615.
InPktsNotUsingSa interface{}
// InPktsUnusedSA. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUnusedSa interface{}
// NextPN. The type is interface{} with range: 0..18446744073709551615.
NextPn interface{}
}
func (rxsaStat *Macsec_Secy_Interfaces_Interface_Stats_RxScStats_RxsaStat) GetEntityData() *types.CommonEntityData {
rxsaStat.EntityData.YFilter = rxsaStat.YFilter
rxsaStat.EntityData.YangName = "rxsa-stat"
rxsaStat.EntityData.BundleName = "cisco_ios_xr"
rxsaStat.EntityData.ParentYangName = "rx-sc-stats"
rxsaStat.EntityData.SegmentPath = "rxsa-stat" + types.AddNoKeyToken(rxsaStat)
rxsaStat.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-secy-oper:macsec/secy/interfaces/interface/stats/rx-sc-stats/" + rxsaStat.EntityData.SegmentPath
rxsaStat.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rxsaStat.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rxsaStat.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rxsaStat.EntityData.Children = types.NewOrderedMap()
rxsaStat.EntityData.Leafs = types.NewOrderedMap()
rxsaStat.EntityData.Leafs.Append("in-pkts-ok", types.YLeaf{"InPktsOk", rxsaStat.InPktsOk})
rxsaStat.EntityData.Leafs.Append("in-pkts-invalid", types.YLeaf{"InPktsInvalid", rxsaStat.InPktsInvalid})
rxsaStat.EntityData.Leafs.Append("in-pkts-not-valid", types.YLeaf{"InPktsNotValid", rxsaStat.InPktsNotValid})
rxsaStat.EntityData.Leafs.Append("in-pkts-not-using-sa", types.YLeaf{"InPktsNotUsingSa", rxsaStat.InPktsNotUsingSa})
rxsaStat.EntityData.Leafs.Append("in-pkts-unused-sa", types.YLeaf{"InPktsUnusedSa", rxsaStat.InPktsUnusedSa})
rxsaStat.EntityData.Leafs.Append("next-pn", types.YLeaf{"NextPn", rxsaStat.NextPn})
rxsaStat.EntityData.YListKeys = []string {}
return &(rxsaStat.EntityData)
}