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
/
infra_sla_oper.go
4537 lines (3660 loc) · 249 KB
/
infra_sla_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 infra-sla package operational data.
//
// This module contains definitions
// for the following management objects:
// sla: SLA oper commands
// sla-nodes: sla nodes
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package infra_sla_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 infra_sla_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-infra-sla-oper sla}", reflect.TypeOf(Sla{}))
ydk.RegisterEntity("Cisco-IOS-XR-infra-sla-oper:sla", reflect.TypeOf(Sla{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-infra-sla-oper sla-nodes}", reflect.TypeOf(SlaNodes{}))
ydk.RegisterEntity("Cisco-IOS-XR-infra-sla-oper:sla-nodes", reflect.TypeOf(SlaNodes{}))
}
// Sla
// SLA oper commands
type Sla struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Table of all SLA protocols.
Protocols Sla_Protocols
}
func (sla *Sla) GetEntityData() *types.CommonEntityData {
sla.EntityData.YFilter = sla.YFilter
sla.EntityData.YangName = "sla"
sla.EntityData.BundleName = "cisco_ios_xr"
sla.EntityData.ParentYangName = "Cisco-IOS-XR-infra-sla-oper"
sla.EntityData.SegmentPath = "Cisco-IOS-XR-infra-sla-oper:sla"
sla.EntityData.AbsolutePath = sla.EntityData.SegmentPath
sla.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sla.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sla.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sla.EntityData.Children = types.NewOrderedMap()
sla.EntityData.Children.Append("protocols", types.YChild{"Protocols", &sla.Protocols})
sla.EntityData.Leafs = types.NewOrderedMap()
sla.EntityData.YListKeys = []string {}
return &(sla.EntityData)
}
// Sla_Protocols
// Table of all SLA protocols
type Sla_Protocols struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The Ethernet SLA protocol.
Ethernet Sla_Protocols_Ethernet
}
func (protocols *Sla_Protocols) GetEntityData() *types.CommonEntityData {
protocols.EntityData.YFilter = protocols.YFilter
protocols.EntityData.YangName = "protocols"
protocols.EntityData.BundleName = "cisco_ios_xr"
protocols.EntityData.ParentYangName = "sla"
protocols.EntityData.SegmentPath = "protocols"
protocols.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/" + protocols.EntityData.SegmentPath
protocols.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
protocols.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
protocols.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
protocols.EntityData.Children = types.NewOrderedMap()
protocols.EntityData.Children.Append("Cisco-IOS-XR-ethernet-cfm-oper:ethernet", types.YChild{"Ethernet", &protocols.Ethernet})
protocols.EntityData.Leafs = types.NewOrderedMap()
protocols.EntityData.YListKeys = []string {}
return &(protocols.EntityData)
}
// Sla_Protocols_Ethernet
// The Ethernet SLA protocol
type Sla_Protocols_Ethernet struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Table of current statistics for SLA on-demand operations.
StatisticsOnDemandCurrents Sla_Protocols_Ethernet_StatisticsOnDemandCurrents
// Table of SLA operations.
Operations Sla_Protocols_Ethernet_Operations
// Table of historical statistics for SLA operations.
StatisticsHistoricals Sla_Protocols_Ethernet_StatisticsHistoricals
// Table of historical statistics for SLA on-demand operations.
StatisticsOnDemandHistoricals Sla_Protocols_Ethernet_StatisticsOnDemandHistoricals
// Table of SLA configuration errors on configured operations.
ConfigErrors Sla_Protocols_Ethernet_ConfigErrors
// Table of SLA on-demand operations.
OnDemandOperations Sla_Protocols_Ethernet_OnDemandOperations
// Table of current statistics for SLA operations.
StatisticsCurrents Sla_Protocols_Ethernet_StatisticsCurrents
}
func (ethernet *Sla_Protocols_Ethernet) GetEntityData() *types.CommonEntityData {
ethernet.EntityData.YFilter = ethernet.YFilter
ethernet.EntityData.YangName = "ethernet"
ethernet.EntityData.BundleName = "cisco_ios_xr"
ethernet.EntityData.ParentYangName = "protocols"
ethernet.EntityData.SegmentPath = "Cisco-IOS-XR-ethernet-cfm-oper:ethernet"
ethernet.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/" + ethernet.EntityData.SegmentPath
ethernet.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ethernet.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ethernet.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ethernet.EntityData.Children = types.NewOrderedMap()
ethernet.EntityData.Children.Append("statistics-on-demand-currents", types.YChild{"StatisticsOnDemandCurrents", ðernet.StatisticsOnDemandCurrents})
ethernet.EntityData.Children.Append("operations", types.YChild{"Operations", ðernet.Operations})
ethernet.EntityData.Children.Append("statistics-historicals", types.YChild{"StatisticsHistoricals", ðernet.StatisticsHistoricals})
ethernet.EntityData.Children.Append("statistics-on-demand-historicals", types.YChild{"StatisticsOnDemandHistoricals", ðernet.StatisticsOnDemandHistoricals})
ethernet.EntityData.Children.Append("config-errors", types.YChild{"ConfigErrors", ðernet.ConfigErrors})
ethernet.EntityData.Children.Append("on-demand-operations", types.YChild{"OnDemandOperations", ðernet.OnDemandOperations})
ethernet.EntityData.Children.Append("statistics-currents", types.YChild{"StatisticsCurrents", ðernet.StatisticsCurrents})
ethernet.EntityData.Leafs = types.NewOrderedMap()
ethernet.EntityData.YListKeys = []string {}
return &(ethernet.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents
// Table of current statistics for SLA on-demand
// operations
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Current statistics data for an SLA on-demand operation. The type is slice
// of
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent.
StatisticsOnDemandCurrent []*Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent
}
func (statisticsOnDemandCurrents *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents) GetEntityData() *types.CommonEntityData {
statisticsOnDemandCurrents.EntityData.YFilter = statisticsOnDemandCurrents.YFilter
statisticsOnDemandCurrents.EntityData.YangName = "statistics-on-demand-currents"
statisticsOnDemandCurrents.EntityData.BundleName = "cisco_ios_xr"
statisticsOnDemandCurrents.EntityData.ParentYangName = "ethernet"
statisticsOnDemandCurrents.EntityData.SegmentPath = "statistics-on-demand-currents"
statisticsOnDemandCurrents.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/" + statisticsOnDemandCurrents.EntityData.SegmentPath
statisticsOnDemandCurrents.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
statisticsOnDemandCurrents.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
statisticsOnDemandCurrents.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
statisticsOnDemandCurrents.EntityData.Children = types.NewOrderedMap()
statisticsOnDemandCurrents.EntityData.Children.Append("statistics-on-demand-current", types.YChild{"StatisticsOnDemandCurrent", nil})
for i := range statisticsOnDemandCurrents.StatisticsOnDemandCurrent {
types.SetYListKey(statisticsOnDemandCurrents.StatisticsOnDemandCurrent[i], i)
statisticsOnDemandCurrents.EntityData.Children.Append(types.GetSegmentPath(statisticsOnDemandCurrents.StatisticsOnDemandCurrent[i]), types.YChild{"StatisticsOnDemandCurrent", statisticsOnDemandCurrents.StatisticsOnDemandCurrent[i]})
}
statisticsOnDemandCurrents.EntityData.Leafs = types.NewOrderedMap()
statisticsOnDemandCurrents.EntityData.YListKeys = []string {}
return &(statisticsOnDemandCurrents.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent
// Current statistics data for an SLA on-demand
// operation
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Operation ID. The type is interface{} with range: 1..4294967295.
OperationId interface{}
// Domain name. The type is string.
DomainName interface{}
// Interface name. The type is string with pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// MEP ID in the range 1 to 8191. Either MEP ID or MAC address must be
// specified. The type is interface{} with range: 1..8191.
MepId interface{}
// Unicast MAC Address in xxxx.xxxx.xxxx format. Either MEP ID or MAC address
// must be specified. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
MacAddress interface{}
// Type of probe used by the operation. The type is string.
ProbeType interface{}
// Short display name used by the operation. The type is string.
DisplayShort interface{}
// Long display name used by the operation. The type is string.
DisplayLong interface{}
// Interval between FLR calculations for SLM, in milliseconds. The type is
// interface{} with range: 0..4294967295. Units are millisecond.
FlrCalculationInterval interface{}
// Options specific to the type of operation.
SpecificOptions Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions
// Operation schedule.
OperationSchedule Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationSchedule
// Metrics gathered for the operation. The type is slice of
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric.
OperationMetric []*Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric
}
func (statisticsOnDemandCurrent *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent) GetEntityData() *types.CommonEntityData {
statisticsOnDemandCurrent.EntityData.YFilter = statisticsOnDemandCurrent.YFilter
statisticsOnDemandCurrent.EntityData.YangName = "statistics-on-demand-current"
statisticsOnDemandCurrent.EntityData.BundleName = "cisco_ios_xr"
statisticsOnDemandCurrent.EntityData.ParentYangName = "statistics-on-demand-currents"
statisticsOnDemandCurrent.EntityData.SegmentPath = "statistics-on-demand-current" + types.AddNoKeyToken(statisticsOnDemandCurrent)
statisticsOnDemandCurrent.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/" + statisticsOnDemandCurrent.EntityData.SegmentPath
statisticsOnDemandCurrent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
statisticsOnDemandCurrent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
statisticsOnDemandCurrent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
statisticsOnDemandCurrent.EntityData.Children = types.NewOrderedMap()
statisticsOnDemandCurrent.EntityData.Children.Append("specific-options", types.YChild{"SpecificOptions", &statisticsOnDemandCurrent.SpecificOptions})
statisticsOnDemandCurrent.EntityData.Children.Append("operation-schedule", types.YChild{"OperationSchedule", &statisticsOnDemandCurrent.OperationSchedule})
statisticsOnDemandCurrent.EntityData.Children.Append("operation-metric", types.YChild{"OperationMetric", nil})
for i := range statisticsOnDemandCurrent.OperationMetric {
types.SetYListKey(statisticsOnDemandCurrent.OperationMetric[i], i)
statisticsOnDemandCurrent.EntityData.Children.Append(types.GetSegmentPath(statisticsOnDemandCurrent.OperationMetric[i]), types.YChild{"OperationMetric", statisticsOnDemandCurrent.OperationMetric[i]})
}
statisticsOnDemandCurrent.EntityData.Leafs = types.NewOrderedMap()
statisticsOnDemandCurrent.EntityData.Leafs.Append("operation-id", types.YLeaf{"OperationId", statisticsOnDemandCurrent.OperationId})
statisticsOnDemandCurrent.EntityData.Leafs.Append("domain-name", types.YLeaf{"DomainName", statisticsOnDemandCurrent.DomainName})
statisticsOnDemandCurrent.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", statisticsOnDemandCurrent.InterfaceName})
statisticsOnDemandCurrent.EntityData.Leafs.Append("mep-id", types.YLeaf{"MepId", statisticsOnDemandCurrent.MepId})
statisticsOnDemandCurrent.EntityData.Leafs.Append("mac-address", types.YLeaf{"MacAddress", statisticsOnDemandCurrent.MacAddress})
statisticsOnDemandCurrent.EntityData.Leafs.Append("probe-type", types.YLeaf{"ProbeType", statisticsOnDemandCurrent.ProbeType})
statisticsOnDemandCurrent.EntityData.Leafs.Append("display-short", types.YLeaf{"DisplayShort", statisticsOnDemandCurrent.DisplayShort})
statisticsOnDemandCurrent.EntityData.Leafs.Append("display-long", types.YLeaf{"DisplayLong", statisticsOnDemandCurrent.DisplayLong})
statisticsOnDemandCurrent.EntityData.Leafs.Append("flr-calculation-interval", types.YLeaf{"FlrCalculationInterval", statisticsOnDemandCurrent.FlrCalculationInterval})
statisticsOnDemandCurrent.EntityData.YListKeys = []string {}
return &(statisticsOnDemandCurrent.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions
// Options specific to the type of operation
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// OperType. The type is SlaOperOperation.
OperType interface{}
// Parameters for a configured operation.
ConfiguredOperationOptions Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_ConfiguredOperationOptions
// Parameters for an ondemand operation.
OndemandOperationOptions Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_OndemandOperationOptions
}
func (specificOptions *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions) GetEntityData() *types.CommonEntityData {
specificOptions.EntityData.YFilter = specificOptions.YFilter
specificOptions.EntityData.YangName = "specific-options"
specificOptions.EntityData.BundleName = "cisco_ios_xr"
specificOptions.EntityData.ParentYangName = "statistics-on-demand-current"
specificOptions.EntityData.SegmentPath = "specific-options"
specificOptions.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/" + specificOptions.EntityData.SegmentPath
specificOptions.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
specificOptions.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
specificOptions.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
specificOptions.EntityData.Children = types.NewOrderedMap()
specificOptions.EntityData.Children.Append("configured-operation-options", types.YChild{"ConfiguredOperationOptions", &specificOptions.ConfiguredOperationOptions})
specificOptions.EntityData.Children.Append("ondemand-operation-options", types.YChild{"OndemandOperationOptions", &specificOptions.OndemandOperationOptions})
specificOptions.EntityData.Leafs = types.NewOrderedMap()
specificOptions.EntityData.Leafs.Append("oper-type", types.YLeaf{"OperType", specificOptions.OperType})
specificOptions.EntityData.YListKeys = []string {}
return &(specificOptions.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_ConfiguredOperationOptions
// Parameters for a configured operation
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_ConfiguredOperationOptions struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Name of the profile used by the operation. The type is string.
ProfileName interface{}
}
func (configuredOperationOptions *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_ConfiguredOperationOptions) GetEntityData() *types.CommonEntityData {
configuredOperationOptions.EntityData.YFilter = configuredOperationOptions.YFilter
configuredOperationOptions.EntityData.YangName = "configured-operation-options"
configuredOperationOptions.EntityData.BundleName = "cisco_ios_xr"
configuredOperationOptions.EntityData.ParentYangName = "specific-options"
configuredOperationOptions.EntityData.SegmentPath = "configured-operation-options"
configuredOperationOptions.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/specific-options/" + configuredOperationOptions.EntityData.SegmentPath
configuredOperationOptions.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
configuredOperationOptions.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
configuredOperationOptions.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
configuredOperationOptions.EntityData.Children = types.NewOrderedMap()
configuredOperationOptions.EntityData.Leafs = types.NewOrderedMap()
configuredOperationOptions.EntityData.Leafs.Append("profile-name", types.YLeaf{"ProfileName", configuredOperationOptions.ProfileName})
configuredOperationOptions.EntityData.YListKeys = []string {}
return &(configuredOperationOptions.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_OndemandOperationOptions
// Parameters for an ondemand operation
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_OndemandOperationOptions struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// ID of the ondemand operation. The type is interface{} with range:
// 0..4294967295.
OndemandOperationId interface{}
// Total number of probes sent during the operation. The type is interface{}
// with range: 0..255.
ProbeCount interface{}
}
func (ondemandOperationOptions *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_SpecificOptions_OndemandOperationOptions) GetEntityData() *types.CommonEntityData {
ondemandOperationOptions.EntityData.YFilter = ondemandOperationOptions.YFilter
ondemandOperationOptions.EntityData.YangName = "ondemand-operation-options"
ondemandOperationOptions.EntityData.BundleName = "cisco_ios_xr"
ondemandOperationOptions.EntityData.ParentYangName = "specific-options"
ondemandOperationOptions.EntityData.SegmentPath = "ondemand-operation-options"
ondemandOperationOptions.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/specific-options/" + ondemandOperationOptions.EntityData.SegmentPath
ondemandOperationOptions.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ondemandOperationOptions.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ondemandOperationOptions.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ondemandOperationOptions.EntityData.Children = types.NewOrderedMap()
ondemandOperationOptions.EntityData.Leafs = types.NewOrderedMap()
ondemandOperationOptions.EntityData.Leafs.Append("ondemand-operation-id", types.YLeaf{"OndemandOperationId", ondemandOperationOptions.OndemandOperationId})
ondemandOperationOptions.EntityData.Leafs.Append("probe-count", types.YLeaf{"ProbeCount", ondemandOperationOptions.ProbeCount})
ondemandOperationOptions.EntityData.YListKeys = []string {}
return &(ondemandOperationOptions.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationSchedule
// Operation schedule
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationSchedule struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Start time of the first probe, in seconds since the Unix Epoch. The type is
// interface{} with range: 0..4294967295. Units are second.
StartTime interface{}
// Whether or not the operation start time was explicitly configured. The type
// is bool.
StartTimeConfigured interface{}
// Duration of a probe for the operation in seconds. The type is interface{}
// with range: 0..4294967295. Units are second.
ScheduleDuration interface{}
// Interval between the start times of consecutive probes, in seconds. The
// type is interface{} with range: 0..4294967295. Units are second.
ScheduleInterval interface{}
}
func (operationSchedule *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationSchedule) GetEntityData() *types.CommonEntityData {
operationSchedule.EntityData.YFilter = operationSchedule.YFilter
operationSchedule.EntityData.YangName = "operation-schedule"
operationSchedule.EntityData.BundleName = "cisco_ios_xr"
operationSchedule.EntityData.ParentYangName = "statistics-on-demand-current"
operationSchedule.EntityData.SegmentPath = "operation-schedule"
operationSchedule.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/" + operationSchedule.EntityData.SegmentPath
operationSchedule.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
operationSchedule.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
operationSchedule.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
operationSchedule.EntityData.Children = types.NewOrderedMap()
operationSchedule.EntityData.Leafs = types.NewOrderedMap()
operationSchedule.EntityData.Leafs.Append("start-time", types.YLeaf{"StartTime", operationSchedule.StartTime})
operationSchedule.EntityData.Leafs.Append("start-time-configured", types.YLeaf{"StartTimeConfigured", operationSchedule.StartTimeConfigured})
operationSchedule.EntityData.Leafs.Append("schedule-duration", types.YLeaf{"ScheduleDuration", operationSchedule.ScheduleDuration})
operationSchedule.EntityData.Leafs.Append("schedule-interval", types.YLeaf{"ScheduleInterval", operationSchedule.ScheduleInterval})
operationSchedule.EntityData.YListKeys = []string {}
return &(operationSchedule.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric
// Metrics gathered for the operation
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Configuration of the metric.
Config Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Config
// Buckets stored for the metric. The type is slice of
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket.
Bucket []*Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket
}
func (operationMetric *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric) GetEntityData() *types.CommonEntityData {
operationMetric.EntityData.YFilter = operationMetric.YFilter
operationMetric.EntityData.YangName = "operation-metric"
operationMetric.EntityData.BundleName = "cisco_ios_xr"
operationMetric.EntityData.ParentYangName = "statistics-on-demand-current"
operationMetric.EntityData.SegmentPath = "operation-metric" + types.AddNoKeyToken(operationMetric)
operationMetric.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/" + operationMetric.EntityData.SegmentPath
operationMetric.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
operationMetric.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
operationMetric.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
operationMetric.EntityData.Children = types.NewOrderedMap()
operationMetric.EntityData.Children.Append("config", types.YChild{"Config", &operationMetric.Config})
operationMetric.EntityData.Children.Append("bucket", types.YChild{"Bucket", nil})
for i := range operationMetric.Bucket {
types.SetYListKey(operationMetric.Bucket[i], i)
operationMetric.EntityData.Children.Append(types.GetSegmentPath(operationMetric.Bucket[i]), types.YChild{"Bucket", operationMetric.Bucket[i]})
}
operationMetric.EntityData.Leafs = types.NewOrderedMap()
operationMetric.EntityData.YListKeys = []string {}
return &(operationMetric.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Config
// Configuration of the metric
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Config struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Type of metric to which this configuration applies. The type is
// SlaRecordableMetric.
MetricType interface{}
// Total number of bins into which to aggregate. 0 if no aggregation. The type
// is interface{} with range: 0..65535.
BinsCount interface{}
// Width of each bin into which to aggregate. 0 if no aggregation. For SLM,
// the units of this value are in single units of percent; for LMM they are in
// tenths of percent; for other measurements they are in milliseconds. The
// type is interface{} with range: 0..65535.
BinsWidth interface{}
// Size of buckets into which measurements are collected. The type is
// interface{} with range: 0..255.
BucketSize interface{}
// Whether bucket size is 'per-probe' or 'probes'. The type is SlaBucketSize.
BucketSizeUnit interface{}
// Maximum number of buckets to store in memory. The type is interface{} with
// range: 0..4294967295.
BucketsArchive interface{}
}
func (config *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Config) GetEntityData() *types.CommonEntityData {
config.EntityData.YFilter = config.YFilter
config.EntityData.YangName = "config"
config.EntityData.BundleName = "cisco_ios_xr"
config.EntityData.ParentYangName = "operation-metric"
config.EntityData.SegmentPath = "config"
config.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/" + config.EntityData.SegmentPath
config.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
config.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
config.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
config.EntityData.Children = types.NewOrderedMap()
config.EntityData.Leafs = types.NewOrderedMap()
config.EntityData.Leafs.Append("metric-type", types.YLeaf{"MetricType", config.MetricType})
config.EntityData.Leafs.Append("bins-count", types.YLeaf{"BinsCount", config.BinsCount})
config.EntityData.Leafs.Append("bins-width", types.YLeaf{"BinsWidth", config.BinsWidth})
config.EntityData.Leafs.Append("bucket-size", types.YLeaf{"BucketSize", config.BucketSize})
config.EntityData.Leafs.Append("bucket-size-unit", types.YLeaf{"BucketSizeUnit", config.BucketSizeUnit})
config.EntityData.Leafs.Append("buckets-archive", types.YLeaf{"BucketsArchive", config.BucketsArchive})
config.EntityData.YListKeys = []string {}
return &(config.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket
// Buckets stored for the metric
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Absolute time that the bucket started being filled at. The type is
// interface{} with range: 0..4294967295.
StartAt interface{}
// Length of time for which the bucket is being filled in seconds. The type is
// interface{} with range: 0..4294967295. Units are second.
Duration interface{}
// Number of packets sent in the probe. The type is interface{} with range:
// 0..4294967295.
Sent interface{}
// Number of lost packets in the probe. The type is interface{} with range:
// 0..4294967295.
Lost interface{}
// Number of corrupt packets in the probe. The type is interface{} with range:
// 0..4294967295.
Corrupt interface{}
// Number of packets recieved out-of-order in the probe. The type is
// interface{} with range: 0..4294967295.
OutOfOrder interface{}
// Number of duplicate packets received in the probe. The type is interface{}
// with range: 0..4294967295.
Duplicates interface{}
// Overall minimum result in the probe, in microseconds or millionths of a
// percent. The type is interface{} with range: -2147483648..2147483647.
Minimum interface{}
// Overall minimum result in the probe, in microseconds or millionths of a
// percent. The type is interface{} with range: -2147483648..2147483647.
Maximum interface{}
// Absolute time that the minimum value was recorded. The type is interface{}
// with range: 0..4294967295.
TimeOfMinimum interface{}
// Absolute time that the maximum value was recorded. The type is interface{}
// with range: 0..4294967295.
TimeOfMaximum interface{}
// Mean of the results in the probe, in microseconds or millionths of a
// percent. The type is interface{} with range: -2147483648..2147483647.
Average interface{}
// Standard deviation of the results in the probe, in microseconds or
// millionths of a percent. The type is interface{} with range:
// -2147483648..2147483647.
StandardDeviation interface{}
// The count of samples collected in the bucket. The type is interface{} with
// range: 0..4294967295.
ResultCount interface{}
// The number of data packets sent across the bucket, used in the calculation
// of overall FLR. The type is interface{} with range: 0..4294967295.
DataSentCount interface{}
// The number of data packets lost across the bucket, used in the calculation
// of overall FLR. The type is interface{} with range: 0..4294967295.
DataLostCount interface{}
// Frame Loss Ratio across the whole bucket, in millionths of a percent. The
// type is interface{} with range: -2147483648..2147483647. Units are
// percentage.
OverallFlr interface{}
// Results suspect due to a probe starting mid-way through a bucket. The type
// is bool.
SuspectStartMidBucket interface{}
// Results suspect due to scheduling latency causing one or more packets to
// not be sent. The type is bool.
SuspectScheduleLatency interface{}
// Results suspect due to failure to send one or more packets. The type is
// bool.
SuspectSendFail interface{}
// Results suspect due to a probe ending prematurely. The type is bool.
SuspectPrematureEnd interface{}
// Results suspect as more than 10 seconds time drift detected. The type is
// bool.
SuspectClockDrift interface{}
// Results suspect due to a memory allocation failure. The type is bool.
SuspectMemoryAllocationFailed interface{}
// Results suspect as bucket was cleared mid-way through being filled. The
// type is bool.
SuspectClearedMidBucket interface{}
// Results suspect as probe restarted mid-way through the bucket. The type is
// bool.
SuspectProbeRestarted interface{}
// Results suspect as processing of results has been delayed. The type is
// bool.
SuspectManagementLatency interface{}
// Results suspect as the probe has been configured across multiple buckets.
// The type is bool.
SuspectMultipleBuckets interface{}
// Results suspect as misordering has been detected , affecting results. The
// type is bool.
SuspectMisordering interface{}
// Results suspect as FLR calculated based on a low packet count. The type is
// bool.
SuspectFlrLowPacketCount interface{}
// If the probe ended prematurely, the error that caused a probe to end. The
// type is interface{} with range: 0..4294967295.
PrematureReason interface{}
// Description of the error code that caused the probe to end prematurely. For
// informational purposes only. The type is string.
PrematureReasonString interface{}
// The contents of the bucket; bins or samples.
Contents Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents
}
func (bucket *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket) GetEntityData() *types.CommonEntityData {
bucket.EntityData.YFilter = bucket.YFilter
bucket.EntityData.YangName = "bucket"
bucket.EntityData.BundleName = "cisco_ios_xr"
bucket.EntityData.ParentYangName = "operation-metric"
bucket.EntityData.SegmentPath = "bucket" + types.AddNoKeyToken(bucket)
bucket.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/" + bucket.EntityData.SegmentPath
bucket.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bucket.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bucket.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bucket.EntityData.Children = types.NewOrderedMap()
bucket.EntityData.Children.Append("contents", types.YChild{"Contents", &bucket.Contents})
bucket.EntityData.Leafs = types.NewOrderedMap()
bucket.EntityData.Leafs.Append("start-at", types.YLeaf{"StartAt", bucket.StartAt})
bucket.EntityData.Leafs.Append("duration", types.YLeaf{"Duration", bucket.Duration})
bucket.EntityData.Leafs.Append("sent", types.YLeaf{"Sent", bucket.Sent})
bucket.EntityData.Leafs.Append("lost", types.YLeaf{"Lost", bucket.Lost})
bucket.EntityData.Leafs.Append("corrupt", types.YLeaf{"Corrupt", bucket.Corrupt})
bucket.EntityData.Leafs.Append("out-of-order", types.YLeaf{"OutOfOrder", bucket.OutOfOrder})
bucket.EntityData.Leafs.Append("duplicates", types.YLeaf{"Duplicates", bucket.Duplicates})
bucket.EntityData.Leafs.Append("minimum", types.YLeaf{"Minimum", bucket.Minimum})
bucket.EntityData.Leafs.Append("maximum", types.YLeaf{"Maximum", bucket.Maximum})
bucket.EntityData.Leafs.Append("time-of-minimum", types.YLeaf{"TimeOfMinimum", bucket.TimeOfMinimum})
bucket.EntityData.Leafs.Append("time-of-maximum", types.YLeaf{"TimeOfMaximum", bucket.TimeOfMaximum})
bucket.EntityData.Leafs.Append("average", types.YLeaf{"Average", bucket.Average})
bucket.EntityData.Leafs.Append("standard-deviation", types.YLeaf{"StandardDeviation", bucket.StandardDeviation})
bucket.EntityData.Leafs.Append("result-count", types.YLeaf{"ResultCount", bucket.ResultCount})
bucket.EntityData.Leafs.Append("data-sent-count", types.YLeaf{"DataSentCount", bucket.DataSentCount})
bucket.EntityData.Leafs.Append("data-lost-count", types.YLeaf{"DataLostCount", bucket.DataLostCount})
bucket.EntityData.Leafs.Append("overall-flr", types.YLeaf{"OverallFlr", bucket.OverallFlr})
bucket.EntityData.Leafs.Append("suspect-start-mid-bucket", types.YLeaf{"SuspectStartMidBucket", bucket.SuspectStartMidBucket})
bucket.EntityData.Leafs.Append("suspect-schedule-latency", types.YLeaf{"SuspectScheduleLatency", bucket.SuspectScheduleLatency})
bucket.EntityData.Leafs.Append("suspect-send-fail", types.YLeaf{"SuspectSendFail", bucket.SuspectSendFail})
bucket.EntityData.Leafs.Append("suspect-premature-end", types.YLeaf{"SuspectPrematureEnd", bucket.SuspectPrematureEnd})
bucket.EntityData.Leafs.Append("suspect-clock-drift", types.YLeaf{"SuspectClockDrift", bucket.SuspectClockDrift})
bucket.EntityData.Leafs.Append("suspect-memory-allocation-failed", types.YLeaf{"SuspectMemoryAllocationFailed", bucket.SuspectMemoryAllocationFailed})
bucket.EntityData.Leafs.Append("suspect-cleared-mid-bucket", types.YLeaf{"SuspectClearedMidBucket", bucket.SuspectClearedMidBucket})
bucket.EntityData.Leafs.Append("suspect-probe-restarted", types.YLeaf{"SuspectProbeRestarted", bucket.SuspectProbeRestarted})
bucket.EntityData.Leafs.Append("suspect-management-latency", types.YLeaf{"SuspectManagementLatency", bucket.SuspectManagementLatency})
bucket.EntityData.Leafs.Append("suspect-multiple-buckets", types.YLeaf{"SuspectMultipleBuckets", bucket.SuspectMultipleBuckets})
bucket.EntityData.Leafs.Append("suspect-misordering", types.YLeaf{"SuspectMisordering", bucket.SuspectMisordering})
bucket.EntityData.Leafs.Append("suspect-flr-low-packet-count", types.YLeaf{"SuspectFlrLowPacketCount", bucket.SuspectFlrLowPacketCount})
bucket.EntityData.Leafs.Append("premature-reason", types.YLeaf{"PrematureReason", bucket.PrematureReason})
bucket.EntityData.Leafs.Append("premature-reason-string", types.YLeaf{"PrematureReasonString", bucket.PrematureReasonString})
bucket.EntityData.YListKeys = []string {}
return &(bucket.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents
// The contents of the bucket; bins or samples
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// BucketType. The type is SlaOperBucket.
BucketType interface{}
// Result bins in an SLA metric bucket.
Aggregated Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated
// Result samples in an SLA metric bucket.
Unaggregated Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated
}
func (contents *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents) GetEntityData() *types.CommonEntityData {
contents.EntityData.YFilter = contents.YFilter
contents.EntityData.YangName = "contents"
contents.EntityData.BundleName = "cisco_ios_xr"
contents.EntityData.ParentYangName = "bucket"
contents.EntityData.SegmentPath = "contents"
contents.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/bucket/" + contents.EntityData.SegmentPath
contents.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
contents.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
contents.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
contents.EntityData.Children = types.NewOrderedMap()
contents.EntityData.Children.Append("aggregated", types.YChild{"Aggregated", &contents.Aggregated})
contents.EntityData.Children.Append("unaggregated", types.YChild{"Unaggregated", &contents.Unaggregated})
contents.EntityData.Leafs = types.NewOrderedMap()
contents.EntityData.Leafs.Append("bucket-type", types.YLeaf{"BucketType", contents.BucketType})
contents.EntityData.YListKeys = []string {}
return &(contents.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated
// Result bins in an SLA metric bucket
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The bins of an SLA metric bucket. The type is slice of
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated_Bins.
Bins []*Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated_Bins
}
func (aggregated *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated) GetEntityData() *types.CommonEntityData {
aggregated.EntityData.YFilter = aggregated.YFilter
aggregated.EntityData.YangName = "aggregated"
aggregated.EntityData.BundleName = "cisco_ios_xr"
aggregated.EntityData.ParentYangName = "contents"
aggregated.EntityData.SegmentPath = "aggregated"
aggregated.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/bucket/contents/" + aggregated.EntityData.SegmentPath
aggregated.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
aggregated.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
aggregated.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
aggregated.EntityData.Children = types.NewOrderedMap()
aggregated.EntityData.Children.Append("bins", types.YChild{"Bins", nil})
for i := range aggregated.Bins {
types.SetYListKey(aggregated.Bins[i], i)
aggregated.EntityData.Children.Append(types.GetSegmentPath(aggregated.Bins[i]), types.YChild{"Bins", aggregated.Bins[i]})
}
aggregated.EntityData.Leafs = types.NewOrderedMap()
aggregated.EntityData.YListKeys = []string {}
return &(aggregated.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated_Bins
// The bins of an SLA metric bucket
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated_Bins struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Lower bound (inclusive) of the bin, in milliseconds or single units of
// percent. This field is not used for LMM measurements. The type is
// interface{} with range: -2147483648..2147483647.
LowerBound interface{}
// Upper bound (exclusive) of the bin, in milliseconds or single units of
// percent. This field is not used for LMM measurements. The type is
// interface{} with range: -2147483648..2147483647.
UpperBound interface{}
// Lower bound (inclusive) of the bin, in tenths of percent. This field is
// only used for LMM measurements. The type is interface{} with range:
// -2147483648..2147483647. Units are percentage.
LowerBoundTenths interface{}
// Upper bound (exclusive) of the bin, in tenths of percent. This field is
// only used for LMM measurements. The type is interface{} with range:
// -2147483648..2147483647. Units are percentage.
UpperBoundTenths interface{}
// The sum of the results in the bin, in microseconds or millionths of a
// percent. The type is interface{} with range:
// -9223372036854775808..9223372036854775807.
Sum interface{}
// The total number of results in the bin. The type is interface{} with range:
// 0..4294967295.
Count interface{}
}
func (bins *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Aggregated_Bins) GetEntityData() *types.CommonEntityData {
bins.EntityData.YFilter = bins.YFilter
bins.EntityData.YangName = "bins"
bins.EntityData.BundleName = "cisco_ios_xr"
bins.EntityData.ParentYangName = "aggregated"
bins.EntityData.SegmentPath = "bins" + types.AddNoKeyToken(bins)
bins.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/bucket/contents/aggregated/" + bins.EntityData.SegmentPath
bins.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bins.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bins.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bins.EntityData.Children = types.NewOrderedMap()
bins.EntityData.Leafs = types.NewOrderedMap()
bins.EntityData.Leafs.Append("lower-bound", types.YLeaf{"LowerBound", bins.LowerBound})
bins.EntityData.Leafs.Append("upper-bound", types.YLeaf{"UpperBound", bins.UpperBound})
bins.EntityData.Leafs.Append("lower-bound-tenths", types.YLeaf{"LowerBoundTenths", bins.LowerBoundTenths})
bins.EntityData.Leafs.Append("upper-bound-tenths", types.YLeaf{"UpperBoundTenths", bins.UpperBoundTenths})
bins.EntityData.Leafs.Append("sum", types.YLeaf{"Sum", bins.Sum})
bins.EntityData.Leafs.Append("count", types.YLeaf{"Count", bins.Count})
bins.EntityData.YListKeys = []string {}
return &(bins.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated
// Result samples in an SLA metric bucket
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The samples of an SLA metric bucket. The type is slice of
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated_Sample.
Sample []*Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated_Sample
}
func (unaggregated *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated) GetEntityData() *types.CommonEntityData {
unaggregated.EntityData.YFilter = unaggregated.YFilter
unaggregated.EntityData.YangName = "unaggregated"
unaggregated.EntityData.BundleName = "cisco_ios_xr"
unaggregated.EntityData.ParentYangName = "contents"
unaggregated.EntityData.SegmentPath = "unaggregated"
unaggregated.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/bucket/contents/" + unaggregated.EntityData.SegmentPath
unaggregated.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
unaggregated.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
unaggregated.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
unaggregated.EntityData.Children = types.NewOrderedMap()
unaggregated.EntityData.Children.Append("sample", types.YChild{"Sample", nil})
for i := range unaggregated.Sample {
types.SetYListKey(unaggregated.Sample[i], i)
unaggregated.EntityData.Children.Append(types.GetSegmentPath(unaggregated.Sample[i]), types.YChild{"Sample", unaggregated.Sample[i]})
}
unaggregated.EntityData.Leafs = types.NewOrderedMap()
unaggregated.EntityData.YListKeys = []string {}
return &(unaggregated.EntityData)
}
// Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated_Sample
// The samples of an SLA metric bucket
type Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated_Sample struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// The time (in milliseconds relative to the start time of the bucket) that
// the sample was sent at. The type is interface{} with range: 0..4294967295.
// Units are millisecond.
SentAt interface{}
// Whether the sample packet was sucessfully sent. The type is bool.
Sent interface{}
// Whether the sample packet timed out. The type is bool.
TimedOut interface{}
// Whether the sample packet was corrupt. The type is bool.
Corrupt interface{}
// Whether the sample packet was received out-of-order. The type is bool.
OutOfOrder interface{}
// Whether a measurement could not be made because no data packets were sent
// in the sample period. Only applicable for LMM measurements. The type is
// bool.
NoDataPackets interface{}
// The result (in microseconds or millionths of a percent) of the sample, if
// available. The type is interface{} with range: -2147483648..2147483647.
Result interface{}
// For FLR measurements, the number of frames sent, if available. The type is
// interface{} with range: 0..4294967295.
FramesSent interface{}
// For FLR measurements, the number of frames lost, if available. The type is
// interface{} with range: 0..4294967295.
FramesLost interface{}
}
func (sample *Sla_Protocols_Ethernet_StatisticsOnDemandCurrents_StatisticsOnDemandCurrent_OperationMetric_Bucket_Contents_Unaggregated_Sample) GetEntityData() *types.CommonEntityData {
sample.EntityData.YFilter = sample.YFilter
sample.EntityData.YangName = "sample"
sample.EntityData.BundleName = "cisco_ios_xr"
sample.EntityData.ParentYangName = "unaggregated"
sample.EntityData.SegmentPath = "sample" + types.AddNoKeyToken(sample)
sample.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/statistics-on-demand-currents/statistics-on-demand-current/operation-metric/bucket/contents/unaggregated/" + sample.EntityData.SegmentPath
sample.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sample.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sample.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sample.EntityData.Children = types.NewOrderedMap()
sample.EntityData.Leafs = types.NewOrderedMap()
sample.EntityData.Leafs.Append("sent-at", types.YLeaf{"SentAt", sample.SentAt})
sample.EntityData.Leafs.Append("sent", types.YLeaf{"Sent", sample.Sent})
sample.EntityData.Leafs.Append("timed-out", types.YLeaf{"TimedOut", sample.TimedOut})
sample.EntityData.Leafs.Append("corrupt", types.YLeaf{"Corrupt", sample.Corrupt})
sample.EntityData.Leafs.Append("out-of-order", types.YLeaf{"OutOfOrder", sample.OutOfOrder})
sample.EntityData.Leafs.Append("no-data-packets", types.YLeaf{"NoDataPackets", sample.NoDataPackets})
sample.EntityData.Leafs.Append("result", types.YLeaf{"Result", sample.Result})
sample.EntityData.Leafs.Append("frames-sent", types.YLeaf{"FramesSent", sample.FramesSent})
sample.EntityData.Leafs.Append("frames-lost", types.YLeaf{"FramesLost", sample.FramesLost})
sample.EntityData.YListKeys = []string {}
return &(sample.EntityData)
}
// Sla_Protocols_Ethernet_Operations
// Table of SLA operations
type Sla_Protocols_Ethernet_Operations struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// SLA operation to get operation data for. The type is slice of
// Sla_Protocols_Ethernet_Operations_Operation.
Operation []*Sla_Protocols_Ethernet_Operations_Operation
}
func (operations *Sla_Protocols_Ethernet_Operations) GetEntityData() *types.CommonEntityData {
operations.EntityData.YFilter = operations.YFilter
operations.EntityData.YangName = "operations"
operations.EntityData.BundleName = "cisco_ios_xr"
operations.EntityData.ParentYangName = "ethernet"
operations.EntityData.SegmentPath = "operations"
operations.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-sla-oper:sla/protocols/Cisco-IOS-XR-ethernet-cfm-oper:ethernet/" + operations.EntityData.SegmentPath
operations.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
operations.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
operations.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
operations.EntityData.Children = types.NewOrderedMap()
operations.EntityData.Children.Append("operation", types.YChild{"Operation", nil})
for i := range operations.Operation {
types.SetYListKey(operations.Operation[i], i)
operations.EntityData.Children.Append(types.GetSegmentPath(operations.Operation[i]), types.YChild{"Operation", operations.Operation[i]})
}
operations.EntityData.Leafs = types.NewOrderedMap()
operations.EntityData.YListKeys = []string {}
return &(operations.EntityData)
}
// Sla_Protocols_Ethernet_Operations_Operation
// SLA operation to get operation data for
type Sla_Protocols_Ethernet_Operations_Operation struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Profile Name. The type is string with pattern: [\w\-\.:,_@#%$\+=\|;]+.
ProfileName interface{}
// Domain name. The type is string.
DomainName interface{}
// Interface name. The type is string with pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// MEP ID in the range 1 to 8191. Either MEP ID or MAC address must be
// specified. The type is interface{} with range: 1..8191.
MepId interface{}
// Unicast MAC Address in xxxx.xxxx.xxxx format. Either MEP ID or MAC address
// must be specified. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
MacAddress interface{}
// Short display name used by the operation. The type is string.
DisplayShort interface{}