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
/
cisco_dynamic_template_mib.go
2215 lines (1921 loc) · 140 KB
/
cisco_dynamic_template_mib.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 MIB defines objects that describe dynamic templates. A
// dynamic template is a set of configuration attributes that a
// system can dynamically apply to a target.
//
// The target of a dynamic template is the entity configured by the
// system using the configuration attributes contained by a
// template. At the time of this writing, an interface represents
// the only valid target of a dynamic template. However, the
// architecture does not prevent other target types, and hence, the
// MIB definition generalizes the notion of a target to allow for
// this.
//
// Generally, the system does not directly apply the attributes
// contained by a dynamic template to an associated
// target. The system might generate a derived configuration from
// the set of dynamic templates associated with the target. A
// derived configuration represents the union of the configuration
// attributes contained by each associated dynamic template. In
// the case of a conflict (i.e., more than one dynamic template
// specifies the same configuration attribute), the system accepts
// the configuration attribute from the dynamic template with the
// highest precedence.
package cisco_dynamic_template_mib
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_xe"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package cisco_dynamic_template_mib"))
ydk.RegisterEntity("{urn:ietf:params:xml:ns:yang:smiv2:CISCO-DYNAMIC-TEMPLATE-MIB CISCO-DYNAMIC-TEMPLATE-MIB}", reflect.TypeOf(CISCODYNAMICTEMPLATEMIB{}))
ydk.RegisterEntity("CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB", reflect.TypeOf(CISCODYNAMICTEMPLATEMIB{}))
}
// CISCODYNAMICTEMPLATEMIB
type CISCODYNAMICTEMPLATEMIB struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// This table lists the dynamic templates maintained by the system, including
// those that have been locally-configured on the system and those pushed to
// the system by external policy servers.
CdtTemplateTable CISCODYNAMICTEMPLATEMIB_CdtTemplateTable
// This table contains a list of targets associated with one or more dynamic
// templates.
CdtTemplateTargetTable CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable
// This table contains a list of templates associated with each target. This
// table has an expansion dependent relationship on the
// cdtTemplateTargetTable, containing zero or more rows for each target.
CdtTemplateAssociationTable CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable
// This table contains a list of targets using each dynamic template. This
// table has an expansion dependent relationship on the cdtTemplateTable,
// containing zero or more rows for each dynamic template.
CdtTemplateUsageTable CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable
// This table contains attributes relating to all dynamic templates. Observe
// that the type of dynamic templates containing these attributes may change
// with the addition of new dynamic template types. This table has a
// sparse-dependent relationship on the cdtTemplateTable, containing a row for
// each dynamic template having a cdtTemplateType of one of the following
// values: 'derived' 'ppp' 'ethernet' 'ipSubscriber'
// 'service'.
CdtTemplateCommonTable CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable
// This table contains attributes relating to interface configuration. This
// table has a sparse-dependent relationship on the cdtTemplateTable,
// containing a row for each dynamic template having a cdtTemplateType of one
// of the following values: 'derived' 'ppp' 'ethernet'
// 'ipSubscriber'.
CdtIfTemplateTable CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable
// This table contains attributes relating to PPP connection configuration.
// This table has a sparse-dependent relationship on the cdtTemplateTable,
// containing a row for each dynamic template having a cdtTemplateType of one
// of the following values: 'derived' 'ppp'.
CdtPppTemplateTable CISCODYNAMICTEMPLATEMIB_CdtPppTemplateTable
// This table contains a prioritized list of named pools for each PPP
// template. A list corresponding to a PPP template specifies the pools the
// system searches in an attempt to assign an IP address to the peer of a
// target PPP connection. The system searches the pools in the order of their
// priority. This table has an expansion dependent relationship on the
// cdtPppTemplateTable, containing zero or more rows for each PPP template.
CdtPppPeerIpAddrPoolTable CISCODYNAMICTEMPLATEMIB_CdtPppPeerIpAddrPoolTable
// This table contains attributes relating to dynamic interfaces initiated on
// Ethernet virtual interfaces (e.g., EoMPLS) or automatically created VLANs.
// This table has a sparse-dependent relationship on the cdtTemplateTable,
// containing a row for each dynamic template having a cdtTemplateType of one
// of the following values: 'derived' 'ethernet'.
CdtEthernetTemplateTable CISCODYNAMICTEMPLATEMIB_CdtEthernetTemplateTable
// This table contains attributes relating to a service. This table has a
// sparse-dependent relationship on the cdtTemplateTable, containing a row for
// each dynamic template having a cdtTemplateType of one of the following
// values: 'derived' 'service'.
CdtSrvTemplateTable CISCODYNAMICTEMPLATEMIB_CdtSrvTemplateTable
}
func (cISCODYNAMICTEMPLATEMIB *CISCODYNAMICTEMPLATEMIB) GetEntityData() *types.CommonEntityData {
cISCODYNAMICTEMPLATEMIB.EntityData.YFilter = cISCODYNAMICTEMPLATEMIB.YFilter
cISCODYNAMICTEMPLATEMIB.EntityData.YangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cISCODYNAMICTEMPLATEMIB.EntityData.BundleName = "cisco_ios_xe"
cISCODYNAMICTEMPLATEMIB.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cISCODYNAMICTEMPLATEMIB.EntityData.SegmentPath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB"
cISCODYNAMICTEMPLATEMIB.EntityData.AbsolutePath = cISCODYNAMICTEMPLATEMIB.EntityData.SegmentPath
cISCODYNAMICTEMPLATEMIB.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cISCODYNAMICTEMPLATEMIB.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cISCODYNAMICTEMPLATEMIB.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cISCODYNAMICTEMPLATEMIB.EntityData.Children = types.NewOrderedMap()
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtTemplateTable", types.YChild{"CdtTemplateTable", &cISCODYNAMICTEMPLATEMIB.CdtTemplateTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtTemplateTargetTable", types.YChild{"CdtTemplateTargetTable", &cISCODYNAMICTEMPLATEMIB.CdtTemplateTargetTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtTemplateAssociationTable", types.YChild{"CdtTemplateAssociationTable", &cISCODYNAMICTEMPLATEMIB.CdtTemplateAssociationTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtTemplateUsageTable", types.YChild{"CdtTemplateUsageTable", &cISCODYNAMICTEMPLATEMIB.CdtTemplateUsageTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtTemplateCommonTable", types.YChild{"CdtTemplateCommonTable", &cISCODYNAMICTEMPLATEMIB.CdtTemplateCommonTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtIfTemplateTable", types.YChild{"CdtIfTemplateTable", &cISCODYNAMICTEMPLATEMIB.CdtIfTemplateTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtPppTemplateTable", types.YChild{"CdtPppTemplateTable", &cISCODYNAMICTEMPLATEMIB.CdtPppTemplateTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtPppPeerIpAddrPoolTable", types.YChild{"CdtPppPeerIpAddrPoolTable", &cISCODYNAMICTEMPLATEMIB.CdtPppPeerIpAddrPoolTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtEthernetTemplateTable", types.YChild{"CdtEthernetTemplateTable", &cISCODYNAMICTEMPLATEMIB.CdtEthernetTemplateTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Children.Append("cdtSrvTemplateTable", types.YChild{"CdtSrvTemplateTable", &cISCODYNAMICTEMPLATEMIB.CdtSrvTemplateTable})
cISCODYNAMICTEMPLATEMIB.EntityData.Leafs = types.NewOrderedMap()
cISCODYNAMICTEMPLATEMIB.EntityData.YListKeys = []string {}
return &(cISCODYNAMICTEMPLATEMIB.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTable
// This table lists the dynamic templates maintained by the
// system, including those that have been locally-configured on the
// system and those pushed to the system by external policy
// servers.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry describes a dynamic template, which serves as a container for
// configuration attributes. The configuration attributes contained by a
// dynamic template depends on its type. The system automatically creates a
// corresponding entry when a dynamic template has been created through
// another management entity (e.g., the system's local console). Likewise,
// the system automatically destroys a corresponding entry when a dynamic
// template has been destroyed through another management entity. The system
// automatically creates a corresponding entry when an external policy server
// pushes a user profile or a service profile to the system. The system
// automatically creates a corresponding entry when it generates a derived
// configuration. The type is slice of
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry.
CdtTemplateEntry []*CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry
}
func (cdtTemplateTable *CISCODYNAMICTEMPLATEMIB_CdtTemplateTable) GetEntityData() *types.CommonEntityData {
cdtTemplateTable.EntityData.YFilter = cdtTemplateTable.YFilter
cdtTemplateTable.EntityData.YangName = "cdtTemplateTable"
cdtTemplateTable.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateTable.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cdtTemplateTable.EntityData.SegmentPath = "cdtTemplateTable"
cdtTemplateTable.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/" + cdtTemplateTable.EntityData.SegmentPath
cdtTemplateTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateTable.EntityData.Children = types.NewOrderedMap()
cdtTemplateTable.EntityData.Children.Append("cdtTemplateEntry", types.YChild{"CdtTemplateEntry", nil})
for i := range cdtTemplateTable.CdtTemplateEntry {
cdtTemplateTable.EntityData.Children.Append(types.GetSegmentPath(cdtTemplateTable.CdtTemplateEntry[i]), types.YChild{"CdtTemplateEntry", cdtTemplateTable.CdtTemplateEntry[i]})
}
cdtTemplateTable.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateTable.EntityData.YListKeys = []string {}
return &(cdtTemplateTable.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry
// An entry describes a dynamic template, which serves as a
// container for configuration attributes. The configuration
// attributes contained by a dynamic template depends on its type.
//
// The system automatically creates a corresponding entry when a
// dynamic template has been created through another management
// entity (e.g., the system's local console). Likewise, the system
// automatically destroys a corresponding entry when a dynamic
// template has been destroyed through another management entity.
//
// The system automatically creates a corresponding entry when an
// external policy server pushes a user profile or a service
// profile to the system.
//
// The system automatically creates a corresponding entry when it
// generates a derived configuration.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. This object indicates a string-value that uniquely
// identifies the dynamic template. If the corresponding instance of
// cdtTemplateSrc is not 'local', then the system automatically generates the
// name identifying the dynamic template. The type is string with length:
// 1..64.
CdtTemplateName interface{}
// This object specifies the status of the dynamic template. The following
// columns must be valid before activating a dynamic template: -
// cdtTemplateStorage - cdtTemplateType However, these objects specify a
// default value. Thus, it is possible to use create-and-go semantics without
// setting any additional columns. An implementation must allow the EMS/NMS
// to modify any column when this column is 'active', including columns
// defined in tables that have a one-to-one or sparse dependent relationship
// on this table. The type is RowStatus.
CdtTemplateStatus interface{}
// This object specifies what happens to the dynamic template upon restart.
// If the corresponding instance of cdtTemplateSrc is not 'local', then this
// column must be 'volatile'. The type is StorageType.
CdtTemplateStorage interface{}
// This object indicates the types of dynamic template. The type is
// DynamicTemplateType.
CdtTemplateType interface{}
// This object specifies the source of the dynamic template: 'other' The
// implementation of the MIB module does not recognize the source of the
// dynamic template. 'derived' The system created the set of attributes
// from one or more dynamic templates. 'local' The dynamic template
// was locally configured through a management entity, such as the local
// console or a SNMP entity. 'aaaUserProfile' The dynamic template
// originated from a user profile pushed from an external policy server.
// 'aaaServiceProfile' The dynamic template originated from a service
// profile pushed from an external policy server. The type is
// CdtTemplateSrc.
CdtTemplateSrc interface{}
// This object specifies the number of targets using a dynamic template. The
// type is interface{} with range: 0..4294967295.
CdtTemplateUsageCount interface{}
}
func (cdtTemplateEntry *CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry) GetEntityData() *types.CommonEntityData {
cdtTemplateEntry.EntityData.YFilter = cdtTemplateEntry.YFilter
cdtTemplateEntry.EntityData.YangName = "cdtTemplateEntry"
cdtTemplateEntry.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateEntry.EntityData.ParentYangName = "cdtTemplateTable"
cdtTemplateEntry.EntityData.SegmentPath = "cdtTemplateEntry" + types.AddKeyToken(cdtTemplateEntry.CdtTemplateName, "cdtTemplateName")
cdtTemplateEntry.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/cdtTemplateTable/" + cdtTemplateEntry.EntityData.SegmentPath
cdtTemplateEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateEntry.EntityData.Children = types.NewOrderedMap()
cdtTemplateEntry.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateEntry.EntityData.Leafs.Append("cdtTemplateName", types.YLeaf{"CdtTemplateName", cdtTemplateEntry.CdtTemplateName})
cdtTemplateEntry.EntityData.Leafs.Append("cdtTemplateStatus", types.YLeaf{"CdtTemplateStatus", cdtTemplateEntry.CdtTemplateStatus})
cdtTemplateEntry.EntityData.Leafs.Append("cdtTemplateStorage", types.YLeaf{"CdtTemplateStorage", cdtTemplateEntry.CdtTemplateStorage})
cdtTemplateEntry.EntityData.Leafs.Append("cdtTemplateType", types.YLeaf{"CdtTemplateType", cdtTemplateEntry.CdtTemplateType})
cdtTemplateEntry.EntityData.Leafs.Append("cdtTemplateSrc", types.YLeaf{"CdtTemplateSrc", cdtTemplateEntry.CdtTemplateSrc})
cdtTemplateEntry.EntityData.Leafs.Append("cdtTemplateUsageCount", types.YLeaf{"CdtTemplateUsageCount", cdtTemplateEntry.CdtTemplateUsageCount})
cdtTemplateEntry.EntityData.YListKeys = []string {"CdtTemplateName"}
return &(cdtTemplateEntry.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc represents pushed from an external policy server.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc string
const (
CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc_other CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc = "other"
CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc_derived CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc = "derived"
CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc_local CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc = "local"
CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc_aaaUserProfile CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc = "aaaUserProfile"
CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc_aaaServiceProfile CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateSrc = "aaaServiceProfile"
)
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable
// This table contains a list of targets associated with
// one or more dynamic templates.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry describes a target associated with one or more dynamic templates.
// The system automatically creates an entry when it associates a dynamic
// template to a target. Likewise, the system automatically destroys an entry
// when a target no longer has any associated dynamic templates. The type is
// slice of
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry.
CdtTemplateTargetEntry []*CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry
}
func (cdtTemplateTargetTable *CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable) GetEntityData() *types.CommonEntityData {
cdtTemplateTargetTable.EntityData.YFilter = cdtTemplateTargetTable.YFilter
cdtTemplateTargetTable.EntityData.YangName = "cdtTemplateTargetTable"
cdtTemplateTargetTable.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateTargetTable.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cdtTemplateTargetTable.EntityData.SegmentPath = "cdtTemplateTargetTable"
cdtTemplateTargetTable.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/" + cdtTemplateTargetTable.EntityData.SegmentPath
cdtTemplateTargetTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateTargetTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateTargetTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateTargetTable.EntityData.Children = types.NewOrderedMap()
cdtTemplateTargetTable.EntityData.Children.Append("cdtTemplateTargetEntry", types.YChild{"CdtTemplateTargetEntry", nil})
for i := range cdtTemplateTargetTable.CdtTemplateTargetEntry {
cdtTemplateTargetTable.EntityData.Children.Append(types.GetSegmentPath(cdtTemplateTargetTable.CdtTemplateTargetEntry[i]), types.YChild{"CdtTemplateTargetEntry", cdtTemplateTargetTable.CdtTemplateTargetEntry[i]})
}
cdtTemplateTargetTable.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateTargetTable.EntityData.YListKeys = []string {}
return &(cdtTemplateTargetTable.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry
// An entry describes a target associated with one or more
// dynamic templates.
//
// The system automatically creates an entry when it associates a
// dynamic template to a target. Likewise, the system
// automatically destroys an entry when a target no longer has any
// associated dynamic templates.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. This object indicates the type of target. The type
// is DynamicTemplateTargetType.
CdtTemplateTargetType interface{}
// This attribute is a key. This object uniquely identifies the target within
// the scope of its type. The type is string with length: 1..20.
CdtTemplateTargetId interface{}
// This object specifies the status of the dynamic template target. The
// following columns must be valid before activating a subscriber access
// profile: - cdtTemplateTargetStorage However, these objects specify a
// default value. Thus, it is possible to use create-and-go semantics without
// setting any additional columns. An implementation must allow the EMS/NMS
// to modify any column when this column is 'active', including columns
// defined in tables that have a one-to-one or sparse dependent relationship
// on this table. The type is RowStatus.
CdtTemplateTargetStatus interface{}
// This object specifies what happens to the dynamic template target upon
// restart. The type is StorageType.
CdtTemplateTargetStorage interface{}
}
func (cdtTemplateTargetEntry *CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry) GetEntityData() *types.CommonEntityData {
cdtTemplateTargetEntry.EntityData.YFilter = cdtTemplateTargetEntry.YFilter
cdtTemplateTargetEntry.EntityData.YangName = "cdtTemplateTargetEntry"
cdtTemplateTargetEntry.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateTargetEntry.EntityData.ParentYangName = "cdtTemplateTargetTable"
cdtTemplateTargetEntry.EntityData.SegmentPath = "cdtTemplateTargetEntry" + types.AddKeyToken(cdtTemplateTargetEntry.CdtTemplateTargetType, "cdtTemplateTargetType") + types.AddKeyToken(cdtTemplateTargetEntry.CdtTemplateTargetId, "cdtTemplateTargetId")
cdtTemplateTargetEntry.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/cdtTemplateTargetTable/" + cdtTemplateTargetEntry.EntityData.SegmentPath
cdtTemplateTargetEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateTargetEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateTargetEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateTargetEntry.EntityData.Children = types.NewOrderedMap()
cdtTemplateTargetEntry.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateTargetEntry.EntityData.Leafs.Append("cdtTemplateTargetType", types.YLeaf{"CdtTemplateTargetType", cdtTemplateTargetEntry.CdtTemplateTargetType})
cdtTemplateTargetEntry.EntityData.Leafs.Append("cdtTemplateTargetId", types.YLeaf{"CdtTemplateTargetId", cdtTemplateTargetEntry.CdtTemplateTargetId})
cdtTemplateTargetEntry.EntityData.Leafs.Append("cdtTemplateTargetStatus", types.YLeaf{"CdtTemplateTargetStatus", cdtTemplateTargetEntry.CdtTemplateTargetStatus})
cdtTemplateTargetEntry.EntityData.Leafs.Append("cdtTemplateTargetStorage", types.YLeaf{"CdtTemplateTargetStorage", cdtTemplateTargetEntry.CdtTemplateTargetStorage})
cdtTemplateTargetEntry.EntityData.YListKeys = []string {"CdtTemplateTargetType", "CdtTemplateTargetId"}
return &(cdtTemplateTargetEntry.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable
// This table contains a list of templates associated with each
// target.
//
// This table has an expansion dependent relationship on the
// cdtTemplateTargetTable, containing zero or more rows for each
// target.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry indicates an association of a dynamic template with a target. The
// system automatically creates an entry when it associates a dynamic template
// to a target. The system also creates an entry when it derives the
// configuration that it applies to a target. The system automatically
// destroys an entry under the following circumstances: 1) The target
// indicated by the entry no longer exists. 2) The association between the
// target and the dynamic template no longer exists. The type is slice of
// CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable_CdtTemplateAssociationEntry.
CdtTemplateAssociationEntry []*CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable_CdtTemplateAssociationEntry
}
func (cdtTemplateAssociationTable *CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable) GetEntityData() *types.CommonEntityData {
cdtTemplateAssociationTable.EntityData.YFilter = cdtTemplateAssociationTable.YFilter
cdtTemplateAssociationTable.EntityData.YangName = "cdtTemplateAssociationTable"
cdtTemplateAssociationTable.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateAssociationTable.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cdtTemplateAssociationTable.EntityData.SegmentPath = "cdtTemplateAssociationTable"
cdtTemplateAssociationTable.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/" + cdtTemplateAssociationTable.EntityData.SegmentPath
cdtTemplateAssociationTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateAssociationTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateAssociationTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateAssociationTable.EntityData.Children = types.NewOrderedMap()
cdtTemplateAssociationTable.EntityData.Children.Append("cdtTemplateAssociationEntry", types.YChild{"CdtTemplateAssociationEntry", nil})
for i := range cdtTemplateAssociationTable.CdtTemplateAssociationEntry {
cdtTemplateAssociationTable.EntityData.Children.Append(types.GetSegmentPath(cdtTemplateAssociationTable.CdtTemplateAssociationEntry[i]), types.YChild{"CdtTemplateAssociationEntry", cdtTemplateAssociationTable.CdtTemplateAssociationEntry[i]})
}
cdtTemplateAssociationTable.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateAssociationTable.EntityData.YListKeys = []string {}
return &(cdtTemplateAssociationTable.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable_CdtTemplateAssociationEntry
// An entry indicates an association of a dynamic template with a
// target.
//
// The system automatically creates an entry when it associates a
// dynamic template to a target.
//
// The system also creates an entry when it derives the
// configuration that it applies to a target.
//
// The system automatically destroys an entry under the following
// circumstances:
//
// 1) The target indicated by the entry no longer exists.
//
// 2) The association between the target and the dynamic template
// no longer exists.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable_CdtTemplateAssociationEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is DynamicTemplateTargetType. Refers to
// cisco_dynamic_template_mib.CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry_CdtTemplateTargetType
CdtTemplateTargetType interface{}
// This attribute is a key. The type is string with length: 1..20. Refers to
// cisco_dynamic_template_mib.CISCODYNAMICTEMPLATEMIB_CdtTemplateTargetTable_CdtTemplateTargetEntry_CdtTemplateTargetId
CdtTemplateTargetId interface{}
// This attribute is a key. This object indicates the name of the template
// associated with the target. The type is string with length: 1..64.
CdtTemplateAssociationName interface{}
// This object indicates the relative precedence of the associated dynamic
// template. Lower values have higher precedence than higher values. The type
// is interface{} with range: 0..4294967295.
CdtTemplateAssociationPrecedence interface{}
}
func (cdtTemplateAssociationEntry *CISCODYNAMICTEMPLATEMIB_CdtTemplateAssociationTable_CdtTemplateAssociationEntry) GetEntityData() *types.CommonEntityData {
cdtTemplateAssociationEntry.EntityData.YFilter = cdtTemplateAssociationEntry.YFilter
cdtTemplateAssociationEntry.EntityData.YangName = "cdtTemplateAssociationEntry"
cdtTemplateAssociationEntry.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateAssociationEntry.EntityData.ParentYangName = "cdtTemplateAssociationTable"
cdtTemplateAssociationEntry.EntityData.SegmentPath = "cdtTemplateAssociationEntry" + types.AddKeyToken(cdtTemplateAssociationEntry.CdtTemplateTargetType, "cdtTemplateTargetType") + types.AddKeyToken(cdtTemplateAssociationEntry.CdtTemplateTargetId, "cdtTemplateTargetId") + types.AddKeyToken(cdtTemplateAssociationEntry.CdtTemplateAssociationName, "cdtTemplateAssociationName")
cdtTemplateAssociationEntry.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/cdtTemplateAssociationTable/" + cdtTemplateAssociationEntry.EntityData.SegmentPath
cdtTemplateAssociationEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateAssociationEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateAssociationEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateAssociationEntry.EntityData.Children = types.NewOrderedMap()
cdtTemplateAssociationEntry.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateAssociationEntry.EntityData.Leafs.Append("cdtTemplateTargetType", types.YLeaf{"CdtTemplateTargetType", cdtTemplateAssociationEntry.CdtTemplateTargetType})
cdtTemplateAssociationEntry.EntityData.Leafs.Append("cdtTemplateTargetId", types.YLeaf{"CdtTemplateTargetId", cdtTemplateAssociationEntry.CdtTemplateTargetId})
cdtTemplateAssociationEntry.EntityData.Leafs.Append("cdtTemplateAssociationName", types.YLeaf{"CdtTemplateAssociationName", cdtTemplateAssociationEntry.CdtTemplateAssociationName})
cdtTemplateAssociationEntry.EntityData.Leafs.Append("cdtTemplateAssociationPrecedence", types.YLeaf{"CdtTemplateAssociationPrecedence", cdtTemplateAssociationEntry.CdtTemplateAssociationPrecedence})
cdtTemplateAssociationEntry.EntityData.YListKeys = []string {"CdtTemplateTargetType", "CdtTemplateTargetId", "CdtTemplateAssociationName"}
return &(cdtTemplateAssociationEntry.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable
// This table contains a list of targets using each dynamic
// template.
//
// This table has an expansion dependent relationship on the
// cdtTemplateTable, containing zero or more rows for each
// dynamic template.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry indicates a target using the dynamic template. The system
// automatically creates an entry when it associates a dynamic template to a
// target. The system also creates an entry when it derives the configuration
// that it applies to a target. The system automatically destroys an entry
// under the following circumstances: 1) The target indicated by the entry
// no longer exists. 2) The association between the target and the dynamic
// template no longer exists. The type is slice of
// CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable_CdtTemplateUsageEntry.
CdtTemplateUsageEntry []*CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable_CdtTemplateUsageEntry
}
func (cdtTemplateUsageTable *CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable) GetEntityData() *types.CommonEntityData {
cdtTemplateUsageTable.EntityData.YFilter = cdtTemplateUsageTable.YFilter
cdtTemplateUsageTable.EntityData.YangName = "cdtTemplateUsageTable"
cdtTemplateUsageTable.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateUsageTable.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cdtTemplateUsageTable.EntityData.SegmentPath = "cdtTemplateUsageTable"
cdtTemplateUsageTable.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/" + cdtTemplateUsageTable.EntityData.SegmentPath
cdtTemplateUsageTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateUsageTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateUsageTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateUsageTable.EntityData.Children = types.NewOrderedMap()
cdtTemplateUsageTable.EntityData.Children.Append("cdtTemplateUsageEntry", types.YChild{"CdtTemplateUsageEntry", nil})
for i := range cdtTemplateUsageTable.CdtTemplateUsageEntry {
cdtTemplateUsageTable.EntityData.Children.Append(types.GetSegmentPath(cdtTemplateUsageTable.CdtTemplateUsageEntry[i]), types.YChild{"CdtTemplateUsageEntry", cdtTemplateUsageTable.CdtTemplateUsageEntry[i]})
}
cdtTemplateUsageTable.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateUsageTable.EntityData.YListKeys = []string {}
return &(cdtTemplateUsageTable.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable_CdtTemplateUsageEntry
// An entry indicates a target using the dynamic template.
//
// The system automatically creates an entry when it associates a
// dynamic template to a target.
//
// The system also creates an entry when it derives the
// configuration that it applies to a target.
//
// The system automatically destroys an entry under the following
// circumstances:
//
// 1) The target indicated by the entry no longer exists.
//
// 2) The association between the target and the dynamic template
// no longer exists.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable_CdtTemplateUsageEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with length: 1..64. Refers to
// cisco_dynamic_template_mib.CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateName
CdtTemplateName interface{}
// This attribute is a key. This object indicates the type of target using the
// dynamic template. The type is DynamicTemplateTargetType.
CdtTemplateUsageTargetType interface{}
// This attribute is a key. This object indicates the name of the target using
// the dynamic template. The type is string with length: 1..20.
CdtTemplateUsageTargetId interface{}
}
func (cdtTemplateUsageEntry *CISCODYNAMICTEMPLATEMIB_CdtTemplateUsageTable_CdtTemplateUsageEntry) GetEntityData() *types.CommonEntityData {
cdtTemplateUsageEntry.EntityData.YFilter = cdtTemplateUsageEntry.YFilter
cdtTemplateUsageEntry.EntityData.YangName = "cdtTemplateUsageEntry"
cdtTemplateUsageEntry.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateUsageEntry.EntityData.ParentYangName = "cdtTemplateUsageTable"
cdtTemplateUsageEntry.EntityData.SegmentPath = "cdtTemplateUsageEntry" + types.AddKeyToken(cdtTemplateUsageEntry.CdtTemplateName, "cdtTemplateName") + types.AddKeyToken(cdtTemplateUsageEntry.CdtTemplateUsageTargetType, "cdtTemplateUsageTargetType") + types.AddKeyToken(cdtTemplateUsageEntry.CdtTemplateUsageTargetId, "cdtTemplateUsageTargetId")
cdtTemplateUsageEntry.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/cdtTemplateUsageTable/" + cdtTemplateUsageEntry.EntityData.SegmentPath
cdtTemplateUsageEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateUsageEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateUsageEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateUsageEntry.EntityData.Children = types.NewOrderedMap()
cdtTemplateUsageEntry.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateUsageEntry.EntityData.Leafs.Append("cdtTemplateName", types.YLeaf{"CdtTemplateName", cdtTemplateUsageEntry.CdtTemplateName})
cdtTemplateUsageEntry.EntityData.Leafs.Append("cdtTemplateUsageTargetType", types.YLeaf{"CdtTemplateUsageTargetType", cdtTemplateUsageEntry.CdtTemplateUsageTargetType})
cdtTemplateUsageEntry.EntityData.Leafs.Append("cdtTemplateUsageTargetId", types.YLeaf{"CdtTemplateUsageTargetId", cdtTemplateUsageEntry.CdtTemplateUsageTargetId})
cdtTemplateUsageEntry.EntityData.YListKeys = []string {"CdtTemplateName", "CdtTemplateUsageTargetType", "CdtTemplateUsageTargetId"}
return &(cdtTemplateUsageEntry.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable
// This table contains attributes relating to all dynamic
// templates. Observe that the type of dynamic templates
// containing these attributes may change with the addition of new
// dynamic template types.
//
// This table has a sparse-dependent relationship on the
// cdtTemplateTable, containing a row for each dynamic template
// having a cdtTemplateType of one of the following values:
//
// 'derived'
// 'ppp'
// 'ethernet'
// 'ipSubscriber'
// 'service'
type CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry containing attributes relating to any target. The system
// automatically creates an entry when the system or the EMS/NMS creates a row
// in the cdtTemplateTable with a cdtTemplateType of on the following values:
// 'derived' 'ppp' 'ethernet' 'ipSubscriber' 'service'
// Likewise, the system automatically destroys an entry when the system or the
// EMS/NMS destroys the corresponding row in the cdtTemplateTable. The type is
// slice of
// CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable_CdtTemplateCommonEntry.
CdtTemplateCommonEntry []*CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable_CdtTemplateCommonEntry
}
func (cdtTemplateCommonTable *CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable) GetEntityData() *types.CommonEntityData {
cdtTemplateCommonTable.EntityData.YFilter = cdtTemplateCommonTable.YFilter
cdtTemplateCommonTable.EntityData.YangName = "cdtTemplateCommonTable"
cdtTemplateCommonTable.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateCommonTable.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cdtTemplateCommonTable.EntityData.SegmentPath = "cdtTemplateCommonTable"
cdtTemplateCommonTable.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/" + cdtTemplateCommonTable.EntityData.SegmentPath
cdtTemplateCommonTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateCommonTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateCommonTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateCommonTable.EntityData.Children = types.NewOrderedMap()
cdtTemplateCommonTable.EntityData.Children.Append("cdtTemplateCommonEntry", types.YChild{"CdtTemplateCommonEntry", nil})
for i := range cdtTemplateCommonTable.CdtTemplateCommonEntry {
cdtTemplateCommonTable.EntityData.Children.Append(types.GetSegmentPath(cdtTemplateCommonTable.CdtTemplateCommonEntry[i]), types.YChild{"CdtTemplateCommonEntry", cdtTemplateCommonTable.CdtTemplateCommonEntry[i]})
}
cdtTemplateCommonTable.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateCommonTable.EntityData.YListKeys = []string {}
return &(cdtTemplateCommonTable.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable_CdtTemplateCommonEntry
// An entry containing attributes relating to any target.
//
// The system automatically creates an entry when the system or the
// EMS/NMS creates a row in the cdtTemplateTable with a
// cdtTemplateType of on the following values:
//
// 'derived'
// 'ppp'
// 'ethernet'
// 'ipSubscriber'
// 'service'
//
// Likewise, the system automatically destroys an entry when the
// system or the EMS/NMS destroys the corresponding row in the
// cdtTemplateTable.
type CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable_CdtTemplateCommonEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with length: 1..64. Refers to
// cisco_dynamic_template_mib.CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateName
CdtTemplateName interface{}
// This object specifies which attributes in the dynamic template have been
// configured to valid values. Each bit in this bit string corresponds to a
// column in this table. If the bit is '0', then the value of the
// corresponding column is not valid. If the bit is '1', then the value of
// the corresponding column has been configured to a valid value. The
// following list specifies the mappings between bits and the columns:
// 'descr' => cdtCommonDescr 'keepaliveInt' =>
// cdtCommonKeepaliveInt 'keepaliveRetries' => cdtCommonKeepaliveRetries
// 'vrf' => cdtCommonVrf 'addrPool' =>
// cdtCommonAddrPool 'ipv4AccessGroup' => cdtCommonIpv4AccessGroup
// 'ipv4Unreachables' => cdtCommonIpv4Unreachables 'ipv6AccessGroup' =>
// cdtCommonIpv6AccessGroup 'ipv6Unreachables' =>
// cdtCommonIpv6Unreachables 'srvSubControl' => cdtCommonSrvSubControl
// 'srvRedirect' => cdtCommonSrvRedirect 'srvAcct' =>
// cdtCommonSrvAcct 'srvQos' => cdtCommonSrvQos
// 'srvNetflow' => cdtCommonSrvNetflow. The type is map[string]bool.
CdtCommonValid interface{}
// This object specifies a human-readable description for the dynamic
// template. This column is valid only if the 'descr' bit of the
// corresponding instance of cdtCommonValid is '1'. The type is string with
// length: 0..255.
CdtCommonDescr interface{}
// This object specifies the interval that the system sends keepalive messages
// to a target. This column is valid only if the 'keepaliveInterval' bit of
// the corresponding instance of cdtCommonValid is '1'. The type is
// interface{} with range: 1..4294967295. Units are seconds.
CdtCommonKeepaliveInt interface{}
// This object specifies the number of times the system will resend a
// keepalive message without a response before it transitions a target to an
// operationally down state. This column is valid only if the
// 'keepaliveRetries' bit of the corresponding instance of cdtCommonValid is
// '1'. The type is interface{} with range: 1..255. Units are retries.
CdtCommonKeepaliveRetries interface{}
// This object specifies the name of the VRF with which a target has an
// association. This column is valid only if the 'vrf' bit of the
// corresponding instance of cdtCommonValid is '1'. The type is string with
// length: 0..32.
CdtCommonVrf interface{}
// This object specifies the name of the IP address pool the system will use
// to assign an IP address to a peer of a target. This column is valid only
// if the 'addrPool' bit of the corresponding instance of cdtCommonValid is
// '1'. The type is string with length: 0..255.
CdtCommonAddrPool interface{}
// This object specifies the name (or number) of the IPv4 ACL applied to a
// target. This column is valid only if the 'ipv4AccessGroup' bit of the
// corresponding instance of cdtCommonValid is '1'. The type is string with
// length: 0..255.
CdtCommonIpv4AccessGroup interface{}
// This object specifies whether a target generates ICMPv4 unreachable
// messages. This column is valid only if the 'ipv4Unreachables' bit of the
// corresponding instance of cdtCommonValid is '1'. The type is bool.
CdtCommonIpv4Unreachables interface{}
// This object specifies the name (or number) of the IPv4 ACL applied to a
// target. This column is valid only if the 'ipv6AccessGroup' bit of the
// corresponding instance of cdtCommonValid is '1'. The type is string with
// length: 0..255.
CdtCommonIpv6AccessGroup interface{}
// This object specifies whether a target generates ICMPv6 unreachable
// messages. This column is valid only if the 'ipv6Unreachables' bit of the
// corresponding instance of cdtCommonValid is '1'. The type is bool.
CdtCommonIpv6Unreachables interface{}
// This object specifies the name of the subscriber control policy applied to
// a target. The system should assume that the cbpPolicyMapType (defined by
// the CISCO-CBP-BASE-CFG-MIB) of the policy is cbpPmtControlSubscriber
// (defined by the CISCO-CBP-TYPE-OID-MIB). This column is valid only if the
// 'srvSubControl' bit of the corresponding instance of cdtCommonValid is '1'.
// The type is string.
CdtCommonSrvSubControl interface{}
// This object specifies the name of the traffic redirect policy applied to a
// target. The system should assume that the cbpPolicyMapType (defined by the
// CISCO-CBP-BASE-CFG-MIB) of the policy is cbpPmtTrafficRedirect (defined by
// the CISCO-CBP-TYPE-OID-MIB). This column is valid only if the
// 'srvRedirect' bit of the corresponding instance of cdtCommonValid is '1'.
// The type is string.
CdtCommonSrvRedirect interface{}
// This object specifies the name of the traffic accounting policy applied to
// a target. The system should assume that the cbpPolicyMapType (defined by
// the CISCO-CBP-BASE-CFG-MIB) of the policy is cbpPmtTrafficAccounting
// (defined by the CISCO-CBP-TYPE-OID-MIB). This column is valid only if the
// 'srvAcct' bit of the corresponding instance of cdtCommonValid is '1'. The
// type is string.
CdtCommonSrvAcct interface{}
// This object specifies the name of the traffic QoS policy applied to a
// target. The system should assume that the cbpPolicyMapType (defined by the
// CISCO-CBP-BASE-CFG-MIB) of the policy is cbpPmtQos (defined by the
// CISCO-CBP-TYPE-OID-MIB). This column is valid only if the 'srvQos' bit of
// the corresponding instance of cdtCommonValid is '1'. The type is string.
CdtCommonSrvQos interface{}
// This object specifies the name of the NetFlow policy applied to a target.
// The system should assume that the cbpPolicyMapType (defined by the
// CISCO-CBP-BASE-CFG-MIB) of the policy is cbpPmtNetflow (defined by the
// CISCO-CBP-TYPE-OID-MIB). This column is valid only if the 'srvNetflow' bit
// of the corresponding instance of cdtCommonValid is '1'. The type is string.
CdtCommonSrvNetflow interface{}
}
func (cdtTemplateCommonEntry *CISCODYNAMICTEMPLATEMIB_CdtTemplateCommonTable_CdtTemplateCommonEntry) GetEntityData() *types.CommonEntityData {
cdtTemplateCommonEntry.EntityData.YFilter = cdtTemplateCommonEntry.YFilter
cdtTemplateCommonEntry.EntityData.YangName = "cdtTemplateCommonEntry"
cdtTemplateCommonEntry.EntityData.BundleName = "cisco_ios_xe"
cdtTemplateCommonEntry.EntityData.ParentYangName = "cdtTemplateCommonTable"
cdtTemplateCommonEntry.EntityData.SegmentPath = "cdtTemplateCommonEntry" + types.AddKeyToken(cdtTemplateCommonEntry.CdtTemplateName, "cdtTemplateName")
cdtTemplateCommonEntry.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/cdtTemplateCommonTable/" + cdtTemplateCommonEntry.EntityData.SegmentPath
cdtTemplateCommonEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtTemplateCommonEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtTemplateCommonEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtTemplateCommonEntry.EntityData.Children = types.NewOrderedMap()
cdtTemplateCommonEntry.EntityData.Leafs = types.NewOrderedMap()
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtTemplateName", types.YLeaf{"CdtTemplateName", cdtTemplateCommonEntry.CdtTemplateName})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonValid", types.YLeaf{"CdtCommonValid", cdtTemplateCommonEntry.CdtCommonValid})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonDescr", types.YLeaf{"CdtCommonDescr", cdtTemplateCommonEntry.CdtCommonDescr})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonKeepaliveInt", types.YLeaf{"CdtCommonKeepaliveInt", cdtTemplateCommonEntry.CdtCommonKeepaliveInt})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonKeepaliveRetries", types.YLeaf{"CdtCommonKeepaliveRetries", cdtTemplateCommonEntry.CdtCommonKeepaliveRetries})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonVrf", types.YLeaf{"CdtCommonVrf", cdtTemplateCommonEntry.CdtCommonVrf})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonAddrPool", types.YLeaf{"CdtCommonAddrPool", cdtTemplateCommonEntry.CdtCommonAddrPool})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonIpv4AccessGroup", types.YLeaf{"CdtCommonIpv4AccessGroup", cdtTemplateCommonEntry.CdtCommonIpv4AccessGroup})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonIpv4Unreachables", types.YLeaf{"CdtCommonIpv4Unreachables", cdtTemplateCommonEntry.CdtCommonIpv4Unreachables})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonIpv6AccessGroup", types.YLeaf{"CdtCommonIpv6AccessGroup", cdtTemplateCommonEntry.CdtCommonIpv6AccessGroup})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonIpv6Unreachables", types.YLeaf{"CdtCommonIpv6Unreachables", cdtTemplateCommonEntry.CdtCommonIpv6Unreachables})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonSrvSubControl", types.YLeaf{"CdtCommonSrvSubControl", cdtTemplateCommonEntry.CdtCommonSrvSubControl})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonSrvRedirect", types.YLeaf{"CdtCommonSrvRedirect", cdtTemplateCommonEntry.CdtCommonSrvRedirect})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonSrvAcct", types.YLeaf{"CdtCommonSrvAcct", cdtTemplateCommonEntry.CdtCommonSrvAcct})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonSrvQos", types.YLeaf{"CdtCommonSrvQos", cdtTemplateCommonEntry.CdtCommonSrvQos})
cdtTemplateCommonEntry.EntityData.Leafs.Append("cdtCommonSrvNetflow", types.YLeaf{"CdtCommonSrvNetflow", cdtTemplateCommonEntry.CdtCommonSrvNetflow})
cdtTemplateCommonEntry.EntityData.YListKeys = []string {"CdtTemplateName"}
return &(cdtTemplateCommonEntry.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable
// This table contains attributes relating to interface
// configuration.
//
// This table has a sparse-dependent relationship on the
// cdtTemplateTable, containing a row for each dynamic template
// having a cdtTemplateType of one of the following values:
//
// 'derived'
// 'ppp'
// 'ethernet'
// 'ipSubscriber'
type CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry containing attributes relating to interface configuration. The
// system automatically creates an entry when the system or the EMS/NMS
// creates a row in the cdtTemplateTable with a cdtTemplateType of one of the
// following values: 'derived' 'ppp' 'ethernet'
// 'ipSubscriber' Likewise, the system automatically destroys an entry when
// the system or the EMS/NMS destroys the corresponding row in the
// cdtTemplateTable. The type is slice of
// CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable_CdtIfTemplateEntry.
CdtIfTemplateEntry []*CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable_CdtIfTemplateEntry
}
func (cdtIfTemplateTable *CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable) GetEntityData() *types.CommonEntityData {
cdtIfTemplateTable.EntityData.YFilter = cdtIfTemplateTable.YFilter
cdtIfTemplateTable.EntityData.YangName = "cdtIfTemplateTable"
cdtIfTemplateTable.EntityData.BundleName = "cisco_ios_xe"
cdtIfTemplateTable.EntityData.ParentYangName = "CISCO-DYNAMIC-TEMPLATE-MIB"
cdtIfTemplateTable.EntityData.SegmentPath = "cdtIfTemplateTable"
cdtIfTemplateTable.EntityData.AbsolutePath = "CISCO-DYNAMIC-TEMPLATE-MIB:CISCO-DYNAMIC-TEMPLATE-MIB/" + cdtIfTemplateTable.EntityData.SegmentPath
cdtIfTemplateTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cdtIfTemplateTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cdtIfTemplateTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cdtIfTemplateTable.EntityData.Children = types.NewOrderedMap()
cdtIfTemplateTable.EntityData.Children.Append("cdtIfTemplateEntry", types.YChild{"CdtIfTemplateEntry", nil})
for i := range cdtIfTemplateTable.CdtIfTemplateEntry {
cdtIfTemplateTable.EntityData.Children.Append(types.GetSegmentPath(cdtIfTemplateTable.CdtIfTemplateEntry[i]), types.YChild{"CdtIfTemplateEntry", cdtIfTemplateTable.CdtIfTemplateEntry[i]})
}
cdtIfTemplateTable.EntityData.Leafs = types.NewOrderedMap()
cdtIfTemplateTable.EntityData.YListKeys = []string {}
return &(cdtIfTemplateTable.EntityData)
}
// CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable_CdtIfTemplateEntry
// An entry containing attributes relating to interface
// configuration.
//
// The system automatically creates an entry when the system or the
// EMS/NMS creates a row in the cdtTemplateTable with a
// cdtTemplateType of one of the following values:
//
// 'derived'
// 'ppp'
// 'ethernet'
// 'ipSubscriber'
//
// Likewise, the system automatically destroys an entry when the
// system or the EMS/NMS destroys the corresponding row in the
// cdtTemplateTable.
type CISCODYNAMICTEMPLATEMIB_CdtIfTemplateTable_CdtIfTemplateEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with length: 1..64. Refers to
// cisco_dynamic_template_mib.CISCODYNAMICTEMPLATEMIB_CdtTemplateTable_CdtTemplateEntry_CdtTemplateName
CdtTemplateName interface{}
// This object specifies which attributes in the dynamic template have been
// configured to valid values. Each bit in this bit string corresponds to a
// column in this table. If the bit is '0', then the value of the
// corresponding column is not valid. If the bit is '1', then the value of
// the corresponding column has been configured to a valid value. The
// following list specifies the mappings between bits and the columns:
// 'mtu' => cdtIfMtu 'cdpEnable' =>
// cdtIfCdpEnable 'flowMonitor' => cdtIfFlowMonitor
// 'ipv4Unnumbered' => cdtIfIpv4Unnumbered 'ipv4SubEnable'
// => cdtIfIpv4SubEnable 'ipv4Mtu' => cdtIfIpv4Mtu
// 'ipv4TcpMssAdjust' => cdtIfIpv4TcpMssAdjust 'ipv4VerifyUniRpf'
// => cdtIfIpv4VerifyUniRpf 'ipv4VerifyUniRpfAcl' =>
// cdtIfIpv4VerifyUniRpfAcl 'ipv4VerifyUniRpfOpts' =>
// cdtIfIpv4VerifyUniRpfOpts 'ipv6Enable' => cdtIfIpv6Enable
// 'ipv6SubEnable' => cdtIfIpv6SubEnable 'ipv6TcpMssAdjust'
// => cdtIfIpv6TcpMssAdjust 'ipv6VerifyUniRpf' =>
// cdtIfIpv6VerifyUniRpf 'ipv6VerifyUniRpfAcl' =>
// cdtIfIpv6VerifyUniRpfAcl 'ipv6VerifyUniRpfOpts' =>
// cdtIfIpv6VerifyUniRpfOpts 'ipv6NdPrefix' =>
// cdtIfIpv6NdPrefix, cdtIfIpv6NdPrefixLength
// 'ipv6NdValidLife' => cdtIfIpv6NdValidLife 'ipv6NdPreferredLife'
// => cdtIfIpv6NdPreferredLife 'ipv6NdOpts' =>
// cdtIfIpv6NdOpts 'ipv6NdDadAttempts' => cdtIfIpv6NdDadAttempts
// 'ipv6NdNsInterval' => cdtIfIpv6NdNsInterval 'ipv6NdReacableTime'
// => cdtIfIpv6NdReacableTime 'ipv6NdRaIntervalMax' =>
// cdtIfIpv6NdRaIntervalUnits,
// cdtIfIpv6NdRaIntervalMax 'ipv6NdRaIntervalMin' =>
// cdtIfIpv6NdRaIntervalMin 'ipv6NdRaLife' => cdtIfIpv6NdRaLife
// 'ipv6NdRouterPreference'' => cdtIfIpv6NdRouterPreference. The type is
// map[string]bool.
CdtIfValid interface{}
// This object specifies the Maximum Transfer Unit (MTU) size for all packets
// sent on the target interface. The value '0' cannot be written to an
// instance of this object. However, it serves as a convenient value when the
// column is not valid. This column is valid only if the 'mtu' bit of the
// corresponding instance of cdtIfValid is '1'. The type is interface{} with
// range: 0..0 | 64..65535. Units are octets.
CdtIfMtu interface{}
// This object specifies whether the target interface participates in the
// Cisco Discovery Protocol (CDP). This column is valid only if the
// 'cdpEnable' bit of the corresponding instance of cdtIfValid is '1'. The
// type is bool.
CdtIfCdpEnable interface{}
// This object specifies the name of the flow monitor associated with the
// target interface. This column is valid only if the 'flowMonitor' bit of
// the corresponding instance of cdtIfValid is '1'. The type is string with
// length: 0..255.
CdtIfFlowMonitor interface{}
// This object specifies the interface of the source address that the target
// interface uses when originating IPv4 packets. The value '0' cannot be
// written to an instance of this object. However, it serves as a convenient
// value when the column is not valid (e.g., immediately following the
// creation of an instance of the object). This column is valid only if the
// 'ipv4Unnumbered' bit of the corresponding instance of cdtIfValid is '1'.
// The type is interface{} with range: 0..2147483647.
CdtIfIpv4Unnumbered interface{}
// This object specifies whether the target interface allows IPv4 subscriber
// sessions. This column is valid only if the 'ipv4SubEnable' bit of the
// corresponding instance of cdtIfValid is '1'. The type is bool.
CdtIfIpv4SubEnable interface{}
// This object specifies the Maximum Transfer Unit (MTU) size for IPv4 packets
// sent on the target interface. The value '0' cannot be written to an
// instance of this object. However, it serves as a convenient value when the
// column is not valid. This column is valid only if the 'ipv4Mtu' bit of the
// corresponding instance of cdtIfValid is '1'. The type is interface{} with
// range: 0..0 | 128..65535. Units are octets.
CdtIfIpv4Mtu interface{}
// This object specifies the adjustment to the Maximum Segment Size (MSS) of
// TCP SYN packets received by the target interface contained in IPv4
// datagrams. The value '0' cannot be written to an instance of this object.
// However, it serves as a convenient value when the column is not valid.
// This column is valid only if the 'ipv4TcpMssAdjust' bit of the
// corresponding instance of cdtIfValid is '1'. The type is interface{} with
// range: 0..0 | 500..1460. Units are octets.
CdtIfIpv4TcpMssAdjust interface{}
// This object specifies whether the type of unicast RPF the system performs
// on IPv4 packets received by the target interface. This column is valid
// only if the 'ipv4VerifyUniRpf' bit of the corresponding instance of
// cdtIfValid is '1'. The type is UnicastRpfType.
CdtIfIpv4VerifyUniRpf interface{}
// This object specifies the name (or number) of the IPv4 ACL used to
// determine whether the system should permit/deny packets received by the
// target interface that fail unicast RPF verification. This column is valid
// only if the 'ipv4VerifyUniRpfAcl' bit of the corresponding instance of
// cdtIfValid is '1'. The type is string with length: 0..255.
CdtIfIpv4VerifyUniRpfAcl interface{}
// This object specifies the options that affect how the system performs
// unicast RPF on IPv4 packets received by the target interface. This column
// is valid only if the 'ipv4VerifyUniRpfOpts' bit of the corresponding
// instance of cdtIfValid is '1'. The type is map[string]bool.
CdtIfIpv4VerifyUniRpfOpts interface{}
// This object specifies whether the system processes IPv6 packets received by
// the target interface. This column is valid only if the 'ipv6Enable' bit of
// the corresponding instance of cdtIfValid is '1'. The type is bool.
CdtIfIpv6Enable interface{}