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
/
fretta_bcm_dpa_hw_resources_oper.go
1853 lines (1485 loc) · 92.7 KB
/
fretta_bcm_dpa_hw_resources_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 fretta-bcm-dpa-hw-resources package operational data.
//
// This module contains definitions
// for the following management objects:
// dpa: Stats Data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package fretta_bcm_dpa_hw_resources_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 fretta_bcm_dpa_hw_resources_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper dpa}", reflect.TypeOf(Dpa{}))
ydk.RegisterEntity("Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa", reflect.TypeOf(Dpa{}))
}
// Resource represents Resource
type Resource string
const (
// lem
Resource_lem Resource = "lem"
// lpm
Resource_lpm Resource = "lpm"
// encap
Resource_encap Resource = "encap"
// ext tcam ipv4
Resource_ext_tcam_ipv4 Resource = "ext-tcam-ipv4"
// ext tcam ipv6 short
Resource_ext_tcam_ipv6_short Resource = "ext-tcam-ipv6-short"
// ext tcam ipv6 long
Resource_ext_tcam_ipv6_long Resource = "ext-tcam-ipv6-long"
// fec
Resource_fec Resource = "fec"
// ecmp fec
Resource_ecmpfec Resource = "ecmpfec"
// ext tcam ipv6
Resource_ext_tcam_ipv6 Resource = "ext-tcam-ipv6"
)
// Dpa
// Stats Data
type Dpa struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Voq or Trap Data.
Stats Dpa_Stats
}
func (dpa *Dpa) GetEntityData() *types.CommonEntityData {
dpa.EntityData.YFilter = dpa.YFilter
dpa.EntityData.YangName = "dpa"
dpa.EntityData.BundleName = "cisco_ios_xr"
dpa.EntityData.ParentYangName = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper"
dpa.EntityData.SegmentPath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa"
dpa.EntityData.AbsolutePath = dpa.EntityData.SegmentPath
dpa.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
dpa.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
dpa.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
dpa.EntityData.Children = types.NewOrderedMap()
dpa.EntityData.Children.Append("stats", types.YChild{"Stats", &dpa.Stats})
dpa.EntityData.Leafs = types.NewOrderedMap()
dpa.EntityData.YListKeys = []string {}
return &(dpa.EntityData)
}
// Dpa_Stats
// Voq or Trap Data
type Dpa_Stats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// DPA data for available nodes.
Nodes Dpa_Stats_Nodes
}
func (stats *Dpa_Stats) GetEntityData() *types.CommonEntityData {
stats.EntityData.YFilter = stats.YFilter
stats.EntityData.YangName = "stats"
stats.EntityData.BundleName = "cisco_ios_xr"
stats.EntityData.ParentYangName = "dpa"
stats.EntityData.SegmentPath = "stats"
stats.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/" + 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("nodes", types.YChild{"Nodes", &stats.Nodes})
stats.EntityData.Leafs = types.NewOrderedMap()
stats.EntityData.YListKeys = []string {}
return &(stats.EntityData)
}
// Dpa_Stats_Nodes
// DPA data for available nodes
type Dpa_Stats_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// DPA operational data for a particular node. The type is slice of
// Dpa_Stats_Nodes_Node.
Node []*Dpa_Stats_Nodes_Node
}
func (nodes *Dpa_Stats_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "stats"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/" + 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)
}
// Dpa_Stats_Nodes_Node
// DPA operational data for a particular node
type Dpa_Stats_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node ID. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// ASIC statistics table.
AsicStatistics Dpa_Stats_Nodes_Node_AsicStatistics
// Ingress Stats.
NpuNumbers Dpa_Stats_Nodes_Node_NpuNumbers
// OFA stats hw resources info .
StatsResourcesDatas Dpa_Stats_Nodes_Node_StatsResourcesDatas
// OFA hw resources stats .
HwResourcesDatas Dpa_Stats_Nodes_Node_HwResourcesDatas
}
func (node *Dpa_Stats_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-fretta-bcm-dpa-hw-resources-oper:dpa/stats/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("asic-statistics", types.YChild{"AsicStatistics", &node.AsicStatistics})
node.EntityData.Children.Append("npu-numbers", types.YChild{"NpuNumbers", &node.NpuNumbers})
node.EntityData.Children.Append("stats-resources-datas", types.YChild{"StatsResourcesDatas", &node.StatsResourcesDatas})
node.EntityData.Children.Append("hw-resources-datas", types.YChild{"HwResourcesDatas", &node.HwResourcesDatas})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics
// ASIC statistics table
type Dpa_Stats_Nodes_Node_AsicStatistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Detailed ASIC statistics.
AsicStatisticsDetailForNpuIds Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds
// ASIC statistics.
AsicStatisticsForNpuIds Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds
}
func (asicStatistics *Dpa_Stats_Nodes_Node_AsicStatistics) GetEntityData() *types.CommonEntityData {
asicStatistics.EntityData.YFilter = asicStatistics.YFilter
asicStatistics.EntityData.YangName = "asic-statistics"
asicStatistics.EntityData.BundleName = "cisco_ios_xr"
asicStatistics.EntityData.ParentYangName = "node"
asicStatistics.EntityData.SegmentPath = "asic-statistics"
asicStatistics.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/" + asicStatistics.EntityData.SegmentPath
asicStatistics.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
asicStatistics.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
asicStatistics.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
asicStatistics.EntityData.Children = types.NewOrderedMap()
asicStatistics.EntityData.Children.Append("asic-statistics-detail-for-npu-ids", types.YChild{"AsicStatisticsDetailForNpuIds", &asicStatistics.AsicStatisticsDetailForNpuIds})
asicStatistics.EntityData.Children.Append("asic-statistics-for-npu-ids", types.YChild{"AsicStatisticsForNpuIds", &asicStatistics.AsicStatisticsForNpuIds})
asicStatistics.EntityData.Leafs = types.NewOrderedMap()
asicStatistics.EntityData.YListKeys = []string {}
return &(asicStatistics.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds
// Detailed ASIC statistics
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Detailed ASIC statistics for a particular NPU. The type is slice of
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId.
AsicStatisticsDetailForNpuId []*Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId
}
func (asicStatisticsDetailForNpuIds *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds) GetEntityData() *types.CommonEntityData {
asicStatisticsDetailForNpuIds.EntityData.YFilter = asicStatisticsDetailForNpuIds.YFilter
asicStatisticsDetailForNpuIds.EntityData.YangName = "asic-statistics-detail-for-npu-ids"
asicStatisticsDetailForNpuIds.EntityData.BundleName = "cisco_ios_xr"
asicStatisticsDetailForNpuIds.EntityData.ParentYangName = "asic-statistics"
asicStatisticsDetailForNpuIds.EntityData.SegmentPath = "asic-statistics-detail-for-npu-ids"
asicStatisticsDetailForNpuIds.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/" + asicStatisticsDetailForNpuIds.EntityData.SegmentPath
asicStatisticsDetailForNpuIds.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
asicStatisticsDetailForNpuIds.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
asicStatisticsDetailForNpuIds.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
asicStatisticsDetailForNpuIds.EntityData.Children = types.NewOrderedMap()
asicStatisticsDetailForNpuIds.EntityData.Children.Append("asic-statistics-detail-for-npu-id", types.YChild{"AsicStatisticsDetailForNpuId", nil})
for i := range asicStatisticsDetailForNpuIds.AsicStatisticsDetailForNpuId {
asicStatisticsDetailForNpuIds.EntityData.Children.Append(types.GetSegmentPath(asicStatisticsDetailForNpuIds.AsicStatisticsDetailForNpuId[i]), types.YChild{"AsicStatisticsDetailForNpuId", asicStatisticsDetailForNpuIds.AsicStatisticsDetailForNpuId[i]})
}
asicStatisticsDetailForNpuIds.EntityData.Leafs = types.NewOrderedMap()
asicStatisticsDetailForNpuIds.EntityData.YListKeys = []string {}
return &(asicStatisticsDetailForNpuIds.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId
// Detailed ASIC statistics for a particular
// NPU
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. NPU number. The type is interface{} with range:
// 0..4294967295.
NpuId interface{}
// Flag to indicate if data is valid. The type is bool.
Valid interface{}
// Rack number. The type is interface{} with range: 0..4294967295.
RackNumber interface{}
// Slot number. The type is interface{} with range: 0..4294967295.
SlotNumber interface{}
// ASIC instance. The type is interface{} with range: 0..4294967295.
AsicInstance interface{}
// Chip version. The type is interface{} with range: 0..65535.
ChipVersion interface{}
// Statistics.
Statistics Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics
}
func (asicStatisticsDetailForNpuId *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId) GetEntityData() *types.CommonEntityData {
asicStatisticsDetailForNpuId.EntityData.YFilter = asicStatisticsDetailForNpuId.YFilter
asicStatisticsDetailForNpuId.EntityData.YangName = "asic-statistics-detail-for-npu-id"
asicStatisticsDetailForNpuId.EntityData.BundleName = "cisco_ios_xr"
asicStatisticsDetailForNpuId.EntityData.ParentYangName = "asic-statistics-detail-for-npu-ids"
asicStatisticsDetailForNpuId.EntityData.SegmentPath = "asic-statistics-detail-for-npu-id" + types.AddKeyToken(asicStatisticsDetailForNpuId.NpuId, "npu-id")
asicStatisticsDetailForNpuId.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/asic-statistics-detail-for-npu-ids/" + asicStatisticsDetailForNpuId.EntityData.SegmentPath
asicStatisticsDetailForNpuId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
asicStatisticsDetailForNpuId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
asicStatisticsDetailForNpuId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
asicStatisticsDetailForNpuId.EntityData.Children = types.NewOrderedMap()
asicStatisticsDetailForNpuId.EntityData.Children.Append("statistics", types.YChild{"Statistics", &asicStatisticsDetailForNpuId.Statistics})
asicStatisticsDetailForNpuId.EntityData.Leafs = types.NewOrderedMap()
asicStatisticsDetailForNpuId.EntityData.Leafs.Append("npu-id", types.YLeaf{"NpuId", asicStatisticsDetailForNpuId.NpuId})
asicStatisticsDetailForNpuId.EntityData.Leafs.Append("valid", types.YLeaf{"Valid", asicStatisticsDetailForNpuId.Valid})
asicStatisticsDetailForNpuId.EntityData.Leafs.Append("rack-number", types.YLeaf{"RackNumber", asicStatisticsDetailForNpuId.RackNumber})
asicStatisticsDetailForNpuId.EntityData.Leafs.Append("slot-number", types.YLeaf{"SlotNumber", asicStatisticsDetailForNpuId.SlotNumber})
asicStatisticsDetailForNpuId.EntityData.Leafs.Append("asic-instance", types.YLeaf{"AsicInstance", asicStatisticsDetailForNpuId.AsicInstance})
asicStatisticsDetailForNpuId.EntityData.Leafs.Append("chip-version", types.YLeaf{"ChipVersion", asicStatisticsDetailForNpuId.ChipVersion})
asicStatisticsDetailForNpuId.EntityData.YListKeys = []string {"NpuId"}
return &(asicStatisticsDetailForNpuId.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics
// Statistics
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Number of blocks. The type is interface{} with range: 0..255.
NumBlocks interface{}
// Block information. The type is slice of
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo.
BlockInfo []*Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo
}
func (statistics *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics) GetEntityData() *types.CommonEntityData {
statistics.EntityData.YFilter = statistics.YFilter
statistics.EntityData.YangName = "statistics"
statistics.EntityData.BundleName = "cisco_ios_xr"
statistics.EntityData.ParentYangName = "asic-statistics-detail-for-npu-id"
statistics.EntityData.SegmentPath = "statistics"
statistics.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/asic-statistics-detail-for-npu-ids/asic-statistics-detail-for-npu-id/" + statistics.EntityData.SegmentPath
statistics.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
statistics.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
statistics.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
statistics.EntityData.Children = types.NewOrderedMap()
statistics.EntityData.Children.Append("block-info", types.YChild{"BlockInfo", nil})
for i := range statistics.BlockInfo {
types.SetYListKey(statistics.BlockInfo[i], i)
statistics.EntityData.Children.Append(types.GetSegmentPath(statistics.BlockInfo[i]), types.YChild{"BlockInfo", statistics.BlockInfo[i]})
}
statistics.EntityData.Leafs = types.NewOrderedMap()
statistics.EntityData.Leafs.Append("num-blocks", types.YLeaf{"NumBlocks", statistics.NumBlocks})
statistics.EntityData.YListKeys = []string {}
return &(statistics.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo
// Block information
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Block name. The type is string with length: 0..10.
BlockName interface{}
// Number of fields. The type is interface{} with range: 0..255.
NumFields interface{}
// Field information. The type is slice of
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo_FieldInfo.
FieldInfo []*Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo_FieldInfo
}
func (blockInfo *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo) GetEntityData() *types.CommonEntityData {
blockInfo.EntityData.YFilter = blockInfo.YFilter
blockInfo.EntityData.YangName = "block-info"
blockInfo.EntityData.BundleName = "cisco_ios_xr"
blockInfo.EntityData.ParentYangName = "statistics"
blockInfo.EntityData.SegmentPath = "block-info" + types.AddNoKeyToken(blockInfo)
blockInfo.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/asic-statistics-detail-for-npu-ids/asic-statistics-detail-for-npu-id/statistics/" + blockInfo.EntityData.SegmentPath
blockInfo.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
blockInfo.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
blockInfo.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
blockInfo.EntityData.Children = types.NewOrderedMap()
blockInfo.EntityData.Children.Append("field-info", types.YChild{"FieldInfo", nil})
for i := range blockInfo.FieldInfo {
types.SetYListKey(blockInfo.FieldInfo[i], i)
blockInfo.EntityData.Children.Append(types.GetSegmentPath(blockInfo.FieldInfo[i]), types.YChild{"FieldInfo", blockInfo.FieldInfo[i]})
}
blockInfo.EntityData.Leafs = types.NewOrderedMap()
blockInfo.EntityData.Leafs.Append("block-name", types.YLeaf{"BlockName", blockInfo.BlockName})
blockInfo.EntityData.Leafs.Append("num-fields", types.YLeaf{"NumFields", blockInfo.NumFields})
blockInfo.EntityData.YListKeys = []string {}
return &(blockInfo.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo_FieldInfo
// Field information
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo_FieldInfo struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Field name. The type is string with length: 0..80.
FieldName interface{}
// Field value. The type is interface{} with range: 0..18446744073709551615.
FieldValue interface{}
// Flag to indicate overflow. The type is bool.
IsOverflow interface{}
}
func (fieldInfo *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsDetailForNpuIds_AsicStatisticsDetailForNpuId_Statistics_BlockInfo_FieldInfo) GetEntityData() *types.CommonEntityData {
fieldInfo.EntityData.YFilter = fieldInfo.YFilter
fieldInfo.EntityData.YangName = "field-info"
fieldInfo.EntityData.BundleName = "cisco_ios_xr"
fieldInfo.EntityData.ParentYangName = "block-info"
fieldInfo.EntityData.SegmentPath = "field-info" + types.AddNoKeyToken(fieldInfo)
fieldInfo.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/asic-statistics-detail-for-npu-ids/asic-statistics-detail-for-npu-id/statistics/block-info/" + fieldInfo.EntityData.SegmentPath
fieldInfo.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
fieldInfo.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
fieldInfo.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
fieldInfo.EntityData.Children = types.NewOrderedMap()
fieldInfo.EntityData.Leafs = types.NewOrderedMap()
fieldInfo.EntityData.Leafs.Append("field-name", types.YLeaf{"FieldName", fieldInfo.FieldName})
fieldInfo.EntityData.Leafs.Append("field-value", types.YLeaf{"FieldValue", fieldInfo.FieldValue})
fieldInfo.EntityData.Leafs.Append("is-overflow", types.YLeaf{"IsOverflow", fieldInfo.IsOverflow})
fieldInfo.EntityData.YListKeys = []string {}
return &(fieldInfo.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds
// ASIC statistics
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// ASIC statistics for a particular NPU. The type is slice of
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId.
AsicStatisticsForNpuId []*Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId
}
func (asicStatisticsForNpuIds *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds) GetEntityData() *types.CommonEntityData {
asicStatisticsForNpuIds.EntityData.YFilter = asicStatisticsForNpuIds.YFilter
asicStatisticsForNpuIds.EntityData.YangName = "asic-statistics-for-npu-ids"
asicStatisticsForNpuIds.EntityData.BundleName = "cisco_ios_xr"
asicStatisticsForNpuIds.EntityData.ParentYangName = "asic-statistics"
asicStatisticsForNpuIds.EntityData.SegmentPath = "asic-statistics-for-npu-ids"
asicStatisticsForNpuIds.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/" + asicStatisticsForNpuIds.EntityData.SegmentPath
asicStatisticsForNpuIds.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
asicStatisticsForNpuIds.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
asicStatisticsForNpuIds.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
asicStatisticsForNpuIds.EntityData.Children = types.NewOrderedMap()
asicStatisticsForNpuIds.EntityData.Children.Append("asic-statistics-for-npu-id", types.YChild{"AsicStatisticsForNpuId", nil})
for i := range asicStatisticsForNpuIds.AsicStatisticsForNpuId {
asicStatisticsForNpuIds.EntityData.Children.Append(types.GetSegmentPath(asicStatisticsForNpuIds.AsicStatisticsForNpuId[i]), types.YChild{"AsicStatisticsForNpuId", asicStatisticsForNpuIds.AsicStatisticsForNpuId[i]})
}
asicStatisticsForNpuIds.EntityData.Leafs = types.NewOrderedMap()
asicStatisticsForNpuIds.EntityData.YListKeys = []string {}
return &(asicStatisticsForNpuIds.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId
// ASIC statistics for a particular NPU
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. NPU number. The type is interface{} with range:
// 0..4294967295.
NpuId interface{}
// Flag to indicate if data is valid. The type is bool.
Valid interface{}
// Rack number. The type is interface{} with range: 0..4294967295.
RackNumber interface{}
// Slot number. The type is interface{} with range: 0..4294967295.
SlotNumber interface{}
// ASIC instance. The type is interface{} with range: 0..4294967295.
AsicInstance interface{}
// Chip version. The type is interface{} with range: 0..65535.
ChipVersion interface{}
// Statistics.
Statistics Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId_Statistics
}
func (asicStatisticsForNpuId *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId) GetEntityData() *types.CommonEntityData {
asicStatisticsForNpuId.EntityData.YFilter = asicStatisticsForNpuId.YFilter
asicStatisticsForNpuId.EntityData.YangName = "asic-statistics-for-npu-id"
asicStatisticsForNpuId.EntityData.BundleName = "cisco_ios_xr"
asicStatisticsForNpuId.EntityData.ParentYangName = "asic-statistics-for-npu-ids"
asicStatisticsForNpuId.EntityData.SegmentPath = "asic-statistics-for-npu-id" + types.AddKeyToken(asicStatisticsForNpuId.NpuId, "npu-id")
asicStatisticsForNpuId.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/asic-statistics-for-npu-ids/" + asicStatisticsForNpuId.EntityData.SegmentPath
asicStatisticsForNpuId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
asicStatisticsForNpuId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
asicStatisticsForNpuId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
asicStatisticsForNpuId.EntityData.Children = types.NewOrderedMap()
asicStatisticsForNpuId.EntityData.Children.Append("statistics", types.YChild{"Statistics", &asicStatisticsForNpuId.Statistics})
asicStatisticsForNpuId.EntityData.Leafs = types.NewOrderedMap()
asicStatisticsForNpuId.EntityData.Leafs.Append("npu-id", types.YLeaf{"NpuId", asicStatisticsForNpuId.NpuId})
asicStatisticsForNpuId.EntityData.Leafs.Append("valid", types.YLeaf{"Valid", asicStatisticsForNpuId.Valid})
asicStatisticsForNpuId.EntityData.Leafs.Append("rack-number", types.YLeaf{"RackNumber", asicStatisticsForNpuId.RackNumber})
asicStatisticsForNpuId.EntityData.Leafs.Append("slot-number", types.YLeaf{"SlotNumber", asicStatisticsForNpuId.SlotNumber})
asicStatisticsForNpuId.EntityData.Leafs.Append("asic-instance", types.YLeaf{"AsicInstance", asicStatisticsForNpuId.AsicInstance})
asicStatisticsForNpuId.EntityData.Leafs.Append("chip-version", types.YLeaf{"ChipVersion", asicStatisticsForNpuId.ChipVersion})
asicStatisticsForNpuId.EntityData.YListKeys = []string {"NpuId"}
return &(asicStatisticsForNpuId.EntityData)
}
// Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId_Statistics
// Statistics
type Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId_Statistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Total bytes sent from NIF to IRE. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
NbiRxTotalByteCnt interface{}
// Total packets sent from NIF to IRE. The type is interface{} with range:
// 0..18446744073709551615.
NbiRxTotalPktCnt interface{}
// CPU ingress received packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IreCpuPktCnt interface{}
// NIF received packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IreNifPktCnt interface{}
// OAMP ingress received packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IreOampPktCnt interface{}
// OLP ingress received packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IreOlpPktCnt interface{}
// Recycling ingress received packet counter. The type is interface{} with
// range: 0..18446744073709551615.
IreRcyPktCnt interface{}
// Performance counter of the FDT interface. The type is interface{} with
// range: 0..18446744073709551615.
IreFdtIfCnt interface{}
// Performance counter of the MMU interface. The type is interface{} with
// range: 0..18446744073709551615.
IdrMmuIfCnt interface{}
// Performance counter of the OCB interface. The type is interface{} with
// range: 0..18446744073709551615.
IdrOcbIfCnt interface{}
// Counts enqueued packets. The type is interface{} with range:
// 0..18446744073709551615.
IqmEnqueuePktCnt interface{}
// Counts dequeued packets. The type is interface{} with range:
// 0..18446744073709551615.
IqmDequeuePktCnt interface{}
// Counts matched packets discarded in the DEQ process. The type is
// interface{} with range: 0..18446744073709551615.
IqmDeletedPktCnt interface{}
// Counts all packets discarded at the ENQ pipe. The type is interface{} with
// range: 0..18446744073709551615.
IqmEnqDiscardedPktCnt interface{}
// EGQ packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IptEgqPktCnt interface{}
// ENQ packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IptEnqPktCnt interface{}
// FDT packet counter. The type is interface{} with range:
// 0..18446744073709551615.
IptFdtPktCnt interface{}
// Configurable event counter. The type is interface{} with range:
// 0..18446744073709551615.
IptCfgEventCnt interface{}
// Configurable bytes counter. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
IptCfgByteCnt interface{}
// Descriptor cell counter. The type is interface{} with range:
// 0..18446744073709551615.
FdtIptDescCellCnt interface{}
// IRE internal descriptor cell counter. The type is interface{} with range:
// 0..18446744073709551615.
FdtIreDescCellCnt interface{}
// Counts all transmitted data cells. The type is interface{} with range:
// 0..18446744073709551615.
FdtTransmittedDataCellsCnt interface{}
// FDR total incoming cell counter at pipe 1. The type is interface{} with
// range: 0..18446744073709551615.
FdrP1CellInCnt interface{}
// FDR total incoming cell counter at pipe 2. The type is interface{} with
// range: 0..18446744073709551615.
FdrP2CellInCnt interface{}
// FDR total incoming cell counter at pipe 3. The type is interface{} with
// range: 0..18446744073709551615.
FdrP3CellInCnt interface{}
// FDR total incoming cell counter. The type is interface{} with range:
// 0..18446744073709551615.
FdrCellInCntTotal interface{}
// FDA input cell counter P1. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsInCntP1 interface{}
// FDA input cell counter P2. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsInCntP2 interface{}
// FDA input cell counter P3. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsInCntP3 interface{}
// FDA input cell counter TDM. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsInTdmCnt interface{}
// FDA input cell counter MESHMC. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsInMeshmcCnt interface{}
// FDA input cell counter IPT. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsInIptCnt interface{}
// FDA output cell counter P1. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsOutCntP1 interface{}
// FDA output cell counter P2. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsOutCntP2 interface{}
// FDA output cell counter P3. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsOutCntP3 interface{}
// FDA output cell counter TDM. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsOutTdmCnt interface{}
// FDA output cell counter MESHMC. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsOutMeshmcCnt interface{}
// FDA output cell counter IPT. The type is interface{} with range:
// 0..18446744073709551615.
FdaCellsOutIptCnt interface{}
// FDA EGQ drop counter. The type is interface{} with range:
// 0..18446744073709551615.
FdaEgqDropCnt interface{}
// FDA EGQ MESHMC drop counter. The type is interface{} with range:
// 0..18446744073709551615.
FdaEgqMeshmcDropCnt interface{}
// FQP2EPE packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqFqpPktCnt interface{}
// PQP2FQP unicast packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqPqpUcPktCnt interface{}
// PQP discarded unicast packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqPqpDiscardUcPktCnt interface{}
// PQP2FQP unicast bytes counter. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
EgqPqpUcBytesCnt interface{}
// PQP2FQP multicast packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqPqpMcPktCnt interface{}
// PQP discarded multicast packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqPqpDiscardMcPktCnt interface{}
// PQP2FQP multicast bytes counter. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
EgqPqpMcBytesCnt interface{}
// EHP2PQP unicast packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqEhpUcPktCnt interface{}
// EHP2PQP multicast high packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqEhpMcHighPktCnt interface{}
// EHP2PQP multicast low packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqEhpMcLowPktCnt interface{}
// EHP2PQP discarded packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EgqDeletedPktCnt interface{}
// Number of multicast high packets discarded because multicast FIFO is full.
// The type is interface{} with range: 0..18446744073709551615.
EgqEhpMcHighDiscardCnt interface{}
// Number of multicast low packets discarded because multicast FIFO is full.
// The type is interface{} with range: 0..18446744073709551615.
EgqEhpMcLowDiscardCnt interface{}
// Number of packet descriptors discarded due to LAG multicast pruning. The
// type is interface{} with range: 0..18446744073709551615.
EgqErppLagPruningDiscardCnt interface{}
// Number of packet descriptors discarded due to ERPP PMF. The type is
// interface{} with range: 0..18446744073709551615.
EgqErppPmfDiscardCnt interface{}
// Number of packet descriptors discarded because of egress VLAN membership.
// The type is interface{} with range: 0..18446744073709551615.
EgqErppVlanMbrDiscardCnt interface{}
// EPE2PNI bytes counter. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
EpniEpeByteCnt interface{}
// EPE2PNI packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EpniEpePktCnt interface{}
// EPE discarded packet counter. The type is interface{} with range:
// 0..18446744073709551615.
EpniEpeDiscardCnt interface{}
// Total bytes sent from EGQ to NIF. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
NbiTxTotalByteCnt interface{}
// Total packets sent from EGQ to NIF. The type is interface{} with range:
// 0..18446744073709551615.
NbiTxTotalPktCnt interface{}
}
func (statistics *Dpa_Stats_Nodes_Node_AsicStatistics_AsicStatisticsForNpuIds_AsicStatisticsForNpuId_Statistics) GetEntityData() *types.CommonEntityData {
statistics.EntityData.YFilter = statistics.YFilter
statistics.EntityData.YangName = "statistics"
statistics.EntityData.BundleName = "cisco_ios_xr"
statistics.EntityData.ParentYangName = "asic-statistics-for-npu-id"
statistics.EntityData.SegmentPath = "statistics"
statistics.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/asic-statistics/asic-statistics-for-npu-ids/asic-statistics-for-npu-id/" + statistics.EntityData.SegmentPath
statistics.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
statistics.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
statistics.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
statistics.EntityData.Children = types.NewOrderedMap()
statistics.EntityData.Leafs = types.NewOrderedMap()
statistics.EntityData.Leafs.Append("nbi-rx-total-byte-cnt", types.YLeaf{"NbiRxTotalByteCnt", statistics.NbiRxTotalByteCnt})
statistics.EntityData.Leafs.Append("nbi-rx-total-pkt-cnt", types.YLeaf{"NbiRxTotalPktCnt", statistics.NbiRxTotalPktCnt})
statistics.EntityData.Leafs.Append("ire-cpu-pkt-cnt", types.YLeaf{"IreCpuPktCnt", statistics.IreCpuPktCnt})
statistics.EntityData.Leafs.Append("ire-nif-pkt-cnt", types.YLeaf{"IreNifPktCnt", statistics.IreNifPktCnt})
statistics.EntityData.Leafs.Append("ire-oamp-pkt-cnt", types.YLeaf{"IreOampPktCnt", statistics.IreOampPktCnt})
statistics.EntityData.Leafs.Append("ire-olp-pkt-cnt", types.YLeaf{"IreOlpPktCnt", statistics.IreOlpPktCnt})
statistics.EntityData.Leafs.Append("ire-rcy-pkt-cnt", types.YLeaf{"IreRcyPktCnt", statistics.IreRcyPktCnt})
statistics.EntityData.Leafs.Append("ire-fdt-if-cnt", types.YLeaf{"IreFdtIfCnt", statistics.IreFdtIfCnt})
statistics.EntityData.Leafs.Append("idr-mmu-if-cnt", types.YLeaf{"IdrMmuIfCnt", statistics.IdrMmuIfCnt})
statistics.EntityData.Leafs.Append("idr-ocb-if-cnt", types.YLeaf{"IdrOcbIfCnt", statistics.IdrOcbIfCnt})
statistics.EntityData.Leafs.Append("iqm-enqueue-pkt-cnt", types.YLeaf{"IqmEnqueuePktCnt", statistics.IqmEnqueuePktCnt})
statistics.EntityData.Leafs.Append("iqm-dequeue-pkt-cnt", types.YLeaf{"IqmDequeuePktCnt", statistics.IqmDequeuePktCnt})
statistics.EntityData.Leafs.Append("iqm-deleted-pkt-cnt", types.YLeaf{"IqmDeletedPktCnt", statistics.IqmDeletedPktCnt})
statistics.EntityData.Leafs.Append("iqm-enq-discarded-pkt-cnt", types.YLeaf{"IqmEnqDiscardedPktCnt", statistics.IqmEnqDiscardedPktCnt})
statistics.EntityData.Leafs.Append("ipt-egq-pkt-cnt", types.YLeaf{"IptEgqPktCnt", statistics.IptEgqPktCnt})
statistics.EntityData.Leafs.Append("ipt-enq-pkt-cnt", types.YLeaf{"IptEnqPktCnt", statistics.IptEnqPktCnt})
statistics.EntityData.Leafs.Append("ipt-fdt-pkt-cnt", types.YLeaf{"IptFdtPktCnt", statistics.IptFdtPktCnt})
statistics.EntityData.Leafs.Append("ipt-cfg-event-cnt", types.YLeaf{"IptCfgEventCnt", statistics.IptCfgEventCnt})
statistics.EntityData.Leafs.Append("ipt-cfg-byte-cnt", types.YLeaf{"IptCfgByteCnt", statistics.IptCfgByteCnt})
statistics.EntityData.Leafs.Append("fdt-ipt-desc-cell-cnt", types.YLeaf{"FdtIptDescCellCnt", statistics.FdtIptDescCellCnt})
statistics.EntityData.Leafs.Append("fdt-ire-desc-cell-cnt", types.YLeaf{"FdtIreDescCellCnt", statistics.FdtIreDescCellCnt})
statistics.EntityData.Leafs.Append("fdt-transmitted-data-cells-cnt", types.YLeaf{"FdtTransmittedDataCellsCnt", statistics.FdtTransmittedDataCellsCnt})
statistics.EntityData.Leafs.Append("fdr-p1-cell-in-cnt", types.YLeaf{"FdrP1CellInCnt", statistics.FdrP1CellInCnt})
statistics.EntityData.Leafs.Append("fdr-p2-cell-in-cnt", types.YLeaf{"FdrP2CellInCnt", statistics.FdrP2CellInCnt})
statistics.EntityData.Leafs.Append("fdr-p3-cell-in-cnt", types.YLeaf{"FdrP3CellInCnt", statistics.FdrP3CellInCnt})
statistics.EntityData.Leafs.Append("fdr-cell-in-cnt-total", types.YLeaf{"FdrCellInCntTotal", statistics.FdrCellInCntTotal})
statistics.EntityData.Leafs.Append("fda-cells-in-cnt-p1", types.YLeaf{"FdaCellsInCntP1", statistics.FdaCellsInCntP1})
statistics.EntityData.Leafs.Append("fda-cells-in-cnt-p2", types.YLeaf{"FdaCellsInCntP2", statistics.FdaCellsInCntP2})
statistics.EntityData.Leafs.Append("fda-cells-in-cnt-p3", types.YLeaf{"FdaCellsInCntP3", statistics.FdaCellsInCntP3})
statistics.EntityData.Leafs.Append("fda-cells-in-tdm-cnt", types.YLeaf{"FdaCellsInTdmCnt", statistics.FdaCellsInTdmCnt})
statistics.EntityData.Leafs.Append("fda-cells-in-meshmc-cnt", types.YLeaf{"FdaCellsInMeshmcCnt", statistics.FdaCellsInMeshmcCnt})
statistics.EntityData.Leafs.Append("fda-cells-in-ipt-cnt", types.YLeaf{"FdaCellsInIptCnt", statistics.FdaCellsInIptCnt})
statistics.EntityData.Leafs.Append("fda-cells-out-cnt-p1", types.YLeaf{"FdaCellsOutCntP1", statistics.FdaCellsOutCntP1})
statistics.EntityData.Leafs.Append("fda-cells-out-cnt-p2", types.YLeaf{"FdaCellsOutCntP2", statistics.FdaCellsOutCntP2})
statistics.EntityData.Leafs.Append("fda-cells-out-cnt-p3", types.YLeaf{"FdaCellsOutCntP3", statistics.FdaCellsOutCntP3})
statistics.EntityData.Leafs.Append("fda-cells-out-tdm-cnt", types.YLeaf{"FdaCellsOutTdmCnt", statistics.FdaCellsOutTdmCnt})
statistics.EntityData.Leafs.Append("fda-cells-out-meshmc-cnt", types.YLeaf{"FdaCellsOutMeshmcCnt", statistics.FdaCellsOutMeshmcCnt})
statistics.EntityData.Leafs.Append("fda-cells-out-ipt-cnt", types.YLeaf{"FdaCellsOutIptCnt", statistics.FdaCellsOutIptCnt})
statistics.EntityData.Leafs.Append("fda-egq-drop-cnt", types.YLeaf{"FdaEgqDropCnt", statistics.FdaEgqDropCnt})
statistics.EntityData.Leafs.Append("fda-egq-meshmc-drop-cnt", types.YLeaf{"FdaEgqMeshmcDropCnt", statistics.FdaEgqMeshmcDropCnt})
statistics.EntityData.Leafs.Append("egq-fqp-pkt-cnt", types.YLeaf{"EgqFqpPktCnt", statistics.EgqFqpPktCnt})
statistics.EntityData.Leafs.Append("egq-pqp-uc-pkt-cnt", types.YLeaf{"EgqPqpUcPktCnt", statistics.EgqPqpUcPktCnt})
statistics.EntityData.Leafs.Append("egq-pqp-discard-uc-pkt-cnt", types.YLeaf{"EgqPqpDiscardUcPktCnt", statistics.EgqPqpDiscardUcPktCnt})
statistics.EntityData.Leafs.Append("egq-pqp-uc-bytes-cnt", types.YLeaf{"EgqPqpUcBytesCnt", statistics.EgqPqpUcBytesCnt})
statistics.EntityData.Leafs.Append("egq-pqp-mc-pkt-cnt", types.YLeaf{"EgqPqpMcPktCnt", statistics.EgqPqpMcPktCnt})
statistics.EntityData.Leafs.Append("egq-pqp-discard-mc-pkt-cnt", types.YLeaf{"EgqPqpDiscardMcPktCnt", statistics.EgqPqpDiscardMcPktCnt})
statistics.EntityData.Leafs.Append("egq-pqp-mc-bytes-cnt", types.YLeaf{"EgqPqpMcBytesCnt", statistics.EgqPqpMcBytesCnt})
statistics.EntityData.Leafs.Append("egq-ehp-uc-pkt-cnt", types.YLeaf{"EgqEhpUcPktCnt", statistics.EgqEhpUcPktCnt})
statistics.EntityData.Leafs.Append("egq-ehp-mc-high-pkt-cnt", types.YLeaf{"EgqEhpMcHighPktCnt", statistics.EgqEhpMcHighPktCnt})
statistics.EntityData.Leafs.Append("egq-ehp-mc-low-pkt-cnt", types.YLeaf{"EgqEhpMcLowPktCnt", statistics.EgqEhpMcLowPktCnt})
statistics.EntityData.Leafs.Append("egq-deleted-pkt-cnt", types.YLeaf{"EgqDeletedPktCnt", statistics.EgqDeletedPktCnt})
statistics.EntityData.Leafs.Append("egq-ehp-mc-high-discard-cnt", types.YLeaf{"EgqEhpMcHighDiscardCnt", statistics.EgqEhpMcHighDiscardCnt})
statistics.EntityData.Leafs.Append("egq-ehp-mc-low-discard-cnt", types.YLeaf{"EgqEhpMcLowDiscardCnt", statistics.EgqEhpMcLowDiscardCnt})
statistics.EntityData.Leafs.Append("egq-erpp-lag-pruning-discard-cnt", types.YLeaf{"EgqErppLagPruningDiscardCnt", statistics.EgqErppLagPruningDiscardCnt})
statistics.EntityData.Leafs.Append("egq-erpp-pmf-discard-cnt", types.YLeaf{"EgqErppPmfDiscardCnt", statistics.EgqErppPmfDiscardCnt})
statistics.EntityData.Leafs.Append("egq-erpp-vlan-mbr-discard-cnt", types.YLeaf{"EgqErppVlanMbrDiscardCnt", statistics.EgqErppVlanMbrDiscardCnt})
statistics.EntityData.Leafs.Append("epni-epe-byte-cnt", types.YLeaf{"EpniEpeByteCnt", statistics.EpniEpeByteCnt})
statistics.EntityData.Leafs.Append("epni-epe-pkt-cnt", types.YLeaf{"EpniEpePktCnt", statistics.EpniEpePktCnt})
statistics.EntityData.Leafs.Append("epni-epe-discard-cnt", types.YLeaf{"EpniEpeDiscardCnt", statistics.EpniEpeDiscardCnt})
statistics.EntityData.Leafs.Append("nbi-tx-total-byte-cnt", types.YLeaf{"NbiTxTotalByteCnt", statistics.NbiTxTotalByteCnt})
statistics.EntityData.Leafs.Append("nbi-tx-total-pkt-cnt", types.YLeaf{"NbiTxTotalPktCnt", statistics.NbiTxTotalPktCnt})
statistics.EntityData.YListKeys = []string {}
return &(statistics.EntityData)
}
// Dpa_Stats_Nodes_Node_NpuNumbers
// Ingress Stats
type Dpa_Stats_Nodes_Node_NpuNumbers struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Stats for a particular npu. The type is slice of
// Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber.
NpuNumber []*Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber
}
func (npuNumbers *Dpa_Stats_Nodes_Node_NpuNumbers) GetEntityData() *types.CommonEntityData {
npuNumbers.EntityData.YFilter = npuNumbers.YFilter
npuNumbers.EntityData.YangName = "npu-numbers"
npuNumbers.EntityData.BundleName = "cisco_ios_xr"
npuNumbers.EntityData.ParentYangName = "node"
npuNumbers.EntityData.SegmentPath = "npu-numbers"
npuNumbers.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/" + npuNumbers.EntityData.SegmentPath
npuNumbers.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
npuNumbers.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
npuNumbers.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
npuNumbers.EntityData.Children = types.NewOrderedMap()
npuNumbers.EntityData.Children.Append("npu-number", types.YChild{"NpuNumber", nil})
for i := range npuNumbers.NpuNumber {
npuNumbers.EntityData.Children.Append(types.GetSegmentPath(npuNumbers.NpuNumber[i]), types.YChild{"NpuNumber", npuNumbers.NpuNumber[i]})
}
npuNumbers.EntityData.Leafs = types.NewOrderedMap()
npuNumbers.EntityData.YListKeys = []string {}
return &(npuNumbers.EntityData)
}
// Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber
// Stats for a particular npu
type Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Npu number. The type is interface{} with range:
// 0..4294967295.
NpuId interface{}
// show npu specific voq or trap stats.
Display Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display
}
func (npuNumber *Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber) GetEntityData() *types.CommonEntityData {
npuNumber.EntityData.YFilter = npuNumber.YFilter
npuNumber.EntityData.YangName = "npu-number"
npuNumber.EntityData.BundleName = "cisco_ios_xr"
npuNumber.EntityData.ParentYangName = "npu-numbers"
npuNumber.EntityData.SegmentPath = "npu-number" + types.AddKeyToken(npuNumber.NpuId, "npu-id")
npuNumber.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/npu-numbers/" + npuNumber.EntityData.SegmentPath
npuNumber.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
npuNumber.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
npuNumber.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
npuNumber.EntityData.Children = types.NewOrderedMap()
npuNumber.EntityData.Children.Append("display", types.YChild{"Display", &npuNumber.Display})
npuNumber.EntityData.Leafs = types.NewOrderedMap()
npuNumber.EntityData.Leafs.Append("npu-id", types.YLeaf{"NpuId", npuNumber.NpuId})
npuNumber.EntityData.YListKeys = []string {"NpuId"}
return &(npuNumber.EntityData)
}
// Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display
// show npu specific voq or trap stats
type Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Trap stats for a particular npu.
TrapIds Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_TrapIds
// Voq stats grouped by interface handle.
InterfaceHandles Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_InterfaceHandles
// Voq stats grouped by voq base numbers.
BaseNumbers Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_BaseNumbers
}
func (display *Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display) GetEntityData() *types.CommonEntityData {
display.EntityData.YFilter = display.YFilter
display.EntityData.YangName = "display"
display.EntityData.BundleName = "cisco_ios_xr"
display.EntityData.ParentYangName = "npu-number"
display.EntityData.SegmentPath = "display"
display.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/npu-numbers/npu-number/" + display.EntityData.SegmentPath
display.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
display.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
display.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
display.EntityData.Children = types.NewOrderedMap()
display.EntityData.Children.Append("trap-ids", types.YChild{"TrapIds", &display.TrapIds})
display.EntityData.Children.Append("interface-handles", types.YChild{"InterfaceHandles", &display.InterfaceHandles})
display.EntityData.Children.Append("base-numbers", types.YChild{"BaseNumbers", &display.BaseNumbers})
display.EntityData.Leafs = types.NewOrderedMap()
display.EntityData.YListKeys = []string {}
return &(display.EntityData)
}
// Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_TrapIds
// Trap stats for a particular npu
type Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_TrapIds struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Filter by specific trap id. The type is slice of
// Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_TrapIds_TrapId.
TrapId []*Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_TrapIds_TrapId
}
func (trapIds *Dpa_Stats_Nodes_Node_NpuNumbers_NpuNumber_Display_TrapIds) GetEntityData() *types.CommonEntityData {
trapIds.EntityData.YFilter = trapIds.YFilter
trapIds.EntityData.YangName = "trap-ids"
trapIds.EntityData.BundleName = "cisco_ios_xr"
trapIds.EntityData.ParentYangName = "display"
trapIds.EntityData.SegmentPath = "trap-ids"
trapIds.EntityData.AbsolutePath = "Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa/stats/nodes/node/npu-numbers/npu-number/display/" + trapIds.EntityData.SegmentPath
trapIds.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trapIds.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trapIds.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trapIds.EntityData.Children = types.NewOrderedMap()
trapIds.EntityData.Children.Append("trap-id", types.YChild{"TrapId", nil})