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
/
prm_server_oper.go
773 lines (622 loc) · 31.3 KB
/
prm_server_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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR prm-server package operational data.
//
// This module contains definitions
// for the following management objects:
// hardware-module: PRM data
// prm: prm
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package prm_server_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 prm_server_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-prm-server-oper hardware-module}", reflect.TypeOf(HardwareModule{}))
ydk.RegisterEntity("Cisco-IOS-XR-prm-server-oper:hardware-module", reflect.TypeOf(HardwareModule{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-prm-server-oper prm}", reflect.TypeOf(Prm{}))
ydk.RegisterEntity("Cisco-IOS-XR-prm-server-oper:prm", reflect.TypeOf(Prm{}))
}
// HardwareModule
// PRM data
type HardwareModule struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of PRM Nodes.
Nodes HardwareModule_Nodes
}
func (hardwareModule *HardwareModule) GetEntityData() *types.CommonEntityData {
hardwareModule.EntityData.YFilter = hardwareModule.YFilter
hardwareModule.EntityData.YangName = "hardware-module"
hardwareModule.EntityData.BundleName = "cisco_ios_xr"
hardwareModule.EntityData.ParentYangName = "Cisco-IOS-XR-prm-server-oper"
hardwareModule.EntityData.SegmentPath = "Cisco-IOS-XR-prm-server-oper:hardware-module"
hardwareModule.EntityData.AbsolutePath = hardwareModule.EntityData.SegmentPath
hardwareModule.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hardwareModule.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hardwareModule.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hardwareModule.EntityData.Children = types.NewOrderedMap()
hardwareModule.EntityData.Children.Append("nodes", types.YChild{"Nodes", &hardwareModule.Nodes})
hardwareModule.EntityData.Leafs = types.NewOrderedMap()
hardwareModule.EntityData.YListKeys = []string {}
return &(hardwareModule.EntityData)
}
// HardwareModule_Nodes
// List of PRM Nodes
type HardwareModule_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Node Information. The type is slice of HardwareModule_Nodes_Node.
Node []*HardwareModule_Nodes_Node
}
func (nodes *HardwareModule_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "hardware-module"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/" + 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)
}
// HardwareModule_Nodes_Node
// Node Information
type HardwareModule_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The node name. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Server specific.
Np HardwareModule_Nodes_Node_Np
}
func (node *HardwareModule_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-prm-server-oper:hardware-module/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("np", types.YChild{"Np", &node.Np})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// HardwareModule_Nodes_Node_Np
// Server specific
type HardwareModule_Nodes_Node_Np struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Resource specific.
Cpu HardwareModule_Nodes_Node_Np_Cpu
// Platform drops.
PlatformDrop HardwareModule_Nodes_Node_Np_PlatformDrop
}
func (np *HardwareModule_Nodes_Node_Np) GetEntityData() *types.CommonEntityData {
np.EntityData.YFilter = np.YFilter
np.EntityData.YangName = "np"
np.EntityData.BundleName = "cisco_ios_xr"
np.EntityData.ParentYangName = "node"
np.EntityData.SegmentPath = "np"
np.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/" + np.EntityData.SegmentPath
np.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
np.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
np.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
np.EntityData.Children = types.NewOrderedMap()
np.EntityData.Children.Append("cpu", types.YChild{"Cpu", &np.Cpu})
np.EntityData.Children.Append("platform-drop", types.YChild{"PlatformDrop", &np.PlatformDrop})
np.EntityData.Leafs = types.NewOrderedMap()
np.EntityData.YListKeys = []string {}
return &(np.EntityData)
}
// HardwareModule_Nodes_Node_Np_Cpu
// Resource specific
type HardwareModule_Nodes_Node_Np_Cpu struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Data for software resource.
Indexes HardwareModule_Nodes_Node_Np_Cpu_Indexes
}
func (cpu *HardwareModule_Nodes_Node_Np_Cpu) GetEntityData() *types.CommonEntityData {
cpu.EntityData.YFilter = cpu.YFilter
cpu.EntityData.YangName = "cpu"
cpu.EntityData.BundleName = "cisco_ios_xr"
cpu.EntityData.ParentYangName = "np"
cpu.EntityData.SegmentPath = "cpu"
cpu.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/" + cpu.EntityData.SegmentPath
cpu.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
cpu.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
cpu.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
cpu.EntityData.Children = types.NewOrderedMap()
cpu.EntityData.Children.Append("indexes", types.YChild{"Indexes", &cpu.Indexes})
cpu.EntityData.Leafs = types.NewOrderedMap()
cpu.EntityData.YListKeys = []string {}
return &(cpu.EntityData)
}
// HardwareModule_Nodes_Node_Np_Cpu_Indexes
// Data for software resource
type HardwareModule_Nodes_Node_Np_Cpu_Indexes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Queue Stats. The type is slice of
// HardwareModule_Nodes_Node_Np_Cpu_Indexes_Index.
Index []*HardwareModule_Nodes_Node_Np_Cpu_Indexes_Index
}
func (indexes *HardwareModule_Nodes_Node_Np_Cpu_Indexes) GetEntityData() *types.CommonEntityData {
indexes.EntityData.YFilter = indexes.YFilter
indexes.EntityData.YangName = "indexes"
indexes.EntityData.BundleName = "cisco_ios_xr"
indexes.EntityData.ParentYangName = "cpu"
indexes.EntityData.SegmentPath = "indexes"
indexes.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/cpu/" + indexes.EntityData.SegmentPath
indexes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
indexes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
indexes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
indexes.EntityData.Children = types.NewOrderedMap()
indexes.EntityData.Children.Append("index", types.YChild{"Index", nil})
for i := range indexes.Index {
indexes.EntityData.Children.Append(types.GetSegmentPath(indexes.Index[i]), types.YChild{"Index", indexes.Index[i]})
}
indexes.EntityData.Leafs = types.NewOrderedMap()
indexes.EntityData.YListKeys = []string {}
return &(indexes.EntityData)
}
// HardwareModule_Nodes_Node_Np_Cpu_Indexes_Index
// Queue Stats
type HardwareModule_Nodes_Node_Np_Cpu_Indexes_Index struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Index value. The type is interface{} with range:
// 0..4294967295.
Index interface{}
// CosQ Name. The type is string with length: 0..1024.
CosQName interface{}
// CosQ No. The type is interface{} with range: 0..255.
CosQ interface{}
// Rx DMA Channel. The type is interface{} with range: 0..4294967295.
RxChannel interface{}
// Flow Rate. The type is interface{} with range: 0..4294967295.
FlowRate interface{}
// Burst. The type is interface{} with range: 0..4294967295.
Burst interface{}
// Accepted. The type is interface{} with range: 0..18446744073709551615.
Accepted interface{}
// Dropped. The type is interface{} with range: 0..18446744073709551615.
Dropped interface{}
}
func (index *HardwareModule_Nodes_Node_Np_Cpu_Indexes_Index) GetEntityData() *types.CommonEntityData {
index.EntityData.YFilter = index.YFilter
index.EntityData.YangName = "index"
index.EntityData.BundleName = "cisco_ios_xr"
index.EntityData.ParentYangName = "indexes"
index.EntityData.SegmentPath = "index" + types.AddKeyToken(index.Index, "index")
index.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/cpu/indexes/" + index.EntityData.SegmentPath
index.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
index.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
index.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
index.EntityData.Children = types.NewOrderedMap()
index.EntityData.Leafs = types.NewOrderedMap()
index.EntityData.Leafs.Append("index", types.YLeaf{"Index", index.Index})
index.EntityData.Leafs.Append("cos-q-name", types.YLeaf{"CosQName", index.CosQName})
index.EntityData.Leafs.Append("cos-q", types.YLeaf{"CosQ", index.CosQ})
index.EntityData.Leafs.Append("rx-channel", types.YLeaf{"RxChannel", index.RxChannel})
index.EntityData.Leafs.Append("flow-rate", types.YLeaf{"FlowRate", index.FlowRate})
index.EntityData.Leafs.Append("burst", types.YLeaf{"Burst", index.Burst})
index.EntityData.Leafs.Append("accepted", types.YLeaf{"Accepted", index.Accepted})
index.EntityData.Leafs.Append("dropped", types.YLeaf{"Dropped", index.Dropped})
index.EntityData.YListKeys = []string {"Index"}
return &(index.EntityData)
}
// HardwareModule_Nodes_Node_Np_PlatformDrop
// Platform drops
type HardwareModule_Nodes_Node_Np_PlatformDrop struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Captured Packets.
Indxes HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes
// Stats for Drop packets.
Idxes HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes
}
func (platformDrop *HardwareModule_Nodes_Node_Np_PlatformDrop) GetEntityData() *types.CommonEntityData {
platformDrop.EntityData.YFilter = platformDrop.YFilter
platformDrop.EntityData.YangName = "platform-drop"
platformDrop.EntityData.BundleName = "cisco_ios_xr"
platformDrop.EntityData.ParentYangName = "np"
platformDrop.EntityData.SegmentPath = "platform-drop"
platformDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/" + platformDrop.EntityData.SegmentPath
platformDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
platformDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
platformDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
platformDrop.EntityData.Children = types.NewOrderedMap()
platformDrop.EntityData.Children.Append("indxes", types.YChild{"Indxes", &platformDrop.Indxes})
platformDrop.EntityData.Children.Append("idxes", types.YChild{"Idxes", &platformDrop.Idxes})
platformDrop.EntityData.Leafs = types.NewOrderedMap()
platformDrop.EntityData.YListKeys = []string {}
return &(platformDrop.EntityData)
}
// HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes
// Captured Packets
type HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Captured packets. The type is slice of
// HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes_Indx.
Indx []*HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes_Indx
}
func (indxes *HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes) GetEntityData() *types.CommonEntityData {
indxes.EntityData.YFilter = indxes.YFilter
indxes.EntityData.YangName = "indxes"
indxes.EntityData.BundleName = "cisco_ios_xr"
indxes.EntityData.ParentYangName = "platform-drop"
indxes.EntityData.SegmentPath = "indxes"
indxes.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/platform-drop/" + indxes.EntityData.SegmentPath
indxes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
indxes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
indxes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
indxes.EntityData.Children = types.NewOrderedMap()
indxes.EntityData.Children.Append("indx", types.YChild{"Indx", nil})
for i := range indxes.Indx {
indxes.EntityData.Children.Append(types.GetSegmentPath(indxes.Indx[i]), types.YChild{"Indx", indxes.Indx[i]})
}
indxes.EntityData.Leafs = types.NewOrderedMap()
indxes.EntityData.YListKeys = []string {}
return &(indxes.EntityData)
}
// HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes_Indx
// Captured packets
type HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes_Indx struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Index value. The type is interface{} with range:
// 0..4294967295.
Index interface{}
// Total packets Captured. The type is interface{} with range: 0..4294967295.
TotalCaptured interface{}
// Captured Packet. The type is string with length: 0..1024.
CapturedPak interface{}
// Packet Index. The type is interface{} with range: 0..255.
PktIndex interface{}
// If Handle. The type is interface{} with range: 0..4294967295.
Ifhandle interface{}
// Buffer Length. The type is interface{} with range: 0..4294967295.
BufferLen interface{}
// Reason Hi. The type is interface{} with range: 0..4294967295.
ReasonHi interface{}
// Reason. The type is interface{} with range: 0..4294967295.
Reason interface{}
// Year. The type is interface{} with range: 0..18446744073709551615.
Years interface{}
// Hours. The type is interface{} with range: 0..18446744073709551615. Units
// are hour.
Hours interface{}
// Days. The type is interface{} with range: 0..18446744073709551615. Units
// are day.
Days interface{}
// Minutes. The type is interface{} with range: 0..18446744073709551615. Units
// are minute.
Mins interface{}
// Seconds. The type is interface{} with range: 0..18446744073709551615. Units
// are second.
Secs interface{}
}
func (indx *HardwareModule_Nodes_Node_Np_PlatformDrop_Indxes_Indx) GetEntityData() *types.CommonEntityData {
indx.EntityData.YFilter = indx.YFilter
indx.EntityData.YangName = "indx"
indx.EntityData.BundleName = "cisco_ios_xr"
indx.EntityData.ParentYangName = "indxes"
indx.EntityData.SegmentPath = "indx" + types.AddKeyToken(indx.Index, "index")
indx.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/platform-drop/indxes/" + indx.EntityData.SegmentPath
indx.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
indx.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
indx.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
indx.EntityData.Children = types.NewOrderedMap()
indx.EntityData.Leafs = types.NewOrderedMap()
indx.EntityData.Leafs.Append("index", types.YLeaf{"Index", indx.Index})
indx.EntityData.Leafs.Append("total-captured", types.YLeaf{"TotalCaptured", indx.TotalCaptured})
indx.EntityData.Leafs.Append("captured-pak", types.YLeaf{"CapturedPak", indx.CapturedPak})
indx.EntityData.Leafs.Append("pkt-index", types.YLeaf{"PktIndex", indx.PktIndex})
indx.EntityData.Leafs.Append("ifhandle", types.YLeaf{"Ifhandle", indx.Ifhandle})
indx.EntityData.Leafs.Append("buffer-len", types.YLeaf{"BufferLen", indx.BufferLen})
indx.EntityData.Leafs.Append("reason-hi", types.YLeaf{"ReasonHi", indx.ReasonHi})
indx.EntityData.Leafs.Append("reason", types.YLeaf{"Reason", indx.Reason})
indx.EntityData.Leafs.Append("years", types.YLeaf{"Years", indx.Years})
indx.EntityData.Leafs.Append("hours", types.YLeaf{"Hours", indx.Hours})
indx.EntityData.Leafs.Append("days", types.YLeaf{"Days", indx.Days})
indx.EntityData.Leafs.Append("mins", types.YLeaf{"Mins", indx.Mins})
indx.EntityData.Leafs.Append("secs", types.YLeaf{"Secs", indx.Secs})
indx.EntityData.YListKeys = []string {"Index"}
return &(indx.EntityData)
}
// HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes
// Stats for Drop packets
type HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Drop Stats. The type is slice of
// HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes_Idx.
Idx []*HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes_Idx
}
func (idxes *HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes) GetEntityData() *types.CommonEntityData {
idxes.EntityData.YFilter = idxes.YFilter
idxes.EntityData.YangName = "idxes"
idxes.EntityData.BundleName = "cisco_ios_xr"
idxes.EntityData.ParentYangName = "platform-drop"
idxes.EntityData.SegmentPath = "idxes"
idxes.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/platform-drop/" + idxes.EntityData.SegmentPath
idxes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
idxes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
idxes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
idxes.EntityData.Children = types.NewOrderedMap()
idxes.EntityData.Children.Append("idx", types.YChild{"Idx", nil})
for i := range idxes.Idx {
idxes.EntityData.Children.Append(types.GetSegmentPath(idxes.Idx[i]), types.YChild{"Idx", idxes.Idx[i]})
}
idxes.EntityData.Leafs = types.NewOrderedMap()
idxes.EntityData.YListKeys = []string {}
return &(idxes.EntityData)
}
// HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes_Idx
// Drop Stats
type HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes_Idx struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Index value. The type is interface{} with range:
// 0..4294967295.
Index interface{}
// Drop Reason. The type is string with length: 0..1024.
DropReason interface{}
// Counter. The type is interface{} with range: 0..4294967295.
Counters interface{}
}
func (idx *HardwareModule_Nodes_Node_Np_PlatformDrop_Idxes_Idx) GetEntityData() *types.CommonEntityData {
idx.EntityData.YFilter = idx.YFilter
idx.EntityData.YangName = "idx"
idx.EntityData.BundleName = "cisco_ios_xr"
idx.EntityData.ParentYangName = "idxes"
idx.EntityData.SegmentPath = "idx" + types.AddKeyToken(idx.Index, "index")
idx.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:hardware-module/nodes/node/np/platform-drop/idxes/" + idx.EntityData.SegmentPath
idx.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
idx.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
idx.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
idx.EntityData.Children = types.NewOrderedMap()
idx.EntityData.Leafs = types.NewOrderedMap()
idx.EntityData.Leafs.Append("index", types.YLeaf{"Index", idx.Index})
idx.EntityData.Leafs.Append("drop-reason", types.YLeaf{"DropReason", idx.DropReason})
idx.EntityData.Leafs.Append("counters", types.YLeaf{"Counters", idx.Counters})
idx.EntityData.YListKeys = []string {"Index"}
return &(idx.EntityData)
}
// Prm
// prm
type Prm struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of PRM Nodes.
Nodes Prm_Nodes
}
func (prm *Prm) GetEntityData() *types.CommonEntityData {
prm.EntityData.YFilter = prm.YFilter
prm.EntityData.YangName = "prm"
prm.EntityData.BundleName = "cisco_ios_xr"
prm.EntityData.ParentYangName = "Cisco-IOS-XR-prm-server-oper"
prm.EntityData.SegmentPath = "Cisco-IOS-XR-prm-server-oper:prm"
prm.EntityData.AbsolutePath = prm.EntityData.SegmentPath
prm.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
prm.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
prm.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
prm.EntityData.Children = types.NewOrderedMap()
prm.EntityData.Children.Append("nodes", types.YChild{"Nodes", &prm.Nodes})
prm.EntityData.Leafs = types.NewOrderedMap()
prm.EntityData.YListKeys = []string {}
return &(prm.EntityData)
}
// Prm_Nodes
// List of PRM Nodes
type Prm_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Node Information. The type is slice of Prm_Nodes_Node.
Node []*Prm_Nodes_Node
}
func (nodes *Prm_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "prm"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:prm/" + 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)
}
// Prm_Nodes_Node
// Node Information
type Prm_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The node name. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Server specific.
Server Prm_Nodes_Node_Server
}
func (node *Prm_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-prm-server-oper:prm/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("server", types.YChild{"Server", &node.Server})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// Prm_Nodes_Node_Server
// Server specific
type Prm_Nodes_Node_Server struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Resource specific.
Resource Prm_Nodes_Node_Server_Resource
}
func (server *Prm_Nodes_Node_Server) GetEntityData() *types.CommonEntityData {
server.EntityData.YFilter = server.YFilter
server.EntityData.YangName = "server"
server.EntityData.BundleName = "cisco_ios_xr"
server.EntityData.ParentYangName = "node"
server.EntityData.SegmentPath = "server"
server.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:prm/nodes/node/" + server.EntityData.SegmentPath
server.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
server.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
server.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
server.EntityData.Children = types.NewOrderedMap()
server.EntityData.Children.Append("resource", types.YChild{"Resource", &server.Resource})
server.EntityData.Leafs = types.NewOrderedMap()
server.EntityData.YListKeys = []string {}
return &(server.EntityData)
}
// Prm_Nodes_Node_Server_Resource
// Resource specific
type Prm_Nodes_Node_Server_Resource struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Data for software resource.
Indexes Prm_Nodes_Node_Server_Resource_Indexes
}
func (resource *Prm_Nodes_Node_Server_Resource) GetEntityData() *types.CommonEntityData {
resource.EntityData.YFilter = resource.YFilter
resource.EntityData.YangName = "resource"
resource.EntityData.BundleName = "cisco_ios_xr"
resource.EntityData.ParentYangName = "server"
resource.EntityData.SegmentPath = "resource"
resource.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:prm/nodes/node/server/" + resource.EntityData.SegmentPath
resource.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
resource.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
resource.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
resource.EntityData.Children = types.NewOrderedMap()
resource.EntityData.Children.Append("indexes", types.YChild{"Indexes", &resource.Indexes})
resource.EntityData.Leafs = types.NewOrderedMap()
resource.EntityData.YListKeys = []string {}
return &(resource.EntityData)
}
// Prm_Nodes_Node_Server_Resource_Indexes
// Data for software resource
type Prm_Nodes_Node_Server_Resource_Indexes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Data for software resource. The type is slice of
// Prm_Nodes_Node_Server_Resource_Indexes_Index.
Index []*Prm_Nodes_Node_Server_Resource_Indexes_Index
}
func (indexes *Prm_Nodes_Node_Server_Resource_Indexes) GetEntityData() *types.CommonEntityData {
indexes.EntityData.YFilter = indexes.YFilter
indexes.EntityData.YangName = "indexes"
indexes.EntityData.BundleName = "cisco_ios_xr"
indexes.EntityData.ParentYangName = "resource"
indexes.EntityData.SegmentPath = "indexes"
indexes.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:prm/nodes/node/server/resource/" + indexes.EntityData.SegmentPath
indexes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
indexes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
indexes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
indexes.EntityData.Children = types.NewOrderedMap()
indexes.EntityData.Children.Append("index", types.YChild{"Index", nil})
for i := range indexes.Index {
indexes.EntityData.Children.Append(types.GetSegmentPath(indexes.Index[i]), types.YChild{"Index", indexes.Index[i]})
}
indexes.EntityData.Leafs = types.NewOrderedMap()
indexes.EntityData.YListKeys = []string {}
return &(indexes.EntityData)
}
// Prm_Nodes_Node_Server_Resource_Indexes_Index
// Data for software resource
type Prm_Nodes_Node_Server_Resource_Indexes_Index struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Index value. The type is interface{} with range:
// 0..4294967295.
Index interface{}
// Resource Name. The type is string with length: 0..1024.
ResourceName interface{}
// Resource Type. The type is interface{} with range: 0..4294967295.
ResourceType interface{}
// Total Resource Count. The type is interface{} with range: 0..4294967295.
TotalNum interface{}
// Free Resource Count. The type is interface{} with range: 0..4294967295.
FreeNum interface{}
// Next Free Index. The type is interface{} with range: 0..4294967295.
FirstAvailableIndex interface{}
// Start Index. The type is interface{} with range: 0..4294967295.
StartIndex interface{}
// Availability Status. The type is bool.
AvailabilityStatus interface{}
// Resource Flags. The type is interface{} with range: 0..255.
Flags interface{}
// Inconsistice Flags. The type is bool.
Inconsistent interface{}
}
func (index *Prm_Nodes_Node_Server_Resource_Indexes_Index) GetEntityData() *types.CommonEntityData {
index.EntityData.YFilter = index.YFilter
index.EntityData.YangName = "index"
index.EntityData.BundleName = "cisco_ios_xr"
index.EntityData.ParentYangName = "indexes"
index.EntityData.SegmentPath = "index" + types.AddKeyToken(index.Index, "index")
index.EntityData.AbsolutePath = "Cisco-IOS-XR-prm-server-oper:prm/nodes/node/server/resource/indexes/" + index.EntityData.SegmentPath
index.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
index.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
index.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
index.EntityData.Children = types.NewOrderedMap()
index.EntityData.Leafs = types.NewOrderedMap()
index.EntityData.Leafs.Append("index", types.YLeaf{"Index", index.Index})
index.EntityData.Leafs.Append("resource-name", types.YLeaf{"ResourceName", index.ResourceName})
index.EntityData.Leafs.Append("resource-type", types.YLeaf{"ResourceType", index.ResourceType})
index.EntityData.Leafs.Append("total-num", types.YLeaf{"TotalNum", index.TotalNum})
index.EntityData.Leafs.Append("free-num", types.YLeaf{"FreeNum", index.FreeNum})
index.EntityData.Leafs.Append("first-available-index", types.YLeaf{"FirstAvailableIndex", index.FirstAvailableIndex})
index.EntityData.Leafs.Append("start-index", types.YLeaf{"StartIndex", index.StartIndex})
index.EntityData.Leafs.Append("availability-status", types.YLeaf{"AvailabilityStatus", index.AvailabilityStatus})
index.EntityData.Leafs.Append("flags", types.YLeaf{"Flags", index.Flags})
index.EntityData.Leafs.Append("inconsistent", types.YLeaf{"Inconsistent", index.Inconsistent})
index.EntityData.YListKeys = []string {"Index"}
return &(index.EntityData)
}