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_pl_oper.go
4523 lines (3587 loc) · 221 KB
/
crypto_macsec_pl_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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This module contains a collection of YANG definitions
// for Cisco IOS-XR crypto-macsec-pl package operational data.
//
// This module contains definitions
// for the following management objects:
// macsec-platform: MACSec operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package crypto_macsec_pl_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_pl_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-macsec-pl-oper macsec-platform}", reflect.TypeOf(MacsecPlatform{}))
ydk.RegisterEntity("Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform", reflect.TypeOf(MacsecPlatform{}))
}
// MacsecPhyVendor represents Macsec phy vendor
type MacsecPhyVendor string
const (
// msfpga
MacsecPhyVendor_msfpga MacsecPhyVendor = "msfpga"
// xlmsfpga
MacsecPhyVendor_xlmsfpga MacsecPhyVendor = "xlmsfpga"
// apm es200
MacsecPhyVendor_apm_es200 MacsecPhyVendor = "apm-es200"
// apm x120
MacsecPhyVendor_apm_x120 MacsecPhyVendor = "apm-x120"
// mv88ec808
MacsecPhyVendor_mv88ec808 MacsecPhyVendor = "mv88ec808"
// max card type
MacsecPhyVendor_max_card_type MacsecPhyVendor = "max-card-type"
// unknown
MacsecPhyVendor_unknown MacsecPhyVendor = "unknown"
// invalid
MacsecPhyVendor_invalid MacsecPhyVendor = "invalid"
)
// MacsecPlatform
// MACSec operational data
type MacsecPlatform struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// NodeTable for all the nodes.
Nodes MacsecPlatform_Nodes
}
func (macsecPlatform *MacsecPlatform) GetEntityData() *types.CommonEntityData {
macsecPlatform.EntityData.YFilter = macsecPlatform.YFilter
macsecPlatform.EntityData.YangName = "macsec-platform"
macsecPlatform.EntityData.BundleName = "cisco_ios_xr"
macsecPlatform.EntityData.ParentYangName = "Cisco-IOS-XR-crypto-macsec-pl-oper"
macsecPlatform.EntityData.SegmentPath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform"
macsecPlatform.EntityData.AbsolutePath = macsecPlatform.EntityData.SegmentPath
macsecPlatform.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
macsecPlatform.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
macsecPlatform.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
macsecPlatform.EntityData.Children = types.NewOrderedMap()
macsecPlatform.EntityData.Children.Append("nodes", types.YChild{"Nodes", &macsecPlatform.Nodes})
macsecPlatform.EntityData.Leafs = types.NewOrderedMap()
macsecPlatform.EntityData.YListKeys = []string {}
return &(macsecPlatform.EntityData)
}
// MacsecPlatform_Nodes
// NodeTable for all the nodes
type MacsecPlatform_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Node where macsec interfaces exist. The type is slice of
// MacsecPlatform_Nodes_Node.
Node []*MacsecPlatform_Nodes_Node
}
func (nodes *MacsecPlatform_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "macsec-platform"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// MacsecPlatform_Nodes_Node
// Node where macsec interfaces exist
type MacsecPlatform_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Table of Interfaces.
Interfaces MacsecPlatform_Nodes_Node_Interfaces
}
func (node *MacsecPlatform_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &node.Interfaces})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces
// Table of Interfaces
type MacsecPlatform_Nodes_Node_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Interface Where Macsec is configured. The type is slice of
// MacsecPlatform_Nodes_Node_Interfaces_Interface.
Interface []*MacsecPlatform_Nodes_Node_Interfaces_Interface
}
func (interfaces *MacsecPlatform_Nodes_Node_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "node"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/" + 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)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface
// Interface Where Macsec is configured
type MacsecPlatform_Nodes_Node_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Value. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
Name interface{}
// The Hardware Statistics.
HwStatistics MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics
// Table of Hardware SAs.
HwSas MacsecPlatform_Nodes_Node_Interfaces_Interface_HwSas
// Table of Hardware Flows.
HwFlowS MacsecPlatform_Nodes_Node_Interfaces_Interface_HwFlowS
// The Software Statistics.
SwStatistics MacsecPlatform_Nodes_Node_Interfaces_Interface_SwStatistics
}
func (self *MacsecPlatform_Nodes_Node_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-pl-oper:macsec-platform/nodes/node/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("hw-statistics", types.YChild{"HwStatistics", &self.HwStatistics})
self.EntityData.Children.Append("hw-sas", types.YChild{"HwSas", &self.HwSas})
self.EntityData.Children.Append("hw-flow-s", types.YChild{"HwFlowS", &self.HwFlowS})
self.EntityData.Children.Append("sw-statistics", types.YChild{"SwStatistics", &self.SwStatistics})
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("name", types.YLeaf{"Name", self.Name})
self.EntityData.YListKeys = []string {"Name"}
return &(self.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics
// The Hardware Statistics
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// ext.
Ext MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext
}
func (hwStatistics *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics) GetEntityData() *types.CommonEntityData {
hwStatistics.EntityData.YFilter = hwStatistics.YFilter
hwStatistics.EntityData.YangName = "hw-statistics"
hwStatistics.EntityData.BundleName = "cisco_ios_xr"
hwStatistics.EntityData.ParentYangName = "interface"
hwStatistics.EntityData.SegmentPath = "hw-statistics"
hwStatistics.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/" + hwStatistics.EntityData.SegmentPath
hwStatistics.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hwStatistics.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hwStatistics.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hwStatistics.EntityData.Children = types.NewOrderedMap()
hwStatistics.EntityData.Children.Append("ext", types.YChild{"Ext", &hwStatistics.Ext})
hwStatistics.EntityData.Leafs = types.NewOrderedMap()
hwStatistics.EntityData.YListKeys = []string {}
return &(hwStatistics.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext
// ext
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// type. The type is MacsecPhyVendor.
Type interface{}
// MSFPGA Stats.
MsfpgaStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats
// XLFPGA Stats.
XlfpgaStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats
// ES200 Stats.
Es200Stats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats
}
func (ext *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext) GetEntityData() *types.CommonEntityData {
ext.EntityData.YFilter = ext.YFilter
ext.EntityData.YangName = "ext"
ext.EntityData.BundleName = "cisco_ios_xr"
ext.EntityData.ParentYangName = "hw-statistics"
ext.EntityData.SegmentPath = "ext"
ext.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/" + ext.EntityData.SegmentPath
ext.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ext.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ext.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ext.EntityData.Children = types.NewOrderedMap()
ext.EntityData.Children.Append("msfpga-stats", types.YChild{"MsfpgaStats", &ext.MsfpgaStats})
ext.EntityData.Children.Append("xlfpga-stats", types.YChild{"XlfpgaStats", &ext.XlfpgaStats})
ext.EntityData.Children.Append("es200-stats", types.YChild{"Es200Stats", &ext.Es200Stats})
ext.EntityData.Leafs = types.NewOrderedMap()
ext.EntityData.Leafs.Append("type", types.YLeaf{"Type", ext.Type})
ext.EntityData.YListKeys = []string {}
return &(ext.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats
// MSFPGA Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx SA Stats.
TxSaStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxSaStats
// Rx SA Stats.
RxSaStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxSaStats
// Tx interface Macsec Stats.
TxInterfaceMacsecStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxInterfaceMacsecStats
// Rx interface Macsec Stats.
RxInterfaceMacsecStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxInterfaceMacsecStats
}
func (msfpgaStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats) GetEntityData() *types.CommonEntityData {
msfpgaStats.EntityData.YFilter = msfpgaStats.YFilter
msfpgaStats.EntityData.YangName = "msfpga-stats"
msfpgaStats.EntityData.BundleName = "cisco_ios_xr"
msfpgaStats.EntityData.ParentYangName = "ext"
msfpgaStats.EntityData.SegmentPath = "msfpga-stats"
msfpgaStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/" + msfpgaStats.EntityData.SegmentPath
msfpgaStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
msfpgaStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
msfpgaStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
msfpgaStats.EntityData.Children = types.NewOrderedMap()
msfpgaStats.EntityData.Children.Append("tx-sa-stats", types.YChild{"TxSaStats", &msfpgaStats.TxSaStats})
msfpgaStats.EntityData.Children.Append("rx-sa-stats", types.YChild{"RxSaStats", &msfpgaStats.RxSaStats})
msfpgaStats.EntityData.Children.Append("tx-interface-macsec-stats", types.YChild{"TxInterfaceMacsecStats", &msfpgaStats.TxInterfaceMacsecStats})
msfpgaStats.EntityData.Children.Append("rx-interface-macsec-stats", types.YChild{"RxInterfaceMacsecStats", &msfpgaStats.RxInterfaceMacsecStats})
msfpgaStats.EntityData.Leafs = types.NewOrderedMap()
msfpgaStats.EntityData.YListKeys = []string {}
return &(msfpgaStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxSaStats
// Tx SA Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxSaStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx Pkts Protected. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsProtected interface{}
// Tx Pkts Encrypted. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsEncrypted interface{}
// Tx Octets Protected. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsProtected interface{}
// Tx Octets Encrypted. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsEncrypted interface{}
}
func (txSaStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxSaStats) GetEntityData() *types.CommonEntityData {
txSaStats.EntityData.YFilter = txSaStats.YFilter
txSaStats.EntityData.YangName = "tx-sa-stats"
txSaStats.EntityData.BundleName = "cisco_ios_xr"
txSaStats.EntityData.ParentYangName = "msfpga-stats"
txSaStats.EntityData.SegmentPath = "tx-sa-stats"
txSaStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/msfpga-stats/" + txSaStats.EntityData.SegmentPath
txSaStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
txSaStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
txSaStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
txSaStats.EntityData.Children = types.NewOrderedMap()
txSaStats.EntityData.Leafs = types.NewOrderedMap()
txSaStats.EntityData.Leafs.Append("out-pkts-protected", types.YLeaf{"OutPktsProtected", txSaStats.OutPktsProtected})
txSaStats.EntityData.Leafs.Append("out-pkts-encrypted", types.YLeaf{"OutPktsEncrypted", txSaStats.OutPktsEncrypted})
txSaStats.EntityData.Leafs.Append("out-octets-protected", types.YLeaf{"OutOctetsProtected", txSaStats.OutOctetsProtected})
txSaStats.EntityData.Leafs.Append("out-octets-encrypted", types.YLeaf{"OutOctetsEncrypted", txSaStats.OutOctetsEncrypted})
txSaStats.EntityData.YListKeys = []string {}
return &(txSaStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxSaStats
// Rx SA Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxSaStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Rx Pkts Unused SA. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUnusedSa interface{}
// Rx Pkts Not Using SA. The type is interface{} with range:
// 0..18446744073709551615.
InPktsNotUsingSa interface{}
// Rx Pkts Not Valid. The type is interface{} with range:
// 0..18446744073709551615.
InPktsNotValid interface{}
// Rx Pkts Invalid. The type is interface{} with range:
// 0..18446744073709551615.
InPktsInvalid interface{}
// Rx Pkts OK. The type is interface{} with range: 0..18446744073709551615.
InPktsOk interface{}
// Rx Pkts Delayed. The type is interface{} with range:
// 0..18446744073709551615.
InPktsDelayed interface{}
// Rx Pkts Late. The type is interface{} with range: 0..18446744073709551615.
InPktsLate interface{}
// Rx Pkts Unchecked. The type is interface{} with range:
// 0..18446744073709551615.
InPktsUnchecked interface{}
// Rx Octets Validated. The type is interface{} with range:
// 0..18446744073709551615.
InOctetsValidated interface{}
// Rx Octets Decrypted. The type is interface{} with range:
// 0..18446744073709551615.
InOctetsDecrypted interface{}
}
func (rxSaStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxSaStats) GetEntityData() *types.CommonEntityData {
rxSaStats.EntityData.YFilter = rxSaStats.YFilter
rxSaStats.EntityData.YangName = "rx-sa-stats"
rxSaStats.EntityData.BundleName = "cisco_ios_xr"
rxSaStats.EntityData.ParentYangName = "msfpga-stats"
rxSaStats.EntityData.SegmentPath = "rx-sa-stats"
rxSaStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/msfpga-stats/" + rxSaStats.EntityData.SegmentPath
rxSaStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rxSaStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rxSaStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rxSaStats.EntityData.Children = types.NewOrderedMap()
rxSaStats.EntityData.Leafs = types.NewOrderedMap()
rxSaStats.EntityData.Leafs.Append("in-pkts-unused-sa", types.YLeaf{"InPktsUnusedSa", rxSaStats.InPktsUnusedSa})
rxSaStats.EntityData.Leafs.Append("in-pkts-not-using-sa", types.YLeaf{"InPktsNotUsingSa", rxSaStats.InPktsNotUsingSa})
rxSaStats.EntityData.Leafs.Append("in-pkts-not-valid", types.YLeaf{"InPktsNotValid", rxSaStats.InPktsNotValid})
rxSaStats.EntityData.Leafs.Append("in-pkts-invalid", types.YLeaf{"InPktsInvalid", rxSaStats.InPktsInvalid})
rxSaStats.EntityData.Leafs.Append("in-pkts-ok", types.YLeaf{"InPktsOk", rxSaStats.InPktsOk})
rxSaStats.EntityData.Leafs.Append("in-pkts-delayed", types.YLeaf{"InPktsDelayed", rxSaStats.InPktsDelayed})
rxSaStats.EntityData.Leafs.Append("in-pkts-late", types.YLeaf{"InPktsLate", rxSaStats.InPktsLate})
rxSaStats.EntityData.Leafs.Append("in-pkts-unchecked", types.YLeaf{"InPktsUnchecked", rxSaStats.InPktsUnchecked})
rxSaStats.EntityData.Leafs.Append("in-octets-validated", types.YLeaf{"InOctetsValidated", rxSaStats.InOctetsValidated})
rxSaStats.EntityData.Leafs.Append("in-octets-decrypted", types.YLeaf{"InOctetsDecrypted", rxSaStats.InOctetsDecrypted})
rxSaStats.EntityData.YListKeys = []string {}
return &(rxSaStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxInterfaceMacsecStats
// Tx interface Macsec Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxInterfaceMacsecStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx Pkts Uncontrolled. The type is interface{} with range:
// 0..18446744073709551615.
OutPktUncontrolled interface{}
// Tx Pkts Untagged. The type is interface{} with range:
// 0..18446744073709551615.
OutPktUntagged interface{}
// Tx Pkts Too Long. The type is interface{} with range:
// 0..18446744073709551615.
OutPktTooLong interface{}
}
func (txInterfaceMacsecStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_TxInterfaceMacsecStats) GetEntityData() *types.CommonEntityData {
txInterfaceMacsecStats.EntityData.YFilter = txInterfaceMacsecStats.YFilter
txInterfaceMacsecStats.EntityData.YangName = "tx-interface-macsec-stats"
txInterfaceMacsecStats.EntityData.BundleName = "cisco_ios_xr"
txInterfaceMacsecStats.EntityData.ParentYangName = "msfpga-stats"
txInterfaceMacsecStats.EntityData.SegmentPath = "tx-interface-macsec-stats"
txInterfaceMacsecStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/msfpga-stats/" + txInterfaceMacsecStats.EntityData.SegmentPath
txInterfaceMacsecStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
txInterfaceMacsecStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
txInterfaceMacsecStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
txInterfaceMacsecStats.EntityData.Children = types.NewOrderedMap()
txInterfaceMacsecStats.EntityData.Leafs = types.NewOrderedMap()
txInterfaceMacsecStats.EntityData.Leafs.Append("out-pkt-uncontrolled", types.YLeaf{"OutPktUncontrolled", txInterfaceMacsecStats.OutPktUncontrolled})
txInterfaceMacsecStats.EntityData.Leafs.Append("out-pkt-untagged", types.YLeaf{"OutPktUntagged", txInterfaceMacsecStats.OutPktUntagged})
txInterfaceMacsecStats.EntityData.Leafs.Append("out-pkt-too-long", types.YLeaf{"OutPktTooLong", txInterfaceMacsecStats.OutPktTooLong})
txInterfaceMacsecStats.EntityData.YListKeys = []string {}
return &(txInterfaceMacsecStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxInterfaceMacsecStats
// Rx interface Macsec Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxInterfaceMacsecStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Rx Pkts Untagged. The type is interface{} with range:
// 0..18446744073709551615.
InPktUntagged interface{}
// Rx Pkts Notag. The type is interface{} with range: 0..18446744073709551615.
InPktNotag interface{}
// Rx Pkts Bad tag. The type is interface{} with range:
// 0..18446744073709551615.
InPktBadTag interface{}
// Rx Pkts No Sci. The type is interface{} with range:
// 0..18446744073709551615.
InPktNoSci interface{}
// Rx Pkts Unknown Sci. The type is interface{} with range:
// 0..18446744073709551615.
InPktUnknownSci interface{}
// Rx Pkts Tagged. The type is interface{} with range:
// 0..18446744073709551615.
InPktTagged interface{}
// Rx Pkts Over Run. The type is interface{} with range:
// 0..18446744073709551615.
InPktOverrun interface{}
// Rx Pkts Uncontrolled. The type is interface{} with range:
// 0..18446744073709551615.
InPktUncontrolled interface{}
}
func (rxInterfaceMacsecStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_MsfpgaStats_RxInterfaceMacsecStats) GetEntityData() *types.CommonEntityData {
rxInterfaceMacsecStats.EntityData.YFilter = rxInterfaceMacsecStats.YFilter
rxInterfaceMacsecStats.EntityData.YangName = "rx-interface-macsec-stats"
rxInterfaceMacsecStats.EntityData.BundleName = "cisco_ios_xr"
rxInterfaceMacsecStats.EntityData.ParentYangName = "msfpga-stats"
rxInterfaceMacsecStats.EntityData.SegmentPath = "rx-interface-macsec-stats"
rxInterfaceMacsecStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/msfpga-stats/" + rxInterfaceMacsecStats.EntityData.SegmentPath
rxInterfaceMacsecStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rxInterfaceMacsecStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rxInterfaceMacsecStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rxInterfaceMacsecStats.EntityData.Children = types.NewOrderedMap()
rxInterfaceMacsecStats.EntityData.Leafs = types.NewOrderedMap()
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-untagged", types.YLeaf{"InPktUntagged", rxInterfaceMacsecStats.InPktUntagged})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-notag", types.YLeaf{"InPktNotag", rxInterfaceMacsecStats.InPktNotag})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-bad-tag", types.YLeaf{"InPktBadTag", rxInterfaceMacsecStats.InPktBadTag})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-no-sci", types.YLeaf{"InPktNoSci", rxInterfaceMacsecStats.InPktNoSci})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-unknown-sci", types.YLeaf{"InPktUnknownSci", rxInterfaceMacsecStats.InPktUnknownSci})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-tagged", types.YLeaf{"InPktTagged", rxInterfaceMacsecStats.InPktTagged})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-overrun", types.YLeaf{"InPktOverrun", rxInterfaceMacsecStats.InPktOverrun})
rxInterfaceMacsecStats.EntityData.Leafs.Append("in-pkt-uncontrolled", types.YLeaf{"InPktUncontrolled", rxInterfaceMacsecStats.InPktUncontrolled})
rxInterfaceMacsecStats.EntityData.YListKeys = []string {}
return &(rxInterfaceMacsecStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats
// XLFPGA Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx SC and SA Level Stats.
MacsecTxStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecTxStats
// Rx SC and SA Level Stats.
MacsecRxStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats
}
func (xlfpgaStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats) GetEntityData() *types.CommonEntityData {
xlfpgaStats.EntityData.YFilter = xlfpgaStats.YFilter
xlfpgaStats.EntityData.YangName = "xlfpga-stats"
xlfpgaStats.EntityData.BundleName = "cisco_ios_xr"
xlfpgaStats.EntityData.ParentYangName = "ext"
xlfpgaStats.EntityData.SegmentPath = "xlfpga-stats"
xlfpgaStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/" + xlfpgaStats.EntityData.SegmentPath
xlfpgaStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
xlfpgaStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
xlfpgaStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
xlfpgaStats.EntityData.Children = types.NewOrderedMap()
xlfpgaStats.EntityData.Children.Append("macsec-tx-stats", types.YChild{"MacsecTxStats", &xlfpgaStats.MacsecTxStats})
xlfpgaStats.EntityData.Children.Append("macsec-rx-stats", types.YChild{"MacsecRxStats", &xlfpgaStats.MacsecRxStats})
xlfpgaStats.EntityData.Leafs = types.NewOrderedMap()
xlfpgaStats.EntityData.YListKeys = []string {}
return &(xlfpgaStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecTxStats
// Tx SC and SA Level Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecTxStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx Octets Encrypted. The type is interface{} with range:
// 0..18446744073709551615.
ScEncryptedOctets interface{}
// Tx Pkts Too Long. The type is interface{} with range:
// 0..18446744073709551615.
ScToolongPkts interface{}
// Tx packets Encrypted. The type is interface{} with range:
// 0..18446744073709551615.
ScEncryptedPkts interface{}
// Tx Untagged Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScUntaggedPkts interface{}
// Tx Overrun Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScOverrunPkts interface{}
// Tx Bypass Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScBypassPkts interface{}
// Tx Eapol Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScEapolPkts interface{}
// Tx Dropped Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScDroppedPkts interface{}
// Current Tx AN. The type is interface{} with range: 0..18446744073709551615.
CurrentAn interface{}
// Current Tx SA Encrypted Packets. The type is interface{} with range:
// 0..18446744073709551615.
SaEncryptedPkts interface{}
}
func (macsecTxStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecTxStats) GetEntityData() *types.CommonEntityData {
macsecTxStats.EntityData.YFilter = macsecTxStats.YFilter
macsecTxStats.EntityData.YangName = "macsec-tx-stats"
macsecTxStats.EntityData.BundleName = "cisco_ios_xr"
macsecTxStats.EntityData.ParentYangName = "xlfpga-stats"
macsecTxStats.EntityData.SegmentPath = "macsec-tx-stats"
macsecTxStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/xlfpga-stats/" + macsecTxStats.EntityData.SegmentPath
macsecTxStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
macsecTxStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
macsecTxStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
macsecTxStats.EntityData.Children = types.NewOrderedMap()
macsecTxStats.EntityData.Leafs = types.NewOrderedMap()
macsecTxStats.EntityData.Leafs.Append("sc-encrypted-octets", types.YLeaf{"ScEncryptedOctets", macsecTxStats.ScEncryptedOctets})
macsecTxStats.EntityData.Leafs.Append("sc-toolong-pkts", types.YLeaf{"ScToolongPkts", macsecTxStats.ScToolongPkts})
macsecTxStats.EntityData.Leafs.Append("sc-encrypted-pkts", types.YLeaf{"ScEncryptedPkts", macsecTxStats.ScEncryptedPkts})
macsecTxStats.EntityData.Leafs.Append("sc-untagged-pkts", types.YLeaf{"ScUntaggedPkts", macsecTxStats.ScUntaggedPkts})
macsecTxStats.EntityData.Leafs.Append("sc-overrun-pkts", types.YLeaf{"ScOverrunPkts", macsecTxStats.ScOverrunPkts})
macsecTxStats.EntityData.Leafs.Append("sc-bypass-pkts", types.YLeaf{"ScBypassPkts", macsecTxStats.ScBypassPkts})
macsecTxStats.EntityData.Leafs.Append("sc-eapol-pkts", types.YLeaf{"ScEapolPkts", macsecTxStats.ScEapolPkts})
macsecTxStats.EntityData.Leafs.Append("sc-dropped-pkts", types.YLeaf{"ScDroppedPkts", macsecTxStats.ScDroppedPkts})
macsecTxStats.EntityData.Leafs.Append("current-an", types.YLeaf{"CurrentAn", macsecTxStats.CurrentAn})
macsecTxStats.EntityData.Leafs.Append("sa-encrypted-pkts", types.YLeaf{"SaEncryptedPkts", macsecTxStats.SaEncryptedPkts})
macsecTxStats.EntityData.YListKeys = []string {}
return &(macsecTxStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats
// Rx SC and SA Level Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Rx Octets Decrypted. The type is interface{} with range:
// 0..18446744073709551615.
ScDecryptedOctets interface{}
// Rx No Tag Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScNoTagPkts interface{}
// Rx Untagged Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScUntaggedPkts interface{}
// Rx Bad Tag Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScBadTagPkts interface{}
// Rx Late Pkts. The type is interface{} with range: 0..18446744073709551615.
ScLatePkts interface{}
// Rx Delayed Pkts. The type is interface{} with range:
// 0..18446744073709551615.
ScDelayedPkts interface{}
// Rx Unchecked Pkts. The type is interface{} with range:
// 0..18446744073709551615.
ScUncheckedPkts interface{}
// Rx No SCI Pkts. The type is interface{} with range:
// 0..18446744073709551615.
ScNoSciPkts interface{}
// Rx Unknown SCI Pkts. The type is interface{} with range:
// 0..18446744073709551615.
ScUnknownSciPkts interface{}
// Rx Pkts Ok. The type is interface{} with range: 0..18446744073709551615.
ScOkPkts interface{}
// Rx Pkts Not Using SA. The type is interface{} with range:
// 0..18446744073709551615.
ScNotUsingPkts interface{}
// Rx Pkts Unused SA. The type is interface{} with range:
// 0..18446744073709551615.
ScUnusedPkts interface{}
// Rx Not Valid Pkts. The type is interface{} with range:
// 0..18446744073709551615.
ScNotValidPkts interface{}
// Rx Pkts Invalid. The type is interface{} with range:
// 0..18446744073709551615.
ScInvalidPkts interface{}
// Rx Overrun Pkts. The type is interface{} with range:
// 0..18446744073709551615.
ScOverrunPkts interface{}
// Rx Bypass Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScBypassPkts interface{}
// Rx Eapol Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScEapolPkts interface{}
// Rx Dropped Packets. The type is interface{} with range:
// 0..18446744073709551615.
ScDroppedPkts interface{}
// Rx SA Level Stats. The type is slice of
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats_RxSaStat.
RxSaStat []*MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats_RxSaStat
}
func (macsecRxStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats) GetEntityData() *types.CommonEntityData {
macsecRxStats.EntityData.YFilter = macsecRxStats.YFilter
macsecRxStats.EntityData.YangName = "macsec-rx-stats"
macsecRxStats.EntityData.BundleName = "cisco_ios_xr"
macsecRxStats.EntityData.ParentYangName = "xlfpga-stats"
macsecRxStats.EntityData.SegmentPath = "macsec-rx-stats"
macsecRxStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/xlfpga-stats/" + macsecRxStats.EntityData.SegmentPath
macsecRxStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
macsecRxStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
macsecRxStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
macsecRxStats.EntityData.Children = types.NewOrderedMap()
macsecRxStats.EntityData.Children.Append("rx-sa-stat", types.YChild{"RxSaStat", nil})
for i := range macsecRxStats.RxSaStat {
types.SetYListKey(macsecRxStats.RxSaStat[i], i)
macsecRxStats.EntityData.Children.Append(types.GetSegmentPath(macsecRxStats.RxSaStat[i]), types.YChild{"RxSaStat", macsecRxStats.RxSaStat[i]})
}
macsecRxStats.EntityData.Leafs = types.NewOrderedMap()
macsecRxStats.EntityData.Leafs.Append("sc-decrypted-octets", types.YLeaf{"ScDecryptedOctets", macsecRxStats.ScDecryptedOctets})
macsecRxStats.EntityData.Leafs.Append("sc-no-tag-pkts", types.YLeaf{"ScNoTagPkts", macsecRxStats.ScNoTagPkts})
macsecRxStats.EntityData.Leafs.Append("sc-untagged-pkts", types.YLeaf{"ScUntaggedPkts", macsecRxStats.ScUntaggedPkts})
macsecRxStats.EntityData.Leafs.Append("sc-bad-tag-pkts", types.YLeaf{"ScBadTagPkts", macsecRxStats.ScBadTagPkts})
macsecRxStats.EntityData.Leafs.Append("sc-late-pkts", types.YLeaf{"ScLatePkts", macsecRxStats.ScLatePkts})
macsecRxStats.EntityData.Leafs.Append("sc-delayed-pkts", types.YLeaf{"ScDelayedPkts", macsecRxStats.ScDelayedPkts})
macsecRxStats.EntityData.Leafs.Append("sc-unchecked-pkts", types.YLeaf{"ScUncheckedPkts", macsecRxStats.ScUncheckedPkts})
macsecRxStats.EntityData.Leafs.Append("sc-no-sci-pkts", types.YLeaf{"ScNoSciPkts", macsecRxStats.ScNoSciPkts})
macsecRxStats.EntityData.Leafs.Append("sc-unknown-sci-pkts", types.YLeaf{"ScUnknownSciPkts", macsecRxStats.ScUnknownSciPkts})
macsecRxStats.EntityData.Leafs.Append("sc-ok-pkts", types.YLeaf{"ScOkPkts", macsecRxStats.ScOkPkts})
macsecRxStats.EntityData.Leafs.Append("sc-not-using-pkts", types.YLeaf{"ScNotUsingPkts", macsecRxStats.ScNotUsingPkts})
macsecRxStats.EntityData.Leafs.Append("sc-unused-pkts", types.YLeaf{"ScUnusedPkts", macsecRxStats.ScUnusedPkts})
macsecRxStats.EntityData.Leafs.Append("sc-not-valid-pkts", types.YLeaf{"ScNotValidPkts", macsecRxStats.ScNotValidPkts})
macsecRxStats.EntityData.Leafs.Append("sc-invalid-pkts", types.YLeaf{"ScInvalidPkts", macsecRxStats.ScInvalidPkts})
macsecRxStats.EntityData.Leafs.Append("sc-overrun-pkts", types.YLeaf{"ScOverrunPkts", macsecRxStats.ScOverrunPkts})
macsecRxStats.EntityData.Leafs.Append("sc-bypass-pkts", types.YLeaf{"ScBypassPkts", macsecRxStats.ScBypassPkts})
macsecRxStats.EntityData.Leafs.Append("sc-eapol-pkts", types.YLeaf{"ScEapolPkts", macsecRxStats.ScEapolPkts})
macsecRxStats.EntityData.Leafs.Append("sc-dropped-pkts", types.YLeaf{"ScDroppedPkts", macsecRxStats.ScDroppedPkts})
macsecRxStats.EntityData.YListKeys = []string {}
return &(macsecRxStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats_RxSaStat
// Rx SA Level Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats_RxSaStat struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Current Rx AN. The type is interface{} with range: 0..18446744073709551615.
An interface{}
// Rx Ok Pkts for Current AN. The type is interface{} with range:
// 0..18446744073709551615.
SaOkPkts interface{}
// Rx Pkts not using SA for Current AN. The type is interface{} with range:
// 0..18446744073709551615.
SaNotUsingPkts interface{}
// Rx Pkts Unused Pkts for Current AN. The type is interface{} with range:
// 0..18446744073709551615.
SaUnusedPkts interface{}
// Rx Not Valid Pkts for Current AN. The type is interface{} with range:
// 0..18446744073709551615.
SaNotValidPkts interface{}
// Rx Invalid Pkts for current AN. The type is interface{} with range:
// 0..18446744073709551615.
SaInvalidPkts interface{}
}
func (rxSaStat *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_XlfpgaStats_MacsecRxStats_RxSaStat) GetEntityData() *types.CommonEntityData {
rxSaStat.EntityData.YFilter = rxSaStat.YFilter
rxSaStat.EntityData.YangName = "rx-sa-stat"
rxSaStat.EntityData.BundleName = "cisco_ios_xr"
rxSaStat.EntityData.ParentYangName = "macsec-rx-stats"
rxSaStat.EntityData.SegmentPath = "rx-sa-stat" + types.AddNoKeyToken(rxSaStat)
rxSaStat.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/xlfpga-stats/macsec-rx-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("an", types.YLeaf{"An", rxSaStat.An})
rxSaStat.EntityData.Leafs.Append("sa-ok-pkts", types.YLeaf{"SaOkPkts", rxSaStat.SaOkPkts})
rxSaStat.EntityData.Leafs.Append("sa-not-using-pkts", types.YLeaf{"SaNotUsingPkts", rxSaStat.SaNotUsingPkts})
rxSaStat.EntityData.Leafs.Append("sa-unused-pkts", types.YLeaf{"SaUnusedPkts", rxSaStat.SaUnusedPkts})
rxSaStat.EntityData.Leafs.Append("sa-not-valid-pkts", types.YLeaf{"SaNotValidPkts", rxSaStat.SaNotValidPkts})
rxSaStat.EntityData.Leafs.Append("sa-invalid-pkts", types.YLeaf{"SaInvalidPkts", rxSaStat.SaInvalidPkts})
rxSaStat.EntityData.YListKeys = []string {}
return &(rxSaStat.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats
// ES200 Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Tx SA Stats.
TxSaStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxSaStats
// Rx SA Stats.
RxSaStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_RxSaStats
// Tx SC Macsec Stats.
TxScMacsecStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxScMacsecStats
// Rx SC Macsec Stats.
RxScMacsecStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_RxScMacsecStats
// Tx interface Macsec Stats.
TxInterfaceMacsecStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxInterfaceMacsecStats
// Rx interface Macsec Stats.
RxInterfaceMacsecStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_RxInterfaceMacsecStats
// Port level TX Stats.
TxPortStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxPortStats
// Port level RX Stats.
RxPortStats MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_RxPortStats
}
func (es200Stats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats) GetEntityData() *types.CommonEntityData {
es200Stats.EntityData.YFilter = es200Stats.YFilter
es200Stats.EntityData.YangName = "es200-stats"
es200Stats.EntityData.BundleName = "cisco_ios_xr"
es200Stats.EntityData.ParentYangName = "ext"
es200Stats.EntityData.SegmentPath = "es200-stats"
es200Stats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/" + es200Stats.EntityData.SegmentPath
es200Stats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
es200Stats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
es200Stats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
es200Stats.EntityData.Children = types.NewOrderedMap()
es200Stats.EntityData.Children.Append("tx-sa-stats", types.YChild{"TxSaStats", &es200Stats.TxSaStats})
es200Stats.EntityData.Children.Append("rx-sa-stats", types.YChild{"RxSaStats", &es200Stats.RxSaStats})
es200Stats.EntityData.Children.Append("tx-sc-macsec-stats", types.YChild{"TxScMacsecStats", &es200Stats.TxScMacsecStats})
es200Stats.EntityData.Children.Append("rx-sc-macsec-stats", types.YChild{"RxScMacsecStats", &es200Stats.RxScMacsecStats})
es200Stats.EntityData.Children.Append("tx-interface-macsec-stats", types.YChild{"TxInterfaceMacsecStats", &es200Stats.TxInterfaceMacsecStats})
es200Stats.EntityData.Children.Append("rx-interface-macsec-stats", types.YChild{"RxInterfaceMacsecStats", &es200Stats.RxInterfaceMacsecStats})
es200Stats.EntityData.Children.Append("tx-port-stats", types.YChild{"TxPortStats", &es200Stats.TxPortStats})
es200Stats.EntityData.Children.Append("rx-port-stats", types.YChild{"RxPortStats", &es200Stats.RxPortStats})
es200Stats.EntityData.Leafs = types.NewOrderedMap()
es200Stats.EntityData.YListKeys = []string {}
return &(es200Stats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxSaStats
// Tx SA Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxSaStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// packets exceeding egress MTU. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsTooLong interface{}
// packets encrypted/protected. The type is interface{} with range:
// 0..18446744073709551615.
OutPktsEncryptedProtected interface{}
// octets1 encrypted/protected ?. The type is interface{} with range:
// 0..18446744073709551615.
OutOctetsEncryptedProtected1 interface{}
}
func (txSaStats *MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_TxSaStats) GetEntityData() *types.CommonEntityData {
txSaStats.EntityData.YFilter = txSaStats.YFilter
txSaStats.EntityData.YangName = "tx-sa-stats"
txSaStats.EntityData.BundleName = "cisco_ios_xr"
txSaStats.EntityData.ParentYangName = "es200-stats"
txSaStats.EntityData.SegmentPath = "tx-sa-stats"
txSaStats.EntityData.AbsolutePath = "Cisco-IOS-XR-crypto-macsec-pl-oper:macsec-platform/nodes/node/interfaces/interface/hw-statistics/ext/es200-stats/" + txSaStats.EntityData.SegmentPath
txSaStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
txSaStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
txSaStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
txSaStats.EntityData.Children = types.NewOrderedMap()
txSaStats.EntityData.Leafs = types.NewOrderedMap()
txSaStats.EntityData.Leafs.Append("out-pkts-too-long", types.YLeaf{"OutPktsTooLong", txSaStats.OutPktsTooLong})
txSaStats.EntityData.Leafs.Append("out-pkts-encrypted-protected", types.YLeaf{"OutPktsEncryptedProtected", txSaStats.OutPktsEncryptedProtected})
txSaStats.EntityData.Leafs.Append("out-octets-encrypted-protected1", types.YLeaf{"OutOctetsEncryptedProtected1", txSaStats.OutOctetsEncryptedProtected1})
txSaStats.EntityData.YListKeys = []string {}
return &(txSaStats.EntityData)
}
// MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_RxSaStats
// Rx SA Stats
type MacsecPlatform_Nodes_Node_Interfaces_Interface_HwStatistics_Ext_Es200Stats_RxSaStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// frame not valid & validateFrames disabled. The type is interface{} with
// range: 0..18446744073709551615.
InPktsUnchecked interface{}
// PN of packet outside replay window & validateFrames !strict. The type is
// interface{} with range: 0..18446744073709551615.
InPktsDelayed interface{}
// PN of packet outside replay window & validateFrames strict. The type is
// interface{} with range: 0..18446744073709551615.
InPktsLate interface{}
// packets with no error. The type is interface{} with range:
// 0..18446744073709551615.
InPktsOk interface{}
// packet not valid & validateFrames !strict. The type is interface{} with
// range: 0..18446744073709551615.
InPktsInvalid interface{}
// packet not valid & validateFrames strict. The type is interface{} with
// range: 0..18446744073709551615.
InPktsNotValid interface{}
// packet assigned to SA not in use & validateFrames strict. The type is
// interface{} with range: 0..18446744073709551615.
InPktsNotUsingSa interface{}
// packet assigned to SA not in use & validateFrames !strict. The type is
// interface{} with range: 0..18446744073709551615.