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
/
telemetry_model_driven_oper.go
1942 lines (1545 loc) · 96 KB
/
telemetry_model_driven_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 telemetry-model-driven package operational data.
//
// This module contains definitions
// for the following management objects:
// telemetry-model-driven: Telemetry operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package telemetry_model_driven_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 telemetry_model_driven_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-telemetry-model-driven-oper telemetry-model-driven}", reflect.TypeOf(TelemetryModelDriven{}))
ydk.RegisterEntity("Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven", reflect.TypeOf(TelemetryModelDriven{}))
}
// MdtTransportEnum represents MDT Transport
type MdtTransportEnum string
const (
// PROTOCOL NOT SET
MdtTransportEnum_not_set MdtTransportEnum = "not-set"
// GRPC
MdtTransportEnum_grpc MdtTransportEnum = "grpc"
// TCP
MdtTransportEnum_tcp MdtTransportEnum = "tcp"
// UDP
MdtTransportEnum_udp MdtTransportEnum = "udp"
// DIALIN
MdtTransportEnum_dialin MdtTransportEnum = "dialin"
)
// MdtInternalPathStatus represents Internal Subscription Path Status
type MdtInternalPathStatus string
const (
// Active
MdtInternalPathStatus_active MdtInternalPathStatus = "active"
// Internal Error
MdtInternalPathStatus_internal_err MdtInternalPathStatus = "internal-err"
// Plugin Active
MdtInternalPathStatus_plugin_active MdtInternalPathStatus = "plugin-active"
// Plugin Not Initialized
MdtInternalPathStatus_plugin_not_initialized MdtInternalPathStatus = "plugin-not-initialized"
// Plugin Unsupported Cadence
MdtInternalPathStatus_plugin_invalid_cadence MdtInternalPathStatus = "plugin-invalid-cadence"
// Plugin Subscription Error
MdtInternalPathStatus_plugin_err MdtInternalPathStatus = "plugin-err"
// Filter Error
MdtInternalPathStatus_filter_err MdtInternalPathStatus = "filter-err"
// Paused
MdtInternalPathStatus_paused MdtInternalPathStatus = "paused"
// Eventing Active
MdtInternalPathStatus_event_ing_active MdtInternalPathStatus = "event-ing-active"
// Eventing Not Active
MdtInternalPathStatus_event_ing_not_active MdtInternalPathStatus = "event-ing-not-active"
// Eventing Error
MdtInternalPathStatus_event_ing_err MdtInternalPathStatus = "event-ing-err"
)
// MdtIp represents IP Type
type MdtIp string
const (
// IPv4
MdtIp_ipv4 MdtIp = "ipv4"
// IPv6
MdtIp_ipv6 MdtIp = "ipv6"
)
// MdtSubsStateEnum represents Subscription State
type MdtSubsStateEnum string
const (
// NA
MdtSubsStateEnum_not_active MdtSubsStateEnum = "not-active"
// Active
MdtSubsStateEnum_active MdtSubsStateEnum = "active"
// Paused
MdtSubsStateEnum_paused MdtSubsStateEnum = "paused"
)
// MdtSourceQosMarking represents DSCP source qos value for subscription
type MdtSourceQosMarking string
const (
// 0
MdtSourceQosMarking_dscp_default MdtSourceQosMarking = "dscp-default"
// 8
MdtSourceQosMarking_dscp_cs1 MdtSourceQosMarking = "dscp-cs1"
// 10
MdtSourceQosMarking_dscp_af11 MdtSourceQosMarking = "dscp-af11"
// 12
MdtSourceQosMarking_dscp_af12 MdtSourceQosMarking = "dscp-af12"
// 14
MdtSourceQosMarking_dscp_af13 MdtSourceQosMarking = "dscp-af13"
// 16
MdtSourceQosMarking_dscp_cs2 MdtSourceQosMarking = "dscp-cs2"
// 18
MdtSourceQosMarking_dscp_af21 MdtSourceQosMarking = "dscp-af21"
// 20
MdtSourceQosMarking_dscp_af22 MdtSourceQosMarking = "dscp-af22"
// 22
MdtSourceQosMarking_dscp_af23 MdtSourceQosMarking = "dscp-af23"
// 24
MdtSourceQosMarking_dscp_cs3 MdtSourceQosMarking = "dscp-cs3"
// 26
MdtSourceQosMarking_dscp_af31 MdtSourceQosMarking = "dscp-af31"
// 28
MdtSourceQosMarking_dscp_af32 MdtSourceQosMarking = "dscp-af32"
// 30
MdtSourceQosMarking_dscp_af33 MdtSourceQosMarking = "dscp-af33"
// 32
MdtSourceQosMarking_dscp_cs4 MdtSourceQosMarking = "dscp-cs4"
// 34
MdtSourceQosMarking_dscp_af41 MdtSourceQosMarking = "dscp-af41"
// 36
MdtSourceQosMarking_dscp_af42 MdtSourceQosMarking = "dscp-af42"
// 38
MdtSourceQosMarking_dscp_af43 MdtSourceQosMarking = "dscp-af43"
// 40
MdtSourceQosMarking_dscp_cs5 MdtSourceQosMarking = "dscp-cs5"
// 46
MdtSourceQosMarking_dscp_ef MdtSourceQosMarking = "dscp-ef"
// 48
MdtSourceQosMarking_dscp_cs6 MdtSourceQosMarking = "dscp-cs6"
// 56
MdtSourceQosMarking_dscp_cs7 MdtSourceQosMarking = "dscp-cs7"
)
// MdtDestStateEnum represents Destination state
type MdtDestStateEnum string
const (
// NA
MdtDestStateEnum_dest_not_active MdtDestStateEnum = "dest-not-active"
// Active
MdtDestStateEnum_dest_active MdtDestStateEnum = "dest-active"
// AskingPause
MdtDestStateEnum_dest_asking_pause MdtDestStateEnum = "dest-asking-pause"
// Paused
MdtDestStateEnum_dest_paused MdtDestStateEnum = "dest-paused"
// Resuming
MdtDestStateEnum_dest_resuming MdtDestStateEnum = "dest-resuming"
// ChannelNotFound
MdtDestStateEnum_dest_channel_not_found MdtDestStateEnum = "dest-channel-not-found"
)
// MdtEncodingEnum represents MDT Encoding
type MdtEncodingEnum string
const (
// ENCODING NOT SET
MdtEncodingEnum_not_set MdtEncodingEnum = "not-set"
// GPB
MdtEncodingEnum_gpb MdtEncodingEnum = "gpb"
// SELF DESCRIBING GPB
MdtEncodingEnum_self_describing_gpb MdtEncodingEnum = "self-describing-gpb"
// JSON
MdtEncodingEnum_json MdtEncodingEnum = "json"
)
// TelemetryModelDriven
// Telemetry operational data
type TelemetryModelDriven struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Telemetry Destinations.
Destinations TelemetryModelDriven_Destinations
// Telemetry Subscriptions.
Subscriptions TelemetryModelDriven_Subscriptions
// Telemetry Sensor Groups.
SensorGroups TelemetryModelDriven_SensorGroups
// Telemetry Summary info.
Summary TelemetryModelDriven_Summary
}
func (telemetryModelDriven *TelemetryModelDriven) GetEntityData() *types.CommonEntityData {
telemetryModelDriven.EntityData.YFilter = telemetryModelDriven.YFilter
telemetryModelDriven.EntityData.YangName = "telemetry-model-driven"
telemetryModelDriven.EntityData.BundleName = "cisco_ios_xr"
telemetryModelDriven.EntityData.ParentYangName = "Cisco-IOS-XR-telemetry-model-driven-oper"
telemetryModelDriven.EntityData.SegmentPath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven"
telemetryModelDriven.EntityData.AbsolutePath = telemetryModelDriven.EntityData.SegmentPath
telemetryModelDriven.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
telemetryModelDriven.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
telemetryModelDriven.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
telemetryModelDriven.EntityData.Children = types.NewOrderedMap()
telemetryModelDriven.EntityData.Children.Append("destinations", types.YChild{"Destinations", &telemetryModelDriven.Destinations})
telemetryModelDriven.EntityData.Children.Append("subscriptions", types.YChild{"Subscriptions", &telemetryModelDriven.Subscriptions})
telemetryModelDriven.EntityData.Children.Append("sensor-groups", types.YChild{"SensorGroups", &telemetryModelDriven.SensorGroups})
telemetryModelDriven.EntityData.Children.Append("summary", types.YChild{"Summary", &telemetryModelDriven.Summary})
telemetryModelDriven.EntityData.Leafs = types.NewOrderedMap()
telemetryModelDriven.EntityData.YListKeys = []string {}
return &(telemetryModelDriven.EntityData)
}
// TelemetryModelDriven_Destinations
// Telemetry Destinations
type TelemetryModelDriven_Destinations struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Telemetry Destination. The type is slice of
// TelemetryModelDriven_Destinations_Destination.
Destination []*TelemetryModelDriven_Destinations_Destination
}
func (destinations *TelemetryModelDriven_Destinations) GetEntityData() *types.CommonEntityData {
destinations.EntityData.YFilter = destinations.YFilter
destinations.EntityData.YangName = "destinations"
destinations.EntityData.BundleName = "cisco_ios_xr"
destinations.EntityData.ParentYangName = "telemetry-model-driven"
destinations.EntityData.SegmentPath = "destinations"
destinations.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/" + destinations.EntityData.SegmentPath
destinations.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destinations.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destinations.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destinations.EntityData.Children = types.NewOrderedMap()
destinations.EntityData.Children.Append("destination", types.YChild{"Destination", nil})
for i := range destinations.Destination {
destinations.EntityData.Children.Append(types.GetSegmentPath(destinations.Destination[i]), types.YChild{"Destination", destinations.Destination[i]})
}
destinations.EntityData.Leafs = types.NewOrderedMap()
destinations.EntityData.YListKeys = []string {}
return &(destinations.EntityData)
}
// TelemetryModelDriven_Destinations_Destination
// Telemetry Destination
type TelemetryModelDriven_Destinations_Destination struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Id of the destination. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
DestinationId interface{}
// Destination Group name. The type is string.
Id interface{}
// Set if this is configured destination group. The type is interface{} with
// range: 0..4294967295.
Configured interface{}
// list of destinations defined in this group. The type is slice of
// TelemetryModelDriven_Destinations_Destination_Destination.
Destination []*TelemetryModelDriven_Destinations_Destination_Destination
}
func (destination *TelemetryModelDriven_Destinations_Destination) GetEntityData() *types.CommonEntityData {
destination.EntityData.YFilter = destination.YFilter
destination.EntityData.YangName = "destination"
destination.EntityData.BundleName = "cisco_ios_xr"
destination.EntityData.ParentYangName = "destinations"
destination.EntityData.SegmentPath = "destination" + types.AddKeyToken(destination.DestinationId, "destination-id")
destination.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/" + destination.EntityData.SegmentPath
destination.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destination.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destination.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destination.EntityData.Children = types.NewOrderedMap()
destination.EntityData.Children.Append("destination", types.YChild{"Destination", nil})
for i := range destination.Destination {
types.SetYListKey(destination.Destination[i], i)
destination.EntityData.Children.Append(types.GetSegmentPath(destination.Destination[i]), types.YChild{"Destination", destination.Destination[i]})
}
destination.EntityData.Leafs = types.NewOrderedMap()
destination.EntityData.Leafs.Append("destination-id", types.YLeaf{"DestinationId", destination.DestinationId})
destination.EntityData.Leafs.Append("id", types.YLeaf{"Id", destination.Id})
destination.EntityData.Leafs.Append("configured", types.YLeaf{"Configured", destination.Configured})
destination.EntityData.YListKeys = []string {"DestinationId"}
return &(destination.EntityData)
}
// TelemetryModelDriven_Destinations_Destination_Destination
// list of destinations defined in this group
type TelemetryModelDriven_Destinations_Destination_Destination struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Destination.
Destination TelemetryModelDriven_Destinations_Destination_Destination_Destination
// List of collection groups for this destination group. The type is slice of
// TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup.
CollectionGroup []*TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup
}
func (destination *TelemetryModelDriven_Destinations_Destination_Destination) GetEntityData() *types.CommonEntityData {
destination.EntityData.YFilter = destination.YFilter
destination.EntityData.YangName = "destination"
destination.EntityData.BundleName = "cisco_ios_xr"
destination.EntityData.ParentYangName = "destination"
destination.EntityData.SegmentPath = "destination" + types.AddNoKeyToken(destination)
destination.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/destination/" + destination.EntityData.SegmentPath
destination.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destination.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destination.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destination.EntityData.Children = types.NewOrderedMap()
destination.EntityData.Children.Append("destination", types.YChild{"Destination", &destination.Destination})
destination.EntityData.Children.Append("collection-group", types.YChild{"CollectionGroup", nil})
for i := range destination.CollectionGroup {
types.SetYListKey(destination.CollectionGroup[i], i)
destination.EntityData.Children.Append(types.GetSegmentPath(destination.CollectionGroup[i]), types.YChild{"CollectionGroup", destination.CollectionGroup[i]})
}
destination.EntityData.Leafs = types.NewOrderedMap()
destination.EntityData.YListKeys = []string {}
return &(destination.EntityData)
}
// TelemetryModelDriven_Destinations_Destination_Destination_Destination
// Destination
type TelemetryModelDriven_Destinations_Destination_Destination_Destination struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Destination Id. The type is string.
Id interface{}
// Sub Idstr. The type is string.
SubIdStr interface{}
// Destination Port number. The type is interface{} with range: 0..65535.
DestPort interface{}
// Destination group encoding. The type is MdtEncodingEnum.
Encoding interface{}
// Destination group transport. The type is MdtTransportEnum.
Transport interface{}
// Destination group vrf. The type is string.
Vrf interface{}
// Destination group vrf id. The type is interface{} with range:
// 0..4294967295.
VrfId interface{}
// State of streaming on this destination. The type is MdtDestStateEnum.
State interface{}
// UDP MTU if this destination is UDP. The type is interface{} with range:
// 0..4294967295.
UdpMtu interface{}
// TLS connection to this destination. The type is interface{} with range:
// 0..4294967295.
Tls interface{}
// TLS Hostname of this destination. The type is string.
TlsHost interface{}
// Total number of packets sent for this destination. The type is interface{}
// with range: 0..18446744073709551615.
TotalNumOfPacketsSent interface{}
// Total number of bytes sent for this destination. The type is interface{}
// with range: 0..18446744073709551615. Units are byte.
TotalNumOfBytesSent interface{}
// Timestamp of the last collection. The type is interface{} with range:
// 0..18446744073709551615.
LastCollectionTime interface{}
// DSCP setting for this destination. The type is interface{} with range:
// 0..4294967295.
Dscp interface{}
// Sub Id. The type is slice of interface{} with range:
// 0..18446744073709551615.
SubId []interface{}
// Destination IP Address.
DestIpAddress TelemetryModelDriven_Destinations_Destination_Destination_Destination_DestIpAddress
}
func (destination *TelemetryModelDriven_Destinations_Destination_Destination_Destination) GetEntityData() *types.CommonEntityData {
destination.EntityData.YFilter = destination.YFilter
destination.EntityData.YangName = "destination"
destination.EntityData.BundleName = "cisco_ios_xr"
destination.EntityData.ParentYangName = "destination"
destination.EntityData.SegmentPath = "destination"
destination.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/destination/destination/" + destination.EntityData.SegmentPath
destination.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destination.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destination.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destination.EntityData.Children = types.NewOrderedMap()
destination.EntityData.Children.Append("dest-ip-address", types.YChild{"DestIpAddress", &destination.DestIpAddress})
destination.EntityData.Leafs = types.NewOrderedMap()
destination.EntityData.Leafs.Append("id", types.YLeaf{"Id", destination.Id})
destination.EntityData.Leafs.Append("sub-id-str", types.YLeaf{"SubIdStr", destination.SubIdStr})
destination.EntityData.Leafs.Append("dest-port", types.YLeaf{"DestPort", destination.DestPort})
destination.EntityData.Leafs.Append("encoding", types.YLeaf{"Encoding", destination.Encoding})
destination.EntityData.Leafs.Append("transport", types.YLeaf{"Transport", destination.Transport})
destination.EntityData.Leafs.Append("vrf", types.YLeaf{"Vrf", destination.Vrf})
destination.EntityData.Leafs.Append("vrf-id", types.YLeaf{"VrfId", destination.VrfId})
destination.EntityData.Leafs.Append("state", types.YLeaf{"State", destination.State})
destination.EntityData.Leafs.Append("udp-mtu", types.YLeaf{"UdpMtu", destination.UdpMtu})
destination.EntityData.Leafs.Append("tls", types.YLeaf{"Tls", destination.Tls})
destination.EntityData.Leafs.Append("tls-host", types.YLeaf{"TlsHost", destination.TlsHost})
destination.EntityData.Leafs.Append("total-num-of-packets-sent", types.YLeaf{"TotalNumOfPacketsSent", destination.TotalNumOfPacketsSent})
destination.EntityData.Leafs.Append("total-num-of-bytes-sent", types.YLeaf{"TotalNumOfBytesSent", destination.TotalNumOfBytesSent})
destination.EntityData.Leafs.Append("last-collection-time", types.YLeaf{"LastCollectionTime", destination.LastCollectionTime})
destination.EntityData.Leafs.Append("dscp", types.YLeaf{"Dscp", destination.Dscp})
destination.EntityData.Leafs.Append("sub-id", types.YLeaf{"SubId", destination.SubId})
destination.EntityData.YListKeys = []string {}
return &(destination.EntityData)
}
// TelemetryModelDriven_Destinations_Destination_Destination_Destination_DestIpAddress
// Destination IP Address
type TelemetryModelDriven_Destinations_Destination_Destination_Destination_DestIpAddress struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPType. The type is MdtIp.
IpType interface{}
// IPV4 Address. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Ipv4Address interface{}
// IPV6 Address. The type is string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
Ipv6Address interface{}
}
func (destIpAddress *TelemetryModelDriven_Destinations_Destination_Destination_Destination_DestIpAddress) GetEntityData() *types.CommonEntityData {
destIpAddress.EntityData.YFilter = destIpAddress.YFilter
destIpAddress.EntityData.YangName = "dest-ip-address"
destIpAddress.EntityData.BundleName = "cisco_ios_xr"
destIpAddress.EntityData.ParentYangName = "destination"
destIpAddress.EntityData.SegmentPath = "dest-ip-address"
destIpAddress.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/destination/destination/destination/" + destIpAddress.EntityData.SegmentPath
destIpAddress.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destIpAddress.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destIpAddress.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destIpAddress.EntityData.Children = types.NewOrderedMap()
destIpAddress.EntityData.Leafs = types.NewOrderedMap()
destIpAddress.EntityData.Leafs.Append("ip-type", types.YLeaf{"IpType", destIpAddress.IpType})
destIpAddress.EntityData.Leafs.Append("ipv4-address", types.YLeaf{"Ipv4Address", destIpAddress.Ipv4Address})
destIpAddress.EntityData.Leafs.Append("ipv6-address", types.YLeaf{"Ipv6Address", destIpAddress.Ipv6Address})
destIpAddress.EntityData.YListKeys = []string {}
return &(destIpAddress.EntityData)
}
// TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup
// List of collection groups for this destination
// group
type TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Collection Group id. The type is interface{} with range:
// 0..18446744073709551615.
Id interface{}
// Period of the collections (ms). The type is interface{} with range:
// 0..4294967295.
Cadence interface{}
// Completed collections count. The type is interface{} with range:
// 0..4294967295.
TotalCollections interface{}
// Destination group encoding. The type is MdtEncodingEnum.
Encoding interface{}
// Timestamp of the start of last collection. The type is interface{} with
// range: 0..18446744073709551615.
LastCollectionStartTime interface{}
// Timestamp of the end of last collection. The type is interface{} with
// range: 0..18446744073709551615.
LastCollectionEndTime interface{}
// Maximum time for a collection (ms). The type is interface{} with range:
// 0..4294967295.
MaxCollectionTime interface{}
// Minimum time for a collection (ms). The type is interface{} with range:
// 0..4294967295.
MinCollectionTime interface{}
// Minimum time for all processing (ms). The type is interface{} with range:
// 0..4294967295.
MinTotalTime interface{}
// Maximum time for all processing (ms). The type is interface{} with range:
// 0..4294967295.
MaxTotalTime interface{}
// Average time for all processing (ms). The type is interface{} with range:
// 0..4294967295.
AvgTotalTime interface{}
// Total number of errors. The type is interface{} with range: 0..4294967295.
TotalOtherErrors interface{}
// Total number of no data instances. The type is interface{} with range:
// 0..4294967295.
TotalOnDataInstances interface{}
// Total number skipped (not ready). The type is interface{} with range:
// 0..4294967295.
TotalNotReady interface{}
// Total number of send errors. The type is interface{} with range:
// 0..4294967295.
TotalSendErrors interface{}
// Total number of send drops. The type is interface{} with range:
// 0..4294967295.
TotalSendDrops interface{}
// Set if strict timer is ON. The type is bool.
StrictTimer interface{}
// Array of information for sensor paths within collection group. The type is
// slice of
// TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_CollectionPath.
CollectionPath []*TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_CollectionPath
// Array of information for sysdb paths within collection group. The type is
// slice of
// TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_InternalCollectionGroup.
InternalCollectionGroup []*TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_InternalCollectionGroup
}
func (collectionGroup *TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup) GetEntityData() *types.CommonEntityData {
collectionGroup.EntityData.YFilter = collectionGroup.YFilter
collectionGroup.EntityData.YangName = "collection-group"
collectionGroup.EntityData.BundleName = "cisco_ios_xr"
collectionGroup.EntityData.ParentYangName = "destination"
collectionGroup.EntityData.SegmentPath = "collection-group" + types.AddNoKeyToken(collectionGroup)
collectionGroup.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/destination/destination/" + collectionGroup.EntityData.SegmentPath
collectionGroup.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
collectionGroup.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
collectionGroup.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
collectionGroup.EntityData.Children = types.NewOrderedMap()
collectionGroup.EntityData.Children.Append("collection-path", types.YChild{"CollectionPath", nil})
for i := range collectionGroup.CollectionPath {
types.SetYListKey(collectionGroup.CollectionPath[i], i)
collectionGroup.EntityData.Children.Append(types.GetSegmentPath(collectionGroup.CollectionPath[i]), types.YChild{"CollectionPath", collectionGroup.CollectionPath[i]})
}
collectionGroup.EntityData.Children.Append("internal-collection-group", types.YChild{"InternalCollectionGroup", nil})
for i := range collectionGroup.InternalCollectionGroup {
types.SetYListKey(collectionGroup.InternalCollectionGroup[i], i)
collectionGroup.EntityData.Children.Append(types.GetSegmentPath(collectionGroup.InternalCollectionGroup[i]), types.YChild{"InternalCollectionGroup", collectionGroup.InternalCollectionGroup[i]})
}
collectionGroup.EntityData.Leafs = types.NewOrderedMap()
collectionGroup.EntityData.Leafs.Append("id", types.YLeaf{"Id", collectionGroup.Id})
collectionGroup.EntityData.Leafs.Append("cadence", types.YLeaf{"Cadence", collectionGroup.Cadence})
collectionGroup.EntityData.Leafs.Append("total-collections", types.YLeaf{"TotalCollections", collectionGroup.TotalCollections})
collectionGroup.EntityData.Leafs.Append("encoding", types.YLeaf{"Encoding", collectionGroup.Encoding})
collectionGroup.EntityData.Leafs.Append("last-collection-start-time", types.YLeaf{"LastCollectionStartTime", collectionGroup.LastCollectionStartTime})
collectionGroup.EntityData.Leafs.Append("last-collection-end-time", types.YLeaf{"LastCollectionEndTime", collectionGroup.LastCollectionEndTime})
collectionGroup.EntityData.Leafs.Append("max-collection-time", types.YLeaf{"MaxCollectionTime", collectionGroup.MaxCollectionTime})
collectionGroup.EntityData.Leafs.Append("min-collection-time", types.YLeaf{"MinCollectionTime", collectionGroup.MinCollectionTime})
collectionGroup.EntityData.Leafs.Append("min-total-time", types.YLeaf{"MinTotalTime", collectionGroup.MinTotalTime})
collectionGroup.EntityData.Leafs.Append("max-total-time", types.YLeaf{"MaxTotalTime", collectionGroup.MaxTotalTime})
collectionGroup.EntityData.Leafs.Append("avg-total-time", types.YLeaf{"AvgTotalTime", collectionGroup.AvgTotalTime})
collectionGroup.EntityData.Leafs.Append("total-other-errors", types.YLeaf{"TotalOtherErrors", collectionGroup.TotalOtherErrors})
collectionGroup.EntityData.Leafs.Append("total-on-data-instances", types.YLeaf{"TotalOnDataInstances", collectionGroup.TotalOnDataInstances})
collectionGroup.EntityData.Leafs.Append("total-not-ready", types.YLeaf{"TotalNotReady", collectionGroup.TotalNotReady})
collectionGroup.EntityData.Leafs.Append("total-send-errors", types.YLeaf{"TotalSendErrors", collectionGroup.TotalSendErrors})
collectionGroup.EntityData.Leafs.Append("total-send-drops", types.YLeaf{"TotalSendDrops", collectionGroup.TotalSendDrops})
collectionGroup.EntityData.Leafs.Append("strict-timer", types.YLeaf{"StrictTimer", collectionGroup.StrictTimer})
collectionGroup.EntityData.YListKeys = []string {}
return &(collectionGroup.EntityData)
}
// TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_CollectionPath
// Array of information for sensor paths within
// collection group
type TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_CollectionPath struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Sensor Path. The type is string.
Path interface{}
// State, if sensor path is resolved or not. The type is bool.
State interface{}
// Error str, if there are any errors resolving the sensor path. The type is
// string.
StatusStr interface{}
}
func (collectionPath *TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_CollectionPath) GetEntityData() *types.CommonEntityData {
collectionPath.EntityData.YFilter = collectionPath.YFilter
collectionPath.EntityData.YangName = "collection-path"
collectionPath.EntityData.BundleName = "cisco_ios_xr"
collectionPath.EntityData.ParentYangName = "collection-group"
collectionPath.EntityData.SegmentPath = "collection-path" + types.AddNoKeyToken(collectionPath)
collectionPath.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/destination/destination/collection-group/" + collectionPath.EntityData.SegmentPath
collectionPath.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
collectionPath.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
collectionPath.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
collectionPath.EntityData.Children = types.NewOrderedMap()
collectionPath.EntityData.Leafs = types.NewOrderedMap()
collectionPath.EntityData.Leafs.Append("path", types.YLeaf{"Path", collectionPath.Path})
collectionPath.EntityData.Leafs.Append("state", types.YLeaf{"State", collectionPath.State})
collectionPath.EntityData.Leafs.Append("status-str", types.YLeaf{"StatusStr", collectionPath.StatusStr})
collectionPath.EntityData.YListKeys = []string {}
return &(collectionPath.EntityData)
}
// TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_InternalCollectionGroup
// Array of information for sysdb paths within
// collection group
type TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_InternalCollectionGroup struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Sysdb Path. The type is string.
Path interface{}
// Period of the collections (ms). The type is interface{} with range:
// 0..18446744073709551615.
Cadence interface{}
// Total number of gets. The type is interface{} with range:
// 0..18446744073709551615.
TotalGetCount interface{}
// Total number of lists. The type is interface{} with range:
// 0..18446744073709551615.
TotalListCount interface{}
// Total number of datalists. The type is interface{} with range:
// 0..18446744073709551615.
TotalDatalistCount interface{}
// Total number of finddata. The type is interface{} with range:
// 0..18446744073709551615.
TotalFinddataCount interface{}
// Total number of get bulk. The type is interface{} with range:
// 0..18446744073709551615.
TotalGetBulkCount interface{}
// Total number of items retrived from sysdb. The type is interface{} with
// range: 0..18446744073709551615.
TotalItemCount interface{}
// Total number of get errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalGetErrors interface{}
// Total number of list errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalListErrors interface{}
// Total number of datalist errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalDatalistErrors interface{}
// Total number of finddata errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalFinddataErrors interface{}
// Total number of get bulk errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalGetBulkErrors interface{}
// Total number of encode errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalEncodeErrors interface{}
// Total number of encode deferred. The type is interface{} with range:
// 0..18446744073709551615.
TotalEncodeNotready interface{}
// Total number of send errors. The type is interface{} with range:
// 0..18446744073709551615.
TotalSendErrors interface{}
// Total number of send channel full. The type is interface{} with range:
// 0..18446744073709551615.
TotalSendDrops interface{}
// Total number of bytes sent. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
TotalSentBytes interface{}
// Total number of packets sent. The type is interface{} with range:
// 0..18446744073709551615.
TotalSendPackets interface{}
// Total number of send bytes dropped. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
TotalSendBytesDropped interface{}
// Completed collections count. The type is interface{} with range:
// 0..18446744073709551615.
TotalCollections interface{}
// Total number of collections missed. The type is interface{} with range:
// 0..18446744073709551615.
TotalCollectionsMissed interface{}
// Maximum time for a collection (ms). The type is interface{} with range:
// 0..18446744073709551615.
MaxCollectionTime interface{}
// Minimum time for a collection (ms). The type is interface{} with range:
// 0..18446744073709551615.
MinCollectionTime interface{}
// Average time for a collection (ms). The type is interface{} with range:
// 0..18446744073709551615.
AvgCollectionTime interface{}
// Collection method in use. The type is interface{} with range:
// 0..18446744073709551615.
CollectionMethod interface{}
// Status of collection path. The type is MdtInternalPathStatus.
Status interface{}
}
func (internalCollectionGroup *TelemetryModelDriven_Destinations_Destination_Destination_CollectionGroup_InternalCollectionGroup) GetEntityData() *types.CommonEntityData {
internalCollectionGroup.EntityData.YFilter = internalCollectionGroup.YFilter
internalCollectionGroup.EntityData.YangName = "internal-collection-group"
internalCollectionGroup.EntityData.BundleName = "cisco_ios_xr"
internalCollectionGroup.EntityData.ParentYangName = "collection-group"
internalCollectionGroup.EntityData.SegmentPath = "internal-collection-group" + types.AddNoKeyToken(internalCollectionGroup)
internalCollectionGroup.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/destinations/destination/destination/collection-group/" + internalCollectionGroup.EntityData.SegmentPath
internalCollectionGroup.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
internalCollectionGroup.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
internalCollectionGroup.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
internalCollectionGroup.EntityData.Children = types.NewOrderedMap()
internalCollectionGroup.EntityData.Leafs = types.NewOrderedMap()
internalCollectionGroup.EntityData.Leafs.Append("path", types.YLeaf{"Path", internalCollectionGroup.Path})
internalCollectionGroup.EntityData.Leafs.Append("cadence", types.YLeaf{"Cadence", internalCollectionGroup.Cadence})
internalCollectionGroup.EntityData.Leafs.Append("total-get-count", types.YLeaf{"TotalGetCount", internalCollectionGroup.TotalGetCount})
internalCollectionGroup.EntityData.Leafs.Append("total-list-count", types.YLeaf{"TotalListCount", internalCollectionGroup.TotalListCount})
internalCollectionGroup.EntityData.Leafs.Append("total-datalist-count", types.YLeaf{"TotalDatalistCount", internalCollectionGroup.TotalDatalistCount})
internalCollectionGroup.EntityData.Leafs.Append("total-finddata-count", types.YLeaf{"TotalFinddataCount", internalCollectionGroup.TotalFinddataCount})
internalCollectionGroup.EntityData.Leafs.Append("total-get-bulk-count", types.YLeaf{"TotalGetBulkCount", internalCollectionGroup.TotalGetBulkCount})
internalCollectionGroup.EntityData.Leafs.Append("total-item-count", types.YLeaf{"TotalItemCount", internalCollectionGroup.TotalItemCount})
internalCollectionGroup.EntityData.Leafs.Append("total-get-errors", types.YLeaf{"TotalGetErrors", internalCollectionGroup.TotalGetErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-list-errors", types.YLeaf{"TotalListErrors", internalCollectionGroup.TotalListErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-datalist-errors", types.YLeaf{"TotalDatalistErrors", internalCollectionGroup.TotalDatalistErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-finddata-errors", types.YLeaf{"TotalFinddataErrors", internalCollectionGroup.TotalFinddataErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-get-bulk-errors", types.YLeaf{"TotalGetBulkErrors", internalCollectionGroup.TotalGetBulkErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-encode-errors", types.YLeaf{"TotalEncodeErrors", internalCollectionGroup.TotalEncodeErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-encode-notready", types.YLeaf{"TotalEncodeNotready", internalCollectionGroup.TotalEncodeNotready})
internalCollectionGroup.EntityData.Leafs.Append("total-send-errors", types.YLeaf{"TotalSendErrors", internalCollectionGroup.TotalSendErrors})
internalCollectionGroup.EntityData.Leafs.Append("total-send-drops", types.YLeaf{"TotalSendDrops", internalCollectionGroup.TotalSendDrops})
internalCollectionGroup.EntityData.Leafs.Append("total-sent-bytes", types.YLeaf{"TotalSentBytes", internalCollectionGroup.TotalSentBytes})
internalCollectionGroup.EntityData.Leafs.Append("total-send-packets", types.YLeaf{"TotalSendPackets", internalCollectionGroup.TotalSendPackets})
internalCollectionGroup.EntityData.Leafs.Append("total-send-bytes-dropped", types.YLeaf{"TotalSendBytesDropped", internalCollectionGroup.TotalSendBytesDropped})
internalCollectionGroup.EntityData.Leafs.Append("total-collections", types.YLeaf{"TotalCollections", internalCollectionGroup.TotalCollections})
internalCollectionGroup.EntityData.Leafs.Append("total-collections-missed", types.YLeaf{"TotalCollectionsMissed", internalCollectionGroup.TotalCollectionsMissed})
internalCollectionGroup.EntityData.Leafs.Append("max-collection-time", types.YLeaf{"MaxCollectionTime", internalCollectionGroup.MaxCollectionTime})
internalCollectionGroup.EntityData.Leafs.Append("min-collection-time", types.YLeaf{"MinCollectionTime", internalCollectionGroup.MinCollectionTime})
internalCollectionGroup.EntityData.Leafs.Append("avg-collection-time", types.YLeaf{"AvgCollectionTime", internalCollectionGroup.AvgCollectionTime})
internalCollectionGroup.EntityData.Leafs.Append("collection-method", types.YLeaf{"CollectionMethod", internalCollectionGroup.CollectionMethod})
internalCollectionGroup.EntityData.Leafs.Append("status", types.YLeaf{"Status", internalCollectionGroup.Status})
internalCollectionGroup.EntityData.YListKeys = []string {}
return &(internalCollectionGroup.EntityData)
}
// TelemetryModelDriven_Subscriptions
// Telemetry Subscriptions
type TelemetryModelDriven_Subscriptions struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Telemetry Subscription. The type is slice of
// TelemetryModelDriven_Subscriptions_Subscription.
Subscription []*TelemetryModelDriven_Subscriptions_Subscription
}
func (subscriptions *TelemetryModelDriven_Subscriptions) GetEntityData() *types.CommonEntityData {
subscriptions.EntityData.YFilter = subscriptions.YFilter
subscriptions.EntityData.YangName = "subscriptions"
subscriptions.EntityData.BundleName = "cisco_ios_xr"
subscriptions.EntityData.ParentYangName = "telemetry-model-driven"
subscriptions.EntityData.SegmentPath = "subscriptions"
subscriptions.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/" + subscriptions.EntityData.SegmentPath
subscriptions.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
subscriptions.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
subscriptions.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
subscriptions.EntityData.Children = types.NewOrderedMap()
subscriptions.EntityData.Children.Append("subscription", types.YChild{"Subscription", nil})
for i := range subscriptions.Subscription {
subscriptions.EntityData.Children.Append(types.GetSegmentPath(subscriptions.Subscription[i]), types.YChild{"Subscription", subscriptions.Subscription[i]})
}
subscriptions.EntityData.Leafs = types.NewOrderedMap()
subscriptions.EntityData.YListKeys = []string {}
return &(subscriptions.EntityData)
}
// TelemetryModelDriven_Subscriptions_Subscription
// Telemetry Subscription
type TelemetryModelDriven_Subscriptions_Subscription struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Id of the subscription. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
SubscriptionId interface{}
// Subscription.
Subscription TelemetryModelDriven_Subscriptions_Subscription_Subscription
// List of collection groups active for this subscription. The type is slice
// of TelemetryModelDriven_Subscriptions_Subscription_CollectionGroup.
CollectionGroup []*TelemetryModelDriven_Subscriptions_Subscription_CollectionGroup
}
func (subscription *TelemetryModelDriven_Subscriptions_Subscription) GetEntityData() *types.CommonEntityData {
subscription.EntityData.YFilter = subscription.YFilter
subscription.EntityData.YangName = "subscription"
subscription.EntityData.BundleName = "cisco_ios_xr"
subscription.EntityData.ParentYangName = "subscriptions"
subscription.EntityData.SegmentPath = "subscription" + types.AddKeyToken(subscription.SubscriptionId, "subscription-id")
subscription.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/subscriptions/" + subscription.EntityData.SegmentPath
subscription.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
subscription.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
subscription.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
subscription.EntityData.Children = types.NewOrderedMap()
subscription.EntityData.Children.Append("subscription", types.YChild{"Subscription", &subscription.Subscription})
subscription.EntityData.Children.Append("collection-group", types.YChild{"CollectionGroup", nil})
for i := range subscription.CollectionGroup {
types.SetYListKey(subscription.CollectionGroup[i], i)
subscription.EntityData.Children.Append(types.GetSegmentPath(subscription.CollectionGroup[i]), types.YChild{"CollectionGroup", subscription.CollectionGroup[i]})
}
subscription.EntityData.Leafs = types.NewOrderedMap()
subscription.EntityData.Leafs.Append("subscription-id", types.YLeaf{"SubscriptionId", subscription.SubscriptionId})
subscription.EntityData.YListKeys = []string {"SubscriptionId"}
return &(subscription.EntityData)
}
// TelemetryModelDriven_Subscriptions_Subscription_Subscription
// Subscription
type TelemetryModelDriven_Subscriptions_Subscription_Subscription struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Collection Subscription name. The type is string.
Id interface{}
// Subscription state. The type is MdtSubsStateEnum.
State interface{}
// DSCP. The type is MdtSourceQosMarking.
SourceQosMarking interface{}
// configured source interface.
SourceInterface TelemetryModelDriven_Subscriptions_Subscription_Subscription_SourceInterface
// List of sensor groups within a subscription. The type is slice of
// TelemetryModelDriven_Subscriptions_Subscription_Subscription_SensorProfile.
SensorProfile []*TelemetryModelDriven_Subscriptions_Subscription_Subscription_SensorProfile
// Array of destinations within a subscription. The type is slice of
// TelemetryModelDriven_Subscriptions_Subscription_Subscription_DestinationGrp.
DestinationGrp []*TelemetryModelDriven_Subscriptions_Subscription_Subscription_DestinationGrp
}
func (subscription *TelemetryModelDriven_Subscriptions_Subscription_Subscription) GetEntityData() *types.CommonEntityData {
subscription.EntityData.YFilter = subscription.YFilter
subscription.EntityData.YangName = "subscription"
subscription.EntityData.BundleName = "cisco_ios_xr"
subscription.EntityData.ParentYangName = "subscription"
subscription.EntityData.SegmentPath = "subscription"
subscription.EntityData.AbsolutePath = "Cisco-IOS-XR-telemetry-model-driven-oper:telemetry-model-driven/subscriptions/subscription/" + subscription.EntityData.SegmentPath
subscription.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
subscription.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
subscription.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
subscription.EntityData.Children = types.NewOrderedMap()
subscription.EntityData.Children.Append("source-interface", types.YChild{"SourceInterface", &subscription.SourceInterface})
subscription.EntityData.Children.Append("sensor-profile", types.YChild{"SensorProfile", nil})
for i := range subscription.SensorProfile {
types.SetYListKey(subscription.SensorProfile[i], i)
subscription.EntityData.Children.Append(types.GetSegmentPath(subscription.SensorProfile[i]), types.YChild{"SensorProfile", subscription.SensorProfile[i]})
}
subscription.EntityData.Children.Append("destination-grp", types.YChild{"DestinationGrp", nil})
for i := range subscription.DestinationGrp {
types.SetYListKey(subscription.DestinationGrp[i], i)
subscription.EntityData.Children.Append(types.GetSegmentPath(subscription.DestinationGrp[i]), types.YChild{"DestinationGrp", subscription.DestinationGrp[i]})
}
subscription.EntityData.Leafs = types.NewOrderedMap()
subscription.EntityData.Leafs.Append("id", types.YLeaf{"Id", subscription.Id})
subscription.EntityData.Leafs.Append("state", types.YLeaf{"State", subscription.State})
subscription.EntityData.Leafs.Append("source-qos-marking", types.YLeaf{"SourceQosMarking", subscription.SourceQosMarking})
subscription.EntityData.YListKeys = []string {}
return &(subscription.EntityData)
}
// TelemetryModelDriven_Subscriptions_Subscription_Subscription_SourceInterface
// configured source interface
type TelemetryModelDriven_Subscriptions_Subscription_Subscription_SourceInterface struct {
EntityData types.CommonEntityData