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
/
sysadmin_sdr_mgr.go
1592 lines (1261 loc) · 67.5 KB
/
sysadmin_sdr_mgr.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 definitions
// for the Calvados model objects.
//
// This module contains a collection of YANG
// definitions for Cisco IOS-XR SysAdmin configuration.
//
// This module defines the SDR-SM support config for SDR
//
// Copyright(c) 2011-2017 by Cisco Systems, Inc.
// All rights reserved.
//
// Copyright (c) 2012-2018 by Cisco Systems, Inc.
// All rights reserved.
package sysadmin_sdr_mgr
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 sysadmin_sdr_mgr"))
ydk.RegisterEntity("{http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-sdr-mgr sdr-config}", reflect.TypeOf(SdrConfig{}))
ydk.RegisterEntity("Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config", reflect.TypeOf(SdrConfig{}))
ydk.RegisterEntity("{http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-sdr-mgr sdr-manager}", reflect.TypeOf(SdrManager{}))
ydk.RegisterEntity("Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-manager", reflect.TypeOf(SdrManager{}))
ydk.RegisterEntity("{http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-sdr-mgr sdr-operation}", reflect.TypeOf(SdrOperation{}))
ydk.RegisterEntity("Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-operation", reflect.TypeOf(SdrOperation{}))
ydk.RegisterEntity("{http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-sdr-mgr private-sdr}", reflect.TypeOf(PrivateSdr{}))
ydk.RegisterEntity("Cisco-IOS-XR-sysadmin-sdr-mgr:private-sdr", reflect.TypeOf(PrivateSdr{}))
}
// VmReloadReason represents The List of vm reload reasons
type VmReloadReason string
const (
VmReloadReason_CARD_OFFLINE VmReloadReason = "CARD_OFFLINE"
VmReloadReason_CARD_SHUTDOWN VmReloadReason = "CARD_SHUTDOWN"
VmReloadReason_ALL_VM_RELOAD VmReloadReason = "ALL_VM_RELOAD"
VmReloadReason_VM_REQUESTED_GRACEFUL_RELOAD VmReloadReason = "VM_REQUESTED_GRACEFUL_RELOAD"
VmReloadReason_VM_REQUESTED_UNGRACEFUL_RELOAD VmReloadReason = "VM_REQUESTED_UNGRACEFUL_RELOAD"
VmReloadReason_SDR_CLI_REQUESTED VmReloadReason = "SDR_CLI_REQUESTED"
VmReloadReason_SDR_VCPU_VMEM_CHANGED VmReloadReason = "SDR_VCPU_VMEM_CHANGED"
VmReloadReason_SDR_HEARTBEAT_FAILURE VmReloadReason = "SDR_HEARTBEAT_FAILURE"
VmReloadReason_FIRST_BOOT VmReloadReason = "FIRST_BOOT"
VmReloadReason_SMU VmReloadReason = "SMU"
VmReloadReason_REASON_UNKNOWN VmReloadReason = "REASON_UNKNOWN"
)
// CardType represents The List of supported Card Types
type CardType string
const (
CardType_RP CardType = "RP"
CardType_LC CardType = "LC"
CardType_CC CardType = "CC"
)
// SdrConfig
type SdrConfig struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Add/Edit a Secure Domain Router by name. The type is slice of
// SdrConfig_Sdr.
Sdr []*SdrConfig_Sdr
}
func (sdrConfig *SdrConfig) GetEntityData() *types.CommonEntityData {
sdrConfig.EntityData.YFilter = sdrConfig.YFilter
sdrConfig.EntityData.YangName = "sdr-config"
sdrConfig.EntityData.BundleName = "cisco_ios_xr"
sdrConfig.EntityData.ParentYangName = "Cisco-IOS-XR-sysadmin-sdr-mgr"
sdrConfig.EntityData.SegmentPath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config"
sdrConfig.EntityData.AbsolutePath = sdrConfig.EntityData.SegmentPath
sdrConfig.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sdrConfig.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sdrConfig.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sdrConfig.EntityData.Children = types.NewOrderedMap()
sdrConfig.EntityData.Children.Append("sdr", types.YChild{"Sdr", nil})
for i := range sdrConfig.Sdr {
sdrConfig.EntityData.Children.Append(types.GetSegmentPath(sdrConfig.Sdr[i]), types.YChild{"Sdr", sdrConfig.Sdr[i]})
}
sdrConfig.EntityData.Leafs = types.NewOrderedMap()
sdrConfig.EntityData.YListKeys = []string {}
return &(sdrConfig.EntityData)
}
// SdrConfig_Sdr
// Add/Edit a Secure Domain Router by name
type SdrConfig_Sdr struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Name of the Secure Domain Router , 30 max
// characters. The type is string with pattern: [a-zA-Z0-9_-]{1,30}.
Name interface{}
// List of the initial image and packages for the Secure Domain Router. The
// type is string.
InitialImage interface{}
// Amount of time between lead down to declare SDR down. The type is
// interface{} with range: 0..4294967295.
LeadDownDelta interface{}
// Setting for pairing mode. The type is PairingMode.
PairingMode interface{}
// ISSU flag. Once disabled, ISSU won't be performed for this SDR. The type is
// Issu.
Issu interface{}
// Edit resources for a Secure Domain Router.
Resources SdrConfig_Sdr_Resources
// Enter list of nodes' location to add to this LR. The type is slice of
// SdrConfig_Sdr_Location.
Location []*SdrConfig_Sdr_Location
Action SdrConfig_Sdr_Action
Detail SdrConfig_Sdr_Detail
RebootHistory SdrConfig_Sdr_RebootHistory
Nodes SdrConfig_Sdr_Nodes
Pairing2 SdrConfig_Sdr_Pairing2
// Add/Edit a RP Pairing by name. The type is slice of SdrConfig_Sdr_Pairing.
Pairing []*SdrConfig_Sdr_Pairing
}
func (sdr *SdrConfig_Sdr) GetEntityData() *types.CommonEntityData {
sdr.EntityData.YFilter = sdr.YFilter
sdr.EntityData.YangName = "sdr"
sdr.EntityData.BundleName = "cisco_ios_xr"
sdr.EntityData.ParentYangName = "sdr-config"
sdr.EntityData.SegmentPath = "sdr" + types.AddKeyToken(sdr.Name, "name")
sdr.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/" + sdr.EntityData.SegmentPath
sdr.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sdr.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sdr.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sdr.EntityData.Children = types.NewOrderedMap()
sdr.EntityData.Children.Append("resources", types.YChild{"Resources", &sdr.Resources})
sdr.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range sdr.Location {
sdr.EntityData.Children.Append(types.GetSegmentPath(sdr.Location[i]), types.YChild{"Location", sdr.Location[i]})
}
sdr.EntityData.Children.Append("Action", types.YChild{"Action", &sdr.Action})
sdr.EntityData.Children.Append("detail", types.YChild{"Detail", &sdr.Detail})
sdr.EntityData.Children.Append("reboot-history", types.YChild{"RebootHistory", &sdr.RebootHistory})
sdr.EntityData.Children.Append("nodes", types.YChild{"Nodes", &sdr.Nodes})
sdr.EntityData.Children.Append("pairing2", types.YChild{"Pairing2", &sdr.Pairing2})
sdr.EntityData.Children.Append("pairing", types.YChild{"Pairing", nil})
for i := range sdr.Pairing {
sdr.EntityData.Children.Append(types.GetSegmentPath(sdr.Pairing[i]), types.YChild{"Pairing", sdr.Pairing[i]})
}
sdr.EntityData.Leafs = types.NewOrderedMap()
sdr.EntityData.Leafs.Append("name", types.YLeaf{"Name", sdr.Name})
sdr.EntityData.Leafs.Append("initial-image", types.YLeaf{"InitialImage", sdr.InitialImage})
sdr.EntityData.Leafs.Append("lead_down_delta", types.YLeaf{"LeadDownDelta", sdr.LeadDownDelta})
sdr.EntityData.Leafs.Append("pairing-mode", types.YLeaf{"PairingMode", sdr.PairingMode})
sdr.EntityData.Leafs.Append("issu", types.YLeaf{"Issu", sdr.Issu})
sdr.EntityData.YListKeys = []string {"Name"}
return &(sdr.EntityData)
}
// SdrConfig_Sdr_Resources
// Edit resources for a Secure Domain Router
type SdrConfig_Sdr_Resources struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Fgids for a Secure Domain Router. The type is interface{} with range:
// 25000..524288.
Fgid interface{}
// Management External VLAN for Secure Domain Router. The type is interface{}
// with range: 2..4094.
MgmtExtVlan interface{}
// Edit disk space size for a Secure Domain Router, unit in [MB]. The type is
// interface{} with range: 0..4294967295.
DiskSpaceSize interface{}
// The type is slice of SdrConfig_Sdr_Resources_CardType.
CardType []*SdrConfig_Sdr_Resources_CardType
}
func (resources *SdrConfig_Sdr_Resources) GetEntityData() *types.CommonEntityData {
resources.EntityData.YFilter = resources.YFilter
resources.EntityData.YangName = "resources"
resources.EntityData.BundleName = "cisco_ios_xr"
resources.EntityData.ParentYangName = "sdr"
resources.EntityData.SegmentPath = "resources"
resources.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + resources.EntityData.SegmentPath
resources.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
resources.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
resources.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
resources.EntityData.Children = types.NewOrderedMap()
resources.EntityData.Children.Append("card-type", types.YChild{"CardType", nil})
for i := range resources.CardType {
resources.EntityData.Children.Append(types.GetSegmentPath(resources.CardType[i]), types.YChild{"CardType", resources.CardType[i]})
}
resources.EntityData.Leafs = types.NewOrderedMap()
resources.EntityData.Leafs.Append("fgid", types.YLeaf{"Fgid", resources.Fgid})
resources.EntityData.Leafs.Append("mgmt_ext_vlan", types.YLeaf{"MgmtExtVlan", resources.MgmtExtVlan})
resources.EntityData.Leafs.Append("disk-space-size", types.YLeaf{"DiskSpaceSize", resources.DiskSpaceSize})
resources.EntityData.YListKeys = []string {}
return &(resources.EntityData)
}
// SdrConfig_Sdr_Resources_CardType
type SdrConfig_Sdr_Resources_CardType struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Card Type. The type is CardType.
Type interface{}
// VM Memory Size in units of [GB]. The type is interface{} with range:
// 1..128.
VmMemory interface{}
// VM Number of CPUs. The type is interface{} with range: 1..128.
VmCpu interface{}
}
func (cardType *SdrConfig_Sdr_Resources_CardType) GetEntityData() *types.CommonEntityData {
cardType.EntityData.YFilter = cardType.YFilter
cardType.EntityData.YangName = "card-type"
cardType.EntityData.BundleName = "cisco_ios_xr"
cardType.EntityData.ParentYangName = "resources"
cardType.EntityData.SegmentPath = "card-type" + types.AddKeyToken(cardType.Type, "type")
cardType.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/resources/" + cardType.EntityData.SegmentPath
cardType.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
cardType.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
cardType.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
cardType.EntityData.Children = types.NewOrderedMap()
cardType.EntityData.Leafs = types.NewOrderedMap()
cardType.EntityData.Leafs.Append("type", types.YLeaf{"Type", cardType.Type})
cardType.EntityData.Leafs.Append("vm-memory", types.YLeaf{"VmMemory", cardType.VmMemory})
cardType.EntityData.Leafs.Append("vm-cpu", types.YLeaf{"VmCpu", cardType.VmCpu})
cardType.EntityData.YListKeys = []string {"Type"}
return &(cardType.EntityData)
}
// SdrConfig_Sdr_Location
// Enter list of nodes' location to add to this LR
type SdrConfig_Sdr_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Enter location or all. The type is string with
// pattern:
// ((0?[0-9]|1[1-5]|[bB]\d)/(([rR][pP]|[lL][cC]|[cC][bB])?\d{1,2}))(/[cC][pP][uU]0)?|all.
NodeLocation interface{}
}
func (location *SdrConfig_Sdr_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "sdr"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.NodeLocation, "node-location")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("node-location", types.YLeaf{"NodeLocation", location.NodeLocation})
location.EntityData.YListKeys = []string {"NodeLocation"}
return &(location.EntityData)
}
// SdrConfig_Sdr_Action
type SdrConfig_Sdr_Action struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The type is slice of SdrConfig_Sdr_Action_Location.
Location []*SdrConfig_Sdr_Action_Location
}
func (action *SdrConfig_Sdr_Action) GetEntityData() *types.CommonEntityData {
action.EntityData.YFilter = action.YFilter
action.EntityData.YangName = "Action"
action.EntityData.BundleName = "cisco_ios_xr"
action.EntityData.ParentYangName = "sdr"
action.EntityData.SegmentPath = "Action"
action.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + action.EntityData.SegmentPath
action.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
action.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
action.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
action.EntityData.Children = types.NewOrderedMap()
action.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range action.Location {
action.EntityData.Children.Append(types.GetSegmentPath(action.Location[i]), types.YChild{"Location", action.Location[i]})
}
action.EntityData.Leafs = types.NewOrderedMap()
action.EntityData.YListKeys = []string {}
return &(action.EntityData)
}
// SdrConfig_Sdr_Action_Location
type SdrConfig_Sdr_Action_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Enter location or all. The type is string with
// pattern:
// ((0?[0-9]|1[1-5]|[bB]\d)/((([rR]([sS]){0,1}[pP])|[cC][bB])?\d{1,2})/[V][M](0?[0-9]|1[1-5]))?|all.
NodeLocation interface{}
}
func (location *SdrConfig_Sdr_Action_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "Action"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.NodeLocation, "node-location")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/Action/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("node-location", types.YLeaf{"NodeLocation", location.NodeLocation})
location.EntityData.YListKeys = []string {"NodeLocation"}
return &(location.EntityData)
}
// SdrConfig_Sdr_Detail
type SdrConfig_Sdr_Detail struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The type is slice of SdrConfig_Sdr_Detail_Location.
Location []*SdrConfig_Sdr_Detail_Location
}
func (detail *SdrConfig_Sdr_Detail) GetEntityData() *types.CommonEntityData {
detail.EntityData.YFilter = detail.YFilter
detail.EntityData.YangName = "detail"
detail.EntityData.BundleName = "cisco_ios_xr"
detail.EntityData.ParentYangName = "sdr"
detail.EntityData.SegmentPath = "detail"
detail.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + detail.EntityData.SegmentPath
detail.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
detail.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
detail.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
detail.EntityData.Children = types.NewOrderedMap()
detail.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range detail.Location {
detail.EntityData.Children.Append(types.GetSegmentPath(detail.Location[i]), types.YChild{"Location", detail.Location[i]})
}
detail.EntityData.Leafs = types.NewOrderedMap()
detail.EntityData.YListKeys = []string {}
return &(detail.EntityData)
}
// SdrConfig_Sdr_Detail_Location
type SdrConfig_Sdr_Detail_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with pattern:
// ((0?[0-9]|1[1-5]|[bB]\d)/((([rR]([sS]){0,1}[pP])|[cC][bB])?\d{1,2})/[V][M](0?[0-9]|1[1-5]))?.
NodeLocation interface{}
// The type is interface{} with range: 0..4294967295.
SdrId interface{}
// IP address of VM. The type is one of the following types: string with
// pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
// or string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
IpAddr interface{}
// MAC address of VM. The type is string.
MacAddress interface{}
// The type is string.
BootPart interface{}
// The type is string.
DataPart interface{}
// The type is string.
BigDisk interface{}
// The type is interface{} with range: 0..4294967295.
VmId interface{}
// The type is interface{} with range: 0..4294967295.
Vmcpu interface{}
// The type is interface{} with range: 0..4294967295.
Vmmemory interface{}
// The type is string.
CardType interface{}
// The type is string.
CardSerial interface{}
// The type is string.
RackType interface{}
// The type is string.
ChassisSerial interface{}
// The type is string.
HwVersion interface{}
// The type is string.
MgmtExtVlan interface{}
// State of VM. The type is string.
State interface{}
// The type is string.
StartTime interface{}
// Number of times rebooted since first boot. The type is interface{} with
// range: 0..4294967295.
RebootCount interface{}
// Number of times rebooted since lasr card reload. The type is interface{}
// with range: 0..4294967295.
RhCount interface{}
// The type is slice of SdrConfig_Sdr_Detail_Location_RebootHist1.
RebootHist1 []*SdrConfig_Sdr_Detail_Location_RebootHist1
}
func (location *SdrConfig_Sdr_Detail_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "detail"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.NodeLocation, "node-location")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/detail/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Children.Append("reboot_hist1", types.YChild{"RebootHist1", nil})
for i := range location.RebootHist1 {
location.EntityData.Children.Append(types.GetSegmentPath(location.RebootHist1[i]), types.YChild{"RebootHist1", location.RebootHist1[i]})
}
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("node-location", types.YLeaf{"NodeLocation", location.NodeLocation})
location.EntityData.Leafs.Append("sdr-id", types.YLeaf{"SdrId", location.SdrId})
location.EntityData.Leafs.Append("ip-addr", types.YLeaf{"IpAddr", location.IpAddr})
location.EntityData.Leafs.Append("mac-address", types.YLeaf{"MacAddress", location.MacAddress})
location.EntityData.Leafs.Append("boot_part", types.YLeaf{"BootPart", location.BootPart})
location.EntityData.Leafs.Append("data_part", types.YLeaf{"DataPart", location.DataPart})
location.EntityData.Leafs.Append("big_disk", types.YLeaf{"BigDisk", location.BigDisk})
location.EntityData.Leafs.Append("vm_id", types.YLeaf{"VmId", location.VmId})
location.EntityData.Leafs.Append("vmcpu", types.YLeaf{"Vmcpu", location.Vmcpu})
location.EntityData.Leafs.Append("vmmemory", types.YLeaf{"Vmmemory", location.Vmmemory})
location.EntityData.Leafs.Append("card-type", types.YLeaf{"CardType", location.CardType})
location.EntityData.Leafs.Append("card_serial", types.YLeaf{"CardSerial", location.CardSerial})
location.EntityData.Leafs.Append("rack-type", types.YLeaf{"RackType", location.RackType})
location.EntityData.Leafs.Append("chassis_serial", types.YLeaf{"ChassisSerial", location.ChassisSerial})
location.EntityData.Leafs.Append("hw_version", types.YLeaf{"HwVersion", location.HwVersion})
location.EntityData.Leafs.Append("mgmt_ext_vlan", types.YLeaf{"MgmtExtVlan", location.MgmtExtVlan})
location.EntityData.Leafs.Append("state", types.YLeaf{"State", location.State})
location.EntityData.Leafs.Append("start-time", types.YLeaf{"StartTime", location.StartTime})
location.EntityData.Leafs.Append("reboot_count", types.YLeaf{"RebootCount", location.RebootCount})
location.EntityData.Leafs.Append("rh_count", types.YLeaf{"RhCount", location.RhCount})
location.EntityData.YListKeys = []string {"NodeLocation"}
return &(location.EntityData)
}
// SdrConfig_Sdr_Detail_Location_RebootHist1
type SdrConfig_Sdr_Detail_Location_RebootHist1 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is interface{} with range: 0..4294967295.
Count interface{}
// The type is string.
Time interface{}
// Reason for reload. The type is string.
Reason interface{}
}
func (rebootHist1 *SdrConfig_Sdr_Detail_Location_RebootHist1) GetEntityData() *types.CommonEntityData {
rebootHist1.EntityData.YFilter = rebootHist1.YFilter
rebootHist1.EntityData.YangName = "reboot_hist1"
rebootHist1.EntityData.BundleName = "cisco_ios_xr"
rebootHist1.EntityData.ParentYangName = "location"
rebootHist1.EntityData.SegmentPath = "reboot_hist1" + types.AddKeyToken(rebootHist1.Count, "count")
rebootHist1.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/detail/location/" + rebootHist1.EntityData.SegmentPath
rebootHist1.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rebootHist1.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rebootHist1.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rebootHist1.EntityData.Children = types.NewOrderedMap()
rebootHist1.EntityData.Leafs = types.NewOrderedMap()
rebootHist1.EntityData.Leafs.Append("count", types.YLeaf{"Count", rebootHist1.Count})
rebootHist1.EntityData.Leafs.Append("Time", types.YLeaf{"Time", rebootHist1.Time})
rebootHist1.EntityData.Leafs.Append("Reason", types.YLeaf{"Reason", rebootHist1.Reason})
rebootHist1.EntityData.YListKeys = []string {"Count"}
return &(rebootHist1.EntityData)
}
// SdrConfig_Sdr_RebootHistory
type SdrConfig_Sdr_RebootHistory struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
Reverse SdrConfig_Sdr_RebootHistory_Reverse
DefaultDisp SdrConfig_Sdr_RebootHistory_DefaultDisp
}
func (rebootHistory *SdrConfig_Sdr_RebootHistory) GetEntityData() *types.CommonEntityData {
rebootHistory.EntityData.YFilter = rebootHistory.YFilter
rebootHistory.EntityData.YangName = "reboot-history"
rebootHistory.EntityData.BundleName = "cisco_ios_xr"
rebootHistory.EntityData.ParentYangName = "sdr"
rebootHistory.EntityData.SegmentPath = "reboot-history"
rebootHistory.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + rebootHistory.EntityData.SegmentPath
rebootHistory.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rebootHistory.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rebootHistory.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rebootHistory.EntityData.Children = types.NewOrderedMap()
rebootHistory.EntityData.Children.Append("reverse", types.YChild{"Reverse", &rebootHistory.Reverse})
rebootHistory.EntityData.Children.Append("default-disp", types.YChild{"DefaultDisp", &rebootHistory.DefaultDisp})
rebootHistory.EntityData.Leafs = types.NewOrderedMap()
rebootHistory.EntityData.YListKeys = []string {}
return &(rebootHistory.EntityData)
}
// SdrConfig_Sdr_RebootHistory_Reverse
type SdrConfig_Sdr_RebootHistory_Reverse struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The type is slice of SdrConfig_Sdr_RebootHistory_Reverse_Location.
Location []*SdrConfig_Sdr_RebootHistory_Reverse_Location
}
func (reverse *SdrConfig_Sdr_RebootHistory_Reverse) GetEntityData() *types.CommonEntityData {
reverse.EntityData.YFilter = reverse.YFilter
reverse.EntityData.YangName = "reverse"
reverse.EntityData.BundleName = "cisco_ios_xr"
reverse.EntityData.ParentYangName = "reboot-history"
reverse.EntityData.SegmentPath = "reverse"
reverse.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/reboot-history/" + reverse.EntityData.SegmentPath
reverse.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
reverse.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
reverse.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
reverse.EntityData.Children = types.NewOrderedMap()
reverse.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range reverse.Location {
reverse.EntityData.Children.Append(types.GetSegmentPath(reverse.Location[i]), types.YChild{"Location", reverse.Location[i]})
}
reverse.EntityData.Leafs = types.NewOrderedMap()
reverse.EntityData.YListKeys = []string {}
return &(reverse.EntityData)
}
// SdrConfig_Sdr_RebootHistory_Reverse_Location
type SdrConfig_Sdr_RebootHistory_Reverse_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with pattern:
// ((0?[0-9]|1[1-5]|[bB]\d)/((([rR]([sS]){0,1}[pP])|[cC][bB])?\d{1,2})/[V][M](0?[0-9]|1[1-5]))?.
NodeLocation interface{}
// Number of times rebooted since first boot. The type is interface{} with
// range: 0..4294967295.
RebootCount interface{}
// Number of times rebooted since last card reload. The type is interface{}
// with range: 0..4294967295.
RhCount interface{}
// The type is slice of
// SdrConfig_Sdr_RebootHistory_Reverse_Location_RebootHist2.
RebootHist2 []*SdrConfig_Sdr_RebootHistory_Reverse_Location_RebootHist2
}
func (location *SdrConfig_Sdr_RebootHistory_Reverse_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "reverse"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.NodeLocation, "node-location")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/reboot-history/reverse/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Children.Append("reboot_hist2", types.YChild{"RebootHist2", nil})
for i := range location.RebootHist2 {
location.EntityData.Children.Append(types.GetSegmentPath(location.RebootHist2[i]), types.YChild{"RebootHist2", location.RebootHist2[i]})
}
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("node-location", types.YLeaf{"NodeLocation", location.NodeLocation})
location.EntityData.Leafs.Append("reboot_count", types.YLeaf{"RebootCount", location.RebootCount})
location.EntityData.Leafs.Append("rh_count", types.YLeaf{"RhCount", location.RhCount})
location.EntityData.YListKeys = []string {"NodeLocation"}
return &(location.EntityData)
}
// SdrConfig_Sdr_RebootHistory_Reverse_Location_RebootHist2
type SdrConfig_Sdr_RebootHistory_Reverse_Location_RebootHist2 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is interface{} with range: 0..4294967295.
Count interface{}
// The type is string.
Time interface{}
// Reason for reload. The type is string.
Reason interface{}
}
func (rebootHist2 *SdrConfig_Sdr_RebootHistory_Reverse_Location_RebootHist2) GetEntityData() *types.CommonEntityData {
rebootHist2.EntityData.YFilter = rebootHist2.YFilter
rebootHist2.EntityData.YangName = "reboot_hist2"
rebootHist2.EntityData.BundleName = "cisco_ios_xr"
rebootHist2.EntityData.ParentYangName = "location"
rebootHist2.EntityData.SegmentPath = "reboot_hist2" + types.AddKeyToken(rebootHist2.Count, "count")
rebootHist2.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/reboot-history/reverse/location/" + rebootHist2.EntityData.SegmentPath
rebootHist2.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rebootHist2.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rebootHist2.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rebootHist2.EntityData.Children = types.NewOrderedMap()
rebootHist2.EntityData.Leafs = types.NewOrderedMap()
rebootHist2.EntityData.Leafs.Append("count", types.YLeaf{"Count", rebootHist2.Count})
rebootHist2.EntityData.Leafs.Append("Time", types.YLeaf{"Time", rebootHist2.Time})
rebootHist2.EntityData.Leafs.Append("Reason", types.YLeaf{"Reason", rebootHist2.Reason})
rebootHist2.EntityData.YListKeys = []string {"Count"}
return &(rebootHist2.EntityData)
}
// SdrConfig_Sdr_RebootHistory_DefaultDisp
type SdrConfig_Sdr_RebootHistory_DefaultDisp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The type is slice of SdrConfig_Sdr_RebootHistory_DefaultDisp_Location.
Location []*SdrConfig_Sdr_RebootHistory_DefaultDisp_Location
}
func (defaultDisp *SdrConfig_Sdr_RebootHistory_DefaultDisp) GetEntityData() *types.CommonEntityData {
defaultDisp.EntityData.YFilter = defaultDisp.YFilter
defaultDisp.EntityData.YangName = "default-disp"
defaultDisp.EntityData.BundleName = "cisco_ios_xr"
defaultDisp.EntityData.ParentYangName = "reboot-history"
defaultDisp.EntityData.SegmentPath = "default-disp"
defaultDisp.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/reboot-history/" + defaultDisp.EntityData.SegmentPath
defaultDisp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
defaultDisp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
defaultDisp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
defaultDisp.EntityData.Children = types.NewOrderedMap()
defaultDisp.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range defaultDisp.Location {
defaultDisp.EntityData.Children.Append(types.GetSegmentPath(defaultDisp.Location[i]), types.YChild{"Location", defaultDisp.Location[i]})
}
defaultDisp.EntityData.Leafs = types.NewOrderedMap()
defaultDisp.EntityData.YListKeys = []string {}
return &(defaultDisp.EntityData)
}
// SdrConfig_Sdr_RebootHistory_DefaultDisp_Location
type SdrConfig_Sdr_RebootHistory_DefaultDisp_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with pattern:
// ((0?[0-9]|1[1-5]|[bB]\d)/((([rR]([sS]){0,1}[pP])|[cC][bB])?\d{1,2})/[V][M](0?[0-9]|1[1-5]))?.
NodeLocation interface{}
// Number of times rebooted since first boot. The type is interface{} with
// range: 0..4294967295.
RebootCount interface{}
// Number of times rebooted since last card reload. The type is interface{}
// with range: 0..4294967295.
RhCount interface{}
// The type is slice of
// SdrConfig_Sdr_RebootHistory_DefaultDisp_Location_RebootHist2.
RebootHist2 []*SdrConfig_Sdr_RebootHistory_DefaultDisp_Location_RebootHist2
}
func (location *SdrConfig_Sdr_RebootHistory_DefaultDisp_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "default-disp"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.NodeLocation, "node-location")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/reboot-history/default-disp/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Children.Append("reboot_hist2", types.YChild{"RebootHist2", nil})
for i := range location.RebootHist2 {
location.EntityData.Children.Append(types.GetSegmentPath(location.RebootHist2[i]), types.YChild{"RebootHist2", location.RebootHist2[i]})
}
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("node-location", types.YLeaf{"NodeLocation", location.NodeLocation})
location.EntityData.Leafs.Append("reboot_count", types.YLeaf{"RebootCount", location.RebootCount})
location.EntityData.Leafs.Append("rh_count", types.YLeaf{"RhCount", location.RhCount})
location.EntityData.YListKeys = []string {"NodeLocation"}
return &(location.EntityData)
}
// SdrConfig_Sdr_RebootHistory_DefaultDisp_Location_RebootHist2
type SdrConfig_Sdr_RebootHistory_DefaultDisp_Location_RebootHist2 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is interface{} with range: 0..4294967295.
Count interface{}
// The type is string.
Time interface{}
// Reason for reload. The type is string.
Reason interface{}
}
func (rebootHist2 *SdrConfig_Sdr_RebootHistory_DefaultDisp_Location_RebootHist2) GetEntityData() *types.CommonEntityData {
rebootHist2.EntityData.YFilter = rebootHist2.YFilter
rebootHist2.EntityData.YangName = "reboot_hist2"
rebootHist2.EntityData.BundleName = "cisco_ios_xr"
rebootHist2.EntityData.ParentYangName = "location"
rebootHist2.EntityData.SegmentPath = "reboot_hist2" + types.AddKeyToken(rebootHist2.Count, "count")
rebootHist2.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/reboot-history/default-disp/location/" + rebootHist2.EntityData.SegmentPath
rebootHist2.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rebootHist2.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rebootHist2.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rebootHist2.EntityData.Children = types.NewOrderedMap()
rebootHist2.EntityData.Leafs = types.NewOrderedMap()
rebootHist2.EntityData.Leafs.Append("count", types.YLeaf{"Count", rebootHist2.Count})
rebootHist2.EntityData.Leafs.Append("Time", types.YLeaf{"Time", rebootHist2.Time})
rebootHist2.EntityData.Leafs.Append("Reason", types.YLeaf{"Reason", rebootHist2.Reason})
rebootHist2.EntityData.YListKeys = []string {"Count"}
return &(rebootHist2.EntityData)
}
// SdrConfig_Sdr_Nodes
type SdrConfig_Sdr_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The type is slice of SdrConfig_Sdr_Nodes_Location.
Location []*SdrConfig_Sdr_Nodes_Location
}
func (nodes *SdrConfig_Sdr_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "sdr"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range nodes.Location {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Location[i]), types.YChild{"Location", nodes.Location[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// SdrConfig_Sdr_Nodes_Location
type SdrConfig_Sdr_Nodes_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with pattern:
// ((0?[0-9]|1[1-5]|[bB]\d)/((([rR]([sS]){0,1}[pP])|[cC][bB])?\d{1,2})/[V][M](0?[0-9]|1[1-5]))?.
NodeLocation interface{}
// The type is interface{} with range: 0..4294967295.
SdrId interface{}
// IP address of VM. The type is one of the following types: string with
// pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
// or string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
IpAddr interface{}
// MAC address of VM. The type is string.
MacAddress interface{}
// State of VM. The type is string.
State interface{}
// The type is string.
StartTime interface{}
// Reason for last reload. The type is string.
ReloadReason interface{}
// Number of times rebooted since first boot. The type is interface{} with
// range: 0..4294967295.
RebootCount interface{}
// Number of times rebooted since first boot. The type is interface{} with
// range: 0..4294967295.
RhCount interface{}
}
func (location *SdrConfig_Sdr_Nodes_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "nodes"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.NodeLocation, "node-location")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/nodes/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("node-location", types.YLeaf{"NodeLocation", location.NodeLocation})
location.EntityData.Leafs.Append("sdr-id", types.YLeaf{"SdrId", location.SdrId})
location.EntityData.Leafs.Append("ip-addr", types.YLeaf{"IpAddr", location.IpAddr})
location.EntityData.Leafs.Append("mac-address", types.YLeaf{"MacAddress", location.MacAddress})
location.EntityData.Leafs.Append("state", types.YLeaf{"State", location.State})
location.EntityData.Leafs.Append("start-time", types.YLeaf{"StartTime", location.StartTime})
location.EntityData.Leafs.Append("reload_reason", types.YLeaf{"ReloadReason", location.ReloadReason})
location.EntityData.Leafs.Append("reboot_count", types.YLeaf{"RebootCount", location.RebootCount})
location.EntityData.Leafs.Append("rh_count", types.YLeaf{"RhCount", location.RhCount})
location.EntityData.YListKeys = []string {"NodeLocation"}
return &(location.EntityData)
}
// SdrConfig_Sdr_Pairing2
type SdrConfig_Sdr_Pairing2 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Mode of Pairing. The type is string.
PairingMode interface{}
Sdrlead SdrConfig_Sdr_Pairing2_Sdrlead
// The type is slice of SdrConfig_Sdr_Pairing2_Pairing.
Pairing []*SdrConfig_Sdr_Pairing2_Pairing
}
func (pairing2 *SdrConfig_Sdr_Pairing2) GetEntityData() *types.CommonEntityData {
pairing2.EntityData.YFilter = pairing2.YFilter
pairing2.EntityData.YangName = "pairing2"
pairing2.EntityData.BundleName = "cisco_ios_xr"
pairing2.EntityData.ParentYangName = "sdr"
pairing2.EntityData.SegmentPath = "pairing2"
pairing2.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-sdr-mgr:sdr-config/sdr/" + pairing2.EntityData.SegmentPath
pairing2.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pairing2.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pairing2.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pairing2.EntityData.Children = types.NewOrderedMap()
pairing2.EntityData.Children.Append("sdrlead", types.YChild{"Sdrlead", &pairing2.Sdrlead})
pairing2.EntityData.Children.Append("pairing", types.YChild{"Pairing", nil})
for i := range pairing2.Pairing {
pairing2.EntityData.Children.Append(types.GetSegmentPath(pairing2.Pairing[i]), types.YChild{"Pairing", pairing2.Pairing[i]})
}
pairing2.EntityData.Leafs = types.NewOrderedMap()
pairing2.EntityData.Leafs.Append("pairing-mode", types.YLeaf{"PairingMode", pairing2.PairingMode})
pairing2.EntityData.YListKeys = []string {}
return &(pairing2.EntityData)
}
// SdrConfig_Sdr_Pairing2_Sdrlead
type SdrConfig_Sdr_Pairing2_Sdrlead struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The type is string.
Rp1 interface{}
// The type is string.
Rp2 interface{}
}
func (sdrlead *SdrConfig_Sdr_Pairing2_Sdrlead) GetEntityData() *types.CommonEntityData {
sdrlead.EntityData.YFilter = sdrlead.YFilter
sdrlead.EntityData.YangName = "sdrlead"
sdrlead.EntityData.BundleName = "cisco_ios_xr"
sdrlead.EntityData.ParentYangName = "pairing2"