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
/
aaa_locald_oper.go
3990 lines (3169 loc) · 184 KB
/
aaa_locald_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 aaa-locald package operational data.
//
// This module contains definitions
// for the following management objects:
// aaa: AAA operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package aaa_locald_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 aaa_locald_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-aaa-locald-oper aaa}", reflect.TypeOf(Aaa{}))
ydk.RegisterEntity("Cisco-IOS-XR-aaa-locald-oper:aaa", reflect.TypeOf(Aaa{}))
}
// Aaa
// AAA operational data
type Aaa struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// All tasks supported by system.
AllTasks Aaa_AllTasks
// Current user specific details.
CurrentuserDetail Aaa_CurrentuserDetail
// Task map of current user.
TaskMap Aaa_TaskMap
// Individual taskgroups container.
Taskgroups Aaa_Taskgroups
// Container for individual local user information.
Users Aaa_Users
// Container for individual password policy Information.
PasswordPolicies Aaa_PasswordPolicies
// Container for individual usergroup Information.
Usergroups Aaa_Usergroups
// Current users authentication method.
AuthenMethod Aaa_AuthenMethod
// Specific Usergroup Information.
CurrentUsergroup Aaa_CurrentUsergroup
// TACACS operational data.
Tacacs Aaa_Tacacs
// RADIUS operational data.
Radius Aaa_Radius
// Diameter operational data.
Diameter Aaa_Diameter
}
func (aaa *Aaa) GetEntityData() *types.CommonEntityData {
aaa.EntityData.YFilter = aaa.YFilter
aaa.EntityData.YangName = "aaa"
aaa.EntityData.BundleName = "cisco_ios_xr"
aaa.EntityData.ParentYangName = "Cisco-IOS-XR-aaa-locald-oper"
aaa.EntityData.SegmentPath = "Cisco-IOS-XR-aaa-locald-oper:aaa"
aaa.EntityData.AbsolutePath = aaa.EntityData.SegmentPath
aaa.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
aaa.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
aaa.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
aaa.EntityData.Children = types.NewOrderedMap()
aaa.EntityData.Children.Append("all-tasks", types.YChild{"AllTasks", &aaa.AllTasks})
aaa.EntityData.Children.Append("currentuser-detail", types.YChild{"CurrentuserDetail", &aaa.CurrentuserDetail})
aaa.EntityData.Children.Append("task-map", types.YChild{"TaskMap", &aaa.TaskMap})
aaa.EntityData.Children.Append("taskgroups", types.YChild{"Taskgroups", &aaa.Taskgroups})
aaa.EntityData.Children.Append("users", types.YChild{"Users", &aaa.Users})
aaa.EntityData.Children.Append("password-policies", types.YChild{"PasswordPolicies", &aaa.PasswordPolicies})
aaa.EntityData.Children.Append("usergroups", types.YChild{"Usergroups", &aaa.Usergroups})
aaa.EntityData.Children.Append("authen-method", types.YChild{"AuthenMethod", &aaa.AuthenMethod})
aaa.EntityData.Children.Append("current-usergroup", types.YChild{"CurrentUsergroup", &aaa.CurrentUsergroup})
aaa.EntityData.Children.Append("Cisco-IOS-XR-aaa-tacacs-oper:tacacs", types.YChild{"Tacacs", &aaa.Tacacs})
aaa.EntityData.Children.Append("Cisco-IOS-XR-aaa-protocol-radius-oper:radius", types.YChild{"Radius", &aaa.Radius})
aaa.EntityData.Children.Append("Cisco-IOS-XR-aaa-diameter-oper:diameter", types.YChild{"Diameter", &aaa.Diameter})
aaa.EntityData.Leafs = types.NewOrderedMap()
aaa.EntityData.YListKeys = []string {}
return &(aaa.EntityData)
}
// Aaa_AllTasks
// All tasks supported by system
type Aaa_AllTasks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Names of available task-ids. The type is slice of string.
TaskId []interface{}
}
func (allTasks *Aaa_AllTasks) GetEntityData() *types.CommonEntityData {
allTasks.EntityData.YFilter = allTasks.YFilter
allTasks.EntityData.YangName = "all-tasks"
allTasks.EntityData.BundleName = "cisco_ios_xr"
allTasks.EntityData.ParentYangName = "aaa"
allTasks.EntityData.SegmentPath = "all-tasks"
allTasks.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + allTasks.EntityData.SegmentPath
allTasks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
allTasks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
allTasks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
allTasks.EntityData.Children = types.NewOrderedMap()
allTasks.EntityData.Leafs = types.NewOrderedMap()
allTasks.EntityData.Leafs.Append("task-id", types.YLeaf{"TaskId", allTasks.TaskId})
allTasks.EntityData.YListKeys = []string {}
return &(allTasks.EntityData)
}
// Aaa_CurrentuserDetail
// Current user specific details
type Aaa_CurrentuserDetail struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Name of the usergroup. The type is string.
Name interface{}
// Authentication method. The type is interface{} with range:
// -2147483648..2147483647.
Authenmethod interface{}
// Component usergroups. The type is slice of string.
Usergroup []interface{}
// Task map details. The type is slice of string.
Taskmap []interface{}
}
func (currentuserDetail *Aaa_CurrentuserDetail) GetEntityData() *types.CommonEntityData {
currentuserDetail.EntityData.YFilter = currentuserDetail.YFilter
currentuserDetail.EntityData.YangName = "currentuser-detail"
currentuserDetail.EntityData.BundleName = "cisco_ios_xr"
currentuserDetail.EntityData.ParentYangName = "aaa"
currentuserDetail.EntityData.SegmentPath = "currentuser-detail"
currentuserDetail.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + currentuserDetail.EntityData.SegmentPath
currentuserDetail.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
currentuserDetail.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
currentuserDetail.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
currentuserDetail.EntityData.Children = types.NewOrderedMap()
currentuserDetail.EntityData.Leafs = types.NewOrderedMap()
currentuserDetail.EntityData.Leafs.Append("name", types.YLeaf{"Name", currentuserDetail.Name})
currentuserDetail.EntityData.Leafs.Append("authenmethod", types.YLeaf{"Authenmethod", currentuserDetail.Authenmethod})
currentuserDetail.EntityData.Leafs.Append("usergroup", types.YLeaf{"Usergroup", currentuserDetail.Usergroup})
currentuserDetail.EntityData.Leafs.Append("taskmap", types.YLeaf{"Taskmap", currentuserDetail.Taskmap})
currentuserDetail.EntityData.YListKeys = []string {}
return &(currentuserDetail.EntityData)
}
// Aaa_TaskMap
// Task map of current user
type Aaa_TaskMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Name of the usergroup. The type is string.
Name interface{}
// Authentication method. The type is interface{} with range:
// -2147483648..2147483647.
Authenmethod interface{}
// Component usergroups. The type is slice of string.
Usergroup []interface{}
// Task map details. The type is slice of string.
Taskmap []interface{}
}
func (taskMap *Aaa_TaskMap) GetEntityData() *types.CommonEntityData {
taskMap.EntityData.YFilter = taskMap.YFilter
taskMap.EntityData.YangName = "task-map"
taskMap.EntityData.BundleName = "cisco_ios_xr"
taskMap.EntityData.ParentYangName = "aaa"
taskMap.EntityData.SegmentPath = "task-map"
taskMap.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + taskMap.EntityData.SegmentPath
taskMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
taskMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
taskMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
taskMap.EntityData.Children = types.NewOrderedMap()
taskMap.EntityData.Leafs = types.NewOrderedMap()
taskMap.EntityData.Leafs.Append("name", types.YLeaf{"Name", taskMap.Name})
taskMap.EntityData.Leafs.Append("authenmethod", types.YLeaf{"Authenmethod", taskMap.Authenmethod})
taskMap.EntityData.Leafs.Append("usergroup", types.YLeaf{"Usergroup", taskMap.Usergroup})
taskMap.EntityData.Leafs.Append("taskmap", types.YLeaf{"Taskmap", taskMap.Taskmap})
taskMap.EntityData.YListKeys = []string {}
return &(taskMap.EntityData)
}
// Aaa_Taskgroups
// Individual taskgroups container
type Aaa_Taskgroups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specific Taskgroup Information. The type is slice of
// Aaa_Taskgroups_Taskgroup.
Taskgroup []*Aaa_Taskgroups_Taskgroup
}
func (taskgroups *Aaa_Taskgroups) GetEntityData() *types.CommonEntityData {
taskgroups.EntityData.YFilter = taskgroups.YFilter
taskgroups.EntityData.YangName = "taskgroups"
taskgroups.EntityData.BundleName = "cisco_ios_xr"
taskgroups.EntityData.ParentYangName = "aaa"
taskgroups.EntityData.SegmentPath = "taskgroups"
taskgroups.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + taskgroups.EntityData.SegmentPath
taskgroups.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
taskgroups.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
taskgroups.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
taskgroups.EntityData.Children = types.NewOrderedMap()
taskgroups.EntityData.Children.Append("taskgroup", types.YChild{"Taskgroup", nil})
for i := range taskgroups.Taskgroup {
taskgroups.EntityData.Children.Append(types.GetSegmentPath(taskgroups.Taskgroup[i]), types.YChild{"Taskgroup", taskgroups.Taskgroup[i]})
}
taskgroups.EntityData.Leafs = types.NewOrderedMap()
taskgroups.EntityData.YListKeys = []string {}
return &(taskgroups.EntityData)
}
// Aaa_Taskgroups_Taskgroup
// Specific Taskgroup Information
type Aaa_Taskgroups_Taskgroup struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Taskgroup name. The type is string.
Name interface{}
// Name of the taskgroup. The type is string.
NameXr interface{}
// Task-ids included.
IncludedTaskIds Aaa_Taskgroups_Taskgroup_IncludedTaskIds
// Computed task map.
TaskMap Aaa_Taskgroups_Taskgroup_TaskMap
}
func (taskgroup *Aaa_Taskgroups_Taskgroup) GetEntityData() *types.CommonEntityData {
taskgroup.EntityData.YFilter = taskgroup.YFilter
taskgroup.EntityData.YangName = "taskgroup"
taskgroup.EntityData.BundleName = "cisco_ios_xr"
taskgroup.EntityData.ParentYangName = "taskgroups"
taskgroup.EntityData.SegmentPath = "taskgroup" + types.AddKeyToken(taskgroup.Name, "name")
taskgroup.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/taskgroups/" + taskgroup.EntityData.SegmentPath
taskgroup.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
taskgroup.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
taskgroup.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
taskgroup.EntityData.Children = types.NewOrderedMap()
taskgroup.EntityData.Children.Append("included-task-ids", types.YChild{"IncludedTaskIds", &taskgroup.IncludedTaskIds})
taskgroup.EntityData.Children.Append("task-map", types.YChild{"TaskMap", &taskgroup.TaskMap})
taskgroup.EntityData.Leafs = types.NewOrderedMap()
taskgroup.EntityData.Leafs.Append("name", types.YLeaf{"Name", taskgroup.Name})
taskgroup.EntityData.Leafs.Append("name-xr", types.YLeaf{"NameXr", taskgroup.NameXr})
taskgroup.EntityData.YListKeys = []string {"Name"}
return &(taskgroup.EntityData)
}
// Aaa_Taskgroups_Taskgroup_IncludedTaskIds
// Task-ids included
type Aaa_Taskgroups_Taskgroup_IncludedTaskIds struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of permitted tasks. The type is slice of
// Aaa_Taskgroups_Taskgroup_IncludedTaskIds_Tasks.
Tasks []*Aaa_Taskgroups_Taskgroup_IncludedTaskIds_Tasks
}
func (includedTaskIds *Aaa_Taskgroups_Taskgroup_IncludedTaskIds) GetEntityData() *types.CommonEntityData {
includedTaskIds.EntityData.YFilter = includedTaskIds.YFilter
includedTaskIds.EntityData.YangName = "included-task-ids"
includedTaskIds.EntityData.BundleName = "cisco_ios_xr"
includedTaskIds.EntityData.ParentYangName = "taskgroup"
includedTaskIds.EntityData.SegmentPath = "included-task-ids"
includedTaskIds.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/taskgroups/taskgroup/" + includedTaskIds.EntityData.SegmentPath
includedTaskIds.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
includedTaskIds.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
includedTaskIds.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
includedTaskIds.EntityData.Children = types.NewOrderedMap()
includedTaskIds.EntityData.Children.Append("tasks", types.YChild{"Tasks", nil})
for i := range includedTaskIds.Tasks {
types.SetYListKey(includedTaskIds.Tasks[i], i)
includedTaskIds.EntityData.Children.Append(types.GetSegmentPath(includedTaskIds.Tasks[i]), types.YChild{"Tasks", includedTaskIds.Tasks[i]})
}
includedTaskIds.EntityData.Leafs = types.NewOrderedMap()
includedTaskIds.EntityData.YListKeys = []string {}
return &(includedTaskIds.EntityData)
}
// Aaa_Taskgroups_Taskgroup_IncludedTaskIds_Tasks
// List of permitted tasks
type Aaa_Taskgroups_Taskgroup_IncludedTaskIds_Tasks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Name of the task-id. The type is string.
TaskId interface{}
// Is read permitted?. The type is bool.
Read interface{}
// Is write permitted?. The type is bool.
Write interface{}
// Is execute permitted?. The type is bool.
Execute interface{}
// Is debug permitted?. The type is bool.
Debug interface{}
}
func (tasks *Aaa_Taskgroups_Taskgroup_IncludedTaskIds_Tasks) GetEntityData() *types.CommonEntityData {
tasks.EntityData.YFilter = tasks.YFilter
tasks.EntityData.YangName = "tasks"
tasks.EntityData.BundleName = "cisco_ios_xr"
tasks.EntityData.ParentYangName = "included-task-ids"
tasks.EntityData.SegmentPath = "tasks" + types.AddNoKeyToken(tasks)
tasks.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/taskgroups/taskgroup/included-task-ids/" + tasks.EntityData.SegmentPath
tasks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
tasks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
tasks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
tasks.EntityData.Children = types.NewOrderedMap()
tasks.EntityData.Leafs = types.NewOrderedMap()
tasks.EntityData.Leafs.Append("task-id", types.YLeaf{"TaskId", tasks.TaskId})
tasks.EntityData.Leafs.Append("read", types.YLeaf{"Read", tasks.Read})
tasks.EntityData.Leafs.Append("write", types.YLeaf{"Write", tasks.Write})
tasks.EntityData.Leafs.Append("execute", types.YLeaf{"Execute", tasks.Execute})
tasks.EntityData.Leafs.Append("debug", types.YLeaf{"Debug", tasks.Debug})
tasks.EntityData.YListKeys = []string {}
return &(tasks.EntityData)
}
// Aaa_Taskgroups_Taskgroup_TaskMap
// Computed task map
type Aaa_Taskgroups_Taskgroup_TaskMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of permitted tasks. The type is slice of
// Aaa_Taskgroups_Taskgroup_TaskMap_Tasks.
Tasks []*Aaa_Taskgroups_Taskgroup_TaskMap_Tasks
}
func (taskMap *Aaa_Taskgroups_Taskgroup_TaskMap) GetEntityData() *types.CommonEntityData {
taskMap.EntityData.YFilter = taskMap.YFilter
taskMap.EntityData.YangName = "task-map"
taskMap.EntityData.BundleName = "cisco_ios_xr"
taskMap.EntityData.ParentYangName = "taskgroup"
taskMap.EntityData.SegmentPath = "task-map"
taskMap.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/taskgroups/taskgroup/" + taskMap.EntityData.SegmentPath
taskMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
taskMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
taskMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
taskMap.EntityData.Children = types.NewOrderedMap()
taskMap.EntityData.Children.Append("tasks", types.YChild{"Tasks", nil})
for i := range taskMap.Tasks {
types.SetYListKey(taskMap.Tasks[i], i)
taskMap.EntityData.Children.Append(types.GetSegmentPath(taskMap.Tasks[i]), types.YChild{"Tasks", taskMap.Tasks[i]})
}
taskMap.EntityData.Leafs = types.NewOrderedMap()
taskMap.EntityData.YListKeys = []string {}
return &(taskMap.EntityData)
}
// Aaa_Taskgroups_Taskgroup_TaskMap_Tasks
// List of permitted tasks
type Aaa_Taskgroups_Taskgroup_TaskMap_Tasks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Name of the task-id. The type is string.
TaskId interface{}
// Is read permitted?. The type is bool.
Read interface{}
// Is write permitted?. The type is bool.
Write interface{}
// Is execute permitted?. The type is bool.
Execute interface{}
// Is debug permitted?. The type is bool.
Debug interface{}
}
func (tasks *Aaa_Taskgroups_Taskgroup_TaskMap_Tasks) GetEntityData() *types.CommonEntityData {
tasks.EntityData.YFilter = tasks.YFilter
tasks.EntityData.YangName = "tasks"
tasks.EntityData.BundleName = "cisco_ios_xr"
tasks.EntityData.ParentYangName = "task-map"
tasks.EntityData.SegmentPath = "tasks" + types.AddNoKeyToken(tasks)
tasks.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/taskgroups/taskgroup/task-map/" + tasks.EntityData.SegmentPath
tasks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
tasks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
tasks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
tasks.EntityData.Children = types.NewOrderedMap()
tasks.EntityData.Leafs = types.NewOrderedMap()
tasks.EntityData.Leafs.Append("task-id", types.YLeaf{"TaskId", tasks.TaskId})
tasks.EntityData.Leafs.Append("read", types.YLeaf{"Read", tasks.Read})
tasks.EntityData.Leafs.Append("write", types.YLeaf{"Write", tasks.Write})
tasks.EntityData.Leafs.Append("execute", types.YLeaf{"Execute", tasks.Execute})
tasks.EntityData.Leafs.Append("debug", types.YLeaf{"Debug", tasks.Debug})
tasks.EntityData.YListKeys = []string {}
return &(tasks.EntityData)
}
// Aaa_Users
// Container for individual local user information
type Aaa_Users struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specific local user information. The type is slice of Aaa_Users_User.
User []*Aaa_Users_User
}
func (users *Aaa_Users) GetEntityData() *types.CommonEntityData {
users.EntityData.YFilter = users.YFilter
users.EntityData.YangName = "users"
users.EntityData.BundleName = "cisco_ios_xr"
users.EntityData.ParentYangName = "aaa"
users.EntityData.SegmentPath = "users"
users.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + users.EntityData.SegmentPath
users.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
users.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
users.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
users.EntityData.Children = types.NewOrderedMap()
users.EntityData.Children.Append("user", types.YChild{"User", nil})
for i := range users.User {
users.EntityData.Children.Append(types.GetSegmentPath(users.User[i]), types.YChild{"User", users.User[i]})
}
users.EntityData.Leafs = types.NewOrderedMap()
users.EntityData.YListKeys = []string {}
return &(users.EntityData)
}
// Aaa_Users_User
// Specific local user information
type Aaa_Users_User struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Username. The type is string.
Name interface{}
// Username. The type is string.
NameXr interface{}
// Is admin plane user ?. The type is bool.
AdminUser interface{}
// Is first user ?. The type is bool.
FirstUser interface{}
// Member usergroups. The type is slice of string.
Usergroup []interface{}
// Computed taskmap.
TaskMap Aaa_Users_User_TaskMap
}
func (user *Aaa_Users_User) GetEntityData() *types.CommonEntityData {
user.EntityData.YFilter = user.YFilter
user.EntityData.YangName = "user"
user.EntityData.BundleName = "cisco_ios_xr"
user.EntityData.ParentYangName = "users"
user.EntityData.SegmentPath = "user" + types.AddKeyToken(user.Name, "name")
user.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/users/" + user.EntityData.SegmentPath
user.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
user.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
user.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
user.EntityData.Children = types.NewOrderedMap()
user.EntityData.Children.Append("task-map", types.YChild{"TaskMap", &user.TaskMap})
user.EntityData.Leafs = types.NewOrderedMap()
user.EntityData.Leafs.Append("name", types.YLeaf{"Name", user.Name})
user.EntityData.Leafs.Append("name-xr", types.YLeaf{"NameXr", user.NameXr})
user.EntityData.Leafs.Append("admin-user", types.YLeaf{"AdminUser", user.AdminUser})
user.EntityData.Leafs.Append("first-user", types.YLeaf{"FirstUser", user.FirstUser})
user.EntityData.Leafs.Append("usergroup", types.YLeaf{"Usergroup", user.Usergroup})
user.EntityData.YListKeys = []string {"Name"}
return &(user.EntityData)
}
// Aaa_Users_User_TaskMap
// Computed taskmap
type Aaa_Users_User_TaskMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of permitted tasks. The type is slice of Aaa_Users_User_TaskMap_Tasks.
Tasks []*Aaa_Users_User_TaskMap_Tasks
}
func (taskMap *Aaa_Users_User_TaskMap) GetEntityData() *types.CommonEntityData {
taskMap.EntityData.YFilter = taskMap.YFilter
taskMap.EntityData.YangName = "task-map"
taskMap.EntityData.BundleName = "cisco_ios_xr"
taskMap.EntityData.ParentYangName = "user"
taskMap.EntityData.SegmentPath = "task-map"
taskMap.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/users/user/" + taskMap.EntityData.SegmentPath
taskMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
taskMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
taskMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
taskMap.EntityData.Children = types.NewOrderedMap()
taskMap.EntityData.Children.Append("tasks", types.YChild{"Tasks", nil})
for i := range taskMap.Tasks {
types.SetYListKey(taskMap.Tasks[i], i)
taskMap.EntityData.Children.Append(types.GetSegmentPath(taskMap.Tasks[i]), types.YChild{"Tasks", taskMap.Tasks[i]})
}
taskMap.EntityData.Leafs = types.NewOrderedMap()
taskMap.EntityData.YListKeys = []string {}
return &(taskMap.EntityData)
}
// Aaa_Users_User_TaskMap_Tasks
// List of permitted tasks
type Aaa_Users_User_TaskMap_Tasks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Name of the task-id. The type is string.
TaskId interface{}
// Is read permitted?. The type is bool.
Read interface{}
// Is write permitted?. The type is bool.
Write interface{}
// Is execute permitted?. The type is bool.
Execute interface{}
// Is debug permitted?. The type is bool.
Debug interface{}
}
func (tasks *Aaa_Users_User_TaskMap_Tasks) GetEntityData() *types.CommonEntityData {
tasks.EntityData.YFilter = tasks.YFilter
tasks.EntityData.YangName = "tasks"
tasks.EntityData.BundleName = "cisco_ios_xr"
tasks.EntityData.ParentYangName = "task-map"
tasks.EntityData.SegmentPath = "tasks" + types.AddNoKeyToken(tasks)
tasks.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/users/user/task-map/" + tasks.EntityData.SegmentPath
tasks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
tasks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
tasks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
tasks.EntityData.Children = types.NewOrderedMap()
tasks.EntityData.Leafs = types.NewOrderedMap()
tasks.EntityData.Leafs.Append("task-id", types.YLeaf{"TaskId", tasks.TaskId})
tasks.EntityData.Leafs.Append("read", types.YLeaf{"Read", tasks.Read})
tasks.EntityData.Leafs.Append("write", types.YLeaf{"Write", tasks.Write})
tasks.EntityData.Leafs.Append("execute", types.YLeaf{"Execute", tasks.Execute})
tasks.EntityData.Leafs.Append("debug", types.YLeaf{"Debug", tasks.Debug})
tasks.EntityData.YListKeys = []string {}
return &(tasks.EntityData)
}
// Aaa_PasswordPolicies
// Container for individual password policy
// Information
type Aaa_PasswordPolicies struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Password policy details. The type is slice of
// Aaa_PasswordPolicies_PasswordPolicy.
PasswordPolicy []*Aaa_PasswordPolicies_PasswordPolicy
}
func (passwordPolicies *Aaa_PasswordPolicies) GetEntityData() *types.CommonEntityData {
passwordPolicies.EntityData.YFilter = passwordPolicies.YFilter
passwordPolicies.EntityData.YangName = "password-policies"
passwordPolicies.EntityData.BundleName = "cisco_ios_xr"
passwordPolicies.EntityData.ParentYangName = "aaa"
passwordPolicies.EntityData.SegmentPath = "password-policies"
passwordPolicies.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + passwordPolicies.EntityData.SegmentPath
passwordPolicies.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
passwordPolicies.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
passwordPolicies.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
passwordPolicies.EntityData.Children = types.NewOrderedMap()
passwordPolicies.EntityData.Children.Append("password-policy", types.YChild{"PasswordPolicy", nil})
for i := range passwordPolicies.PasswordPolicy {
passwordPolicies.EntityData.Children.Append(types.GetSegmentPath(passwordPolicies.PasswordPolicy[i]), types.YChild{"PasswordPolicy", passwordPolicies.PasswordPolicy[i]})
}
passwordPolicies.EntityData.Leafs = types.NewOrderedMap()
passwordPolicies.EntityData.YListKeys = []string {}
return &(passwordPolicies.EntityData)
}
// Aaa_PasswordPolicies_PasswordPolicy
// Password policy details
type Aaa_PasswordPolicies_PasswordPolicy struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Password policy name. The type is string.
Name interface{}
// Password Policy Name. The type is string.
NameXr interface{}
// Min Length. The type is interface{} with range: 0..255.
MinLen interface{}
// Max Length. The type is interface{} with range: 0..255.
MaxLen interface{}
// Special Character length. The type is interface{} with range: 0..255.
SplChar interface{}
// UpperCase Character length. The type is interface{} with range: 0..255.
UpperCase interface{}
// LowerCase Character length. The type is interface{} with range: 0..255.
LowerCase interface{}
// Numeric Character length. The type is interface{} with range: 0..255.
Numeric interface{}
// Number of different characters. The type is interface{} with range: 0..255.
MinCharChange interface{}
// Number of users with this policy. The type is interface{} with range:
// 0..255.
NumOfUsers interface{}
// Maximum Failure Attempts allowed. The type is interface{} with range:
// 0..4294967295.
MaxFailAttempts interface{}
// Count of users. The type is interface{} with range: 0..255.
UsrCount interface{}
// Error Count. The type is interface{} with range: 0..255.
ErrCount interface{}
// Lock Out Count. The type is interface{} with range: 0..255.
LockOutCount interface{}
// Lifetime of the policy.
LifeTime Aaa_PasswordPolicies_PasswordPolicy_LifeTime
// Lockout time of the policy.
LockOutTime Aaa_PasswordPolicies_PasswordPolicy_LockOutTime
}
func (passwordPolicy *Aaa_PasswordPolicies_PasswordPolicy) GetEntityData() *types.CommonEntityData {
passwordPolicy.EntityData.YFilter = passwordPolicy.YFilter
passwordPolicy.EntityData.YangName = "password-policy"
passwordPolicy.EntityData.BundleName = "cisco_ios_xr"
passwordPolicy.EntityData.ParentYangName = "password-policies"
passwordPolicy.EntityData.SegmentPath = "password-policy" + types.AddKeyToken(passwordPolicy.Name, "name")
passwordPolicy.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/password-policies/" + passwordPolicy.EntityData.SegmentPath
passwordPolicy.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
passwordPolicy.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
passwordPolicy.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
passwordPolicy.EntityData.Children = types.NewOrderedMap()
passwordPolicy.EntityData.Children.Append("life-time", types.YChild{"LifeTime", &passwordPolicy.LifeTime})
passwordPolicy.EntityData.Children.Append("lock-out-time", types.YChild{"LockOutTime", &passwordPolicy.LockOutTime})
passwordPolicy.EntityData.Leafs = types.NewOrderedMap()
passwordPolicy.EntityData.Leafs.Append("name", types.YLeaf{"Name", passwordPolicy.Name})
passwordPolicy.EntityData.Leafs.Append("name-xr", types.YLeaf{"NameXr", passwordPolicy.NameXr})
passwordPolicy.EntityData.Leafs.Append("min-len", types.YLeaf{"MinLen", passwordPolicy.MinLen})
passwordPolicy.EntityData.Leafs.Append("max-len", types.YLeaf{"MaxLen", passwordPolicy.MaxLen})
passwordPolicy.EntityData.Leafs.Append("spl-char", types.YLeaf{"SplChar", passwordPolicy.SplChar})
passwordPolicy.EntityData.Leafs.Append("upper-case", types.YLeaf{"UpperCase", passwordPolicy.UpperCase})
passwordPolicy.EntityData.Leafs.Append("lower-case", types.YLeaf{"LowerCase", passwordPolicy.LowerCase})
passwordPolicy.EntityData.Leafs.Append("numeric", types.YLeaf{"Numeric", passwordPolicy.Numeric})
passwordPolicy.EntityData.Leafs.Append("min-char-change", types.YLeaf{"MinCharChange", passwordPolicy.MinCharChange})
passwordPolicy.EntityData.Leafs.Append("num-of-users", types.YLeaf{"NumOfUsers", passwordPolicy.NumOfUsers})
passwordPolicy.EntityData.Leafs.Append("max-fail-attempts", types.YLeaf{"MaxFailAttempts", passwordPolicy.MaxFailAttempts})
passwordPolicy.EntityData.Leafs.Append("usr-count", types.YLeaf{"UsrCount", passwordPolicy.UsrCount})
passwordPolicy.EntityData.Leafs.Append("err-count", types.YLeaf{"ErrCount", passwordPolicy.ErrCount})
passwordPolicy.EntityData.Leafs.Append("lock-out-count", types.YLeaf{"LockOutCount", passwordPolicy.LockOutCount})
passwordPolicy.EntityData.YListKeys = []string {"Name"}
return &(passwordPolicy.EntityData)
}
// Aaa_PasswordPolicies_PasswordPolicy_LifeTime
// Lifetime of the policy
type Aaa_PasswordPolicies_PasswordPolicy_LifeTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// years. The type is interface{} with range: 0..255.
Years interface{}
// months. The type is interface{} with range: 0..255.
Months interface{}
// days. The type is interface{} with range: 0..255.
Days interface{}
// hours. The type is interface{} with range: 0..255.
Hours interface{}
// mins. The type is interface{} with range: 0..255.
Mins interface{}
// secs. The type is interface{} with range: 0..255.
Secs interface{}
}
func (lifeTime *Aaa_PasswordPolicies_PasswordPolicy_LifeTime) GetEntityData() *types.CommonEntityData {
lifeTime.EntityData.YFilter = lifeTime.YFilter
lifeTime.EntityData.YangName = "life-time"
lifeTime.EntityData.BundleName = "cisco_ios_xr"
lifeTime.EntityData.ParentYangName = "password-policy"
lifeTime.EntityData.SegmentPath = "life-time"
lifeTime.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/password-policies/password-policy/" + lifeTime.EntityData.SegmentPath
lifeTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
lifeTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
lifeTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
lifeTime.EntityData.Children = types.NewOrderedMap()
lifeTime.EntityData.Leafs = types.NewOrderedMap()
lifeTime.EntityData.Leafs.Append("years", types.YLeaf{"Years", lifeTime.Years})
lifeTime.EntityData.Leafs.Append("months", types.YLeaf{"Months", lifeTime.Months})
lifeTime.EntityData.Leafs.Append("days", types.YLeaf{"Days", lifeTime.Days})
lifeTime.EntityData.Leafs.Append("hours", types.YLeaf{"Hours", lifeTime.Hours})
lifeTime.EntityData.Leafs.Append("mins", types.YLeaf{"Mins", lifeTime.Mins})
lifeTime.EntityData.Leafs.Append("secs", types.YLeaf{"Secs", lifeTime.Secs})
lifeTime.EntityData.YListKeys = []string {}
return &(lifeTime.EntityData)
}
// Aaa_PasswordPolicies_PasswordPolicy_LockOutTime
// Lockout time of the policy
type Aaa_PasswordPolicies_PasswordPolicy_LockOutTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// years. The type is interface{} with range: 0..255.
Years interface{}
// months. The type is interface{} with range: 0..255.
Months interface{}
// days. The type is interface{} with range: 0..255.
Days interface{}
// hours. The type is interface{} with range: 0..255.
Hours interface{}
// mins. The type is interface{} with range: 0..255.
Mins interface{}
// secs. The type is interface{} with range: 0..255.
Secs interface{}
}
func (lockOutTime *Aaa_PasswordPolicies_PasswordPolicy_LockOutTime) GetEntityData() *types.CommonEntityData {
lockOutTime.EntityData.YFilter = lockOutTime.YFilter
lockOutTime.EntityData.YangName = "lock-out-time"
lockOutTime.EntityData.BundleName = "cisco_ios_xr"
lockOutTime.EntityData.ParentYangName = "password-policy"
lockOutTime.EntityData.SegmentPath = "lock-out-time"
lockOutTime.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/password-policies/password-policy/" + lockOutTime.EntityData.SegmentPath
lockOutTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
lockOutTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
lockOutTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
lockOutTime.EntityData.Children = types.NewOrderedMap()
lockOutTime.EntityData.Leafs = types.NewOrderedMap()
lockOutTime.EntityData.Leafs.Append("years", types.YLeaf{"Years", lockOutTime.Years})
lockOutTime.EntityData.Leafs.Append("months", types.YLeaf{"Months", lockOutTime.Months})
lockOutTime.EntityData.Leafs.Append("days", types.YLeaf{"Days", lockOutTime.Days})
lockOutTime.EntityData.Leafs.Append("hours", types.YLeaf{"Hours", lockOutTime.Hours})
lockOutTime.EntityData.Leafs.Append("mins", types.YLeaf{"Mins", lockOutTime.Mins})
lockOutTime.EntityData.Leafs.Append("secs", types.YLeaf{"Secs", lockOutTime.Secs})
lockOutTime.EntityData.YListKeys = []string {}
return &(lockOutTime.EntityData)
}
// Aaa_Usergroups
// Container for individual usergroup Information
type Aaa_Usergroups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specific Usergroup Information. The type is slice of
// Aaa_Usergroups_Usergroup.
Usergroup []*Aaa_Usergroups_Usergroup
}
func (usergroups *Aaa_Usergroups) GetEntityData() *types.CommonEntityData {
usergroups.EntityData.YFilter = usergroups.YFilter
usergroups.EntityData.YangName = "usergroups"
usergroups.EntityData.BundleName = "cisco_ios_xr"
usergroups.EntityData.ParentYangName = "aaa"
usergroups.EntityData.SegmentPath = "usergroups"
usergroups.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/" + usergroups.EntityData.SegmentPath
usergroups.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
usergroups.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
usergroups.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
usergroups.EntityData.Children = types.NewOrderedMap()
usergroups.EntityData.Children.Append("usergroup", types.YChild{"Usergroup", nil})
for i := range usergroups.Usergroup {
usergroups.EntityData.Children.Append(types.GetSegmentPath(usergroups.Usergroup[i]), types.YChild{"Usergroup", usergroups.Usergroup[i]})
}
usergroups.EntityData.Leafs = types.NewOrderedMap()
usergroups.EntityData.YListKeys = []string {}
return &(usergroups.EntityData)
}
// Aaa_Usergroups_Usergroup
// Specific Usergroup Information
type Aaa_Usergroups_Usergroup struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Usergroup name. The type is string.
Name interface{}
// Name of the usergroup. The type is string.
NameXr interface{}
// Computed task map.
TaskMap Aaa_Usergroups_Usergroup_TaskMap
// Component taskgroups. The type is slice of
// Aaa_Usergroups_Usergroup_Taskgroup.
Taskgroup []*Aaa_Usergroups_Usergroup_Taskgroup
}
func (usergroup *Aaa_Usergroups_Usergroup) GetEntityData() *types.CommonEntityData {
usergroup.EntityData.YFilter = usergroup.YFilter
usergroup.EntityData.YangName = "usergroup"
usergroup.EntityData.BundleName = "cisco_ios_xr"
usergroup.EntityData.ParentYangName = "usergroups"
usergroup.EntityData.SegmentPath = "usergroup" + types.AddKeyToken(usergroup.Name, "name")
usergroup.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/usergroups/" + usergroup.EntityData.SegmentPath
usergroup.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
usergroup.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
usergroup.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
usergroup.EntityData.Children = types.NewOrderedMap()
usergroup.EntityData.Children.Append("task-map", types.YChild{"TaskMap", &usergroup.TaskMap})
usergroup.EntityData.Children.Append("taskgroup", types.YChild{"Taskgroup", nil})
for i := range usergroup.Taskgroup {
types.SetYListKey(usergroup.Taskgroup[i], i)
usergroup.EntityData.Children.Append(types.GetSegmentPath(usergroup.Taskgroup[i]), types.YChild{"Taskgroup", usergroup.Taskgroup[i]})
}
usergroup.EntityData.Leafs = types.NewOrderedMap()
usergroup.EntityData.Leafs.Append("name", types.YLeaf{"Name", usergroup.Name})
usergroup.EntityData.Leafs.Append("name-xr", types.YLeaf{"NameXr", usergroup.NameXr})
usergroup.EntityData.YListKeys = []string {"Name"}
return &(usergroup.EntityData)
}
// Aaa_Usergroups_Usergroup_TaskMap
// Computed task map
type Aaa_Usergroups_Usergroup_TaskMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of permitted tasks. The type is slice of
// Aaa_Usergroups_Usergroup_TaskMap_Tasks.
Tasks []*Aaa_Usergroups_Usergroup_TaskMap_Tasks
}
func (taskMap *Aaa_Usergroups_Usergroup_TaskMap) GetEntityData() *types.CommonEntityData {
taskMap.EntityData.YFilter = taskMap.YFilter
taskMap.EntityData.YangName = "task-map"
taskMap.EntityData.BundleName = "cisco_ios_xr"
taskMap.EntityData.ParentYangName = "usergroup"
taskMap.EntityData.SegmentPath = "task-map"
taskMap.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/usergroups/usergroup/" + taskMap.EntityData.SegmentPath
taskMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
taskMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
taskMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
taskMap.EntityData.Children = types.NewOrderedMap()
taskMap.EntityData.Children.Append("tasks", types.YChild{"Tasks", nil})
for i := range taskMap.Tasks {
types.SetYListKey(taskMap.Tasks[i], i)
taskMap.EntityData.Children.Append(types.GetSegmentPath(taskMap.Tasks[i]), types.YChild{"Tasks", taskMap.Tasks[i]})
}
taskMap.EntityData.Leafs = types.NewOrderedMap()
taskMap.EntityData.YListKeys = []string {}
return &(taskMap.EntityData)
}
// Aaa_Usergroups_Usergroup_TaskMap_Tasks
// List of permitted tasks
type Aaa_Usergroups_Usergroup_TaskMap_Tasks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Name of the task-id. The type is string.
TaskId interface{}
// Is read permitted?. The type is bool.
Read interface{}
// Is write permitted?. The type is bool.
Write interface{}
// Is execute permitted?. The type is bool.
Execute interface{}
// Is debug permitted?. The type is bool.
Debug interface{}
}
func (tasks *Aaa_Usergroups_Usergroup_TaskMap_Tasks) GetEntityData() *types.CommonEntityData {
tasks.EntityData.YFilter = tasks.YFilter
tasks.EntityData.YangName = "tasks"
tasks.EntityData.BundleName = "cisco_ios_xr"
tasks.EntityData.ParentYangName = "task-map"
tasks.EntityData.SegmentPath = "tasks" + types.AddNoKeyToken(tasks)
tasks.EntityData.AbsolutePath = "Cisco-IOS-XR-aaa-locald-oper:aaa/usergroups/usergroup/task-map/" + tasks.EntityData.SegmentPath
tasks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
tasks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
tasks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()