forked from CiscoDevNet/ydk-go
/
ip_daps_cfg.go
997 lines (817 loc) · 47.7 KB
/
ip_daps_cfg.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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ip-daps package configuration.
//
// This module contains definitions
// for the following management objects:
// address-pool-service: Address Pool configuration data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ip_daps_cfg
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 ip_daps_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ip-daps-cfg address-pool-service}", reflect.TypeOf(AddressPoolService{}))
ydk.RegisterEntity("Cisco-IOS-XR-ip-daps-cfg:address-pool-service", reflect.TypeOf(AddressPoolService{}))
}
// AddressPoolService
// Address Pool configuration data
type AddressPoolService struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enter VRF specific config mode.
Vrfs AddressPoolService_Vrfs
}
func (addressPoolService *AddressPoolService) GetEntityData() *types.CommonEntityData {
addressPoolService.EntityData.YFilter = addressPoolService.YFilter
addressPoolService.EntityData.YangName = "address-pool-service"
addressPoolService.EntityData.BundleName = "cisco_ios_xr"
addressPoolService.EntityData.ParentYangName = "Cisco-IOS-XR-ip-daps-cfg"
addressPoolService.EntityData.SegmentPath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service"
addressPoolService.EntityData.AbsolutePath = addressPoolService.EntityData.SegmentPath
addressPoolService.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
addressPoolService.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
addressPoolService.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
addressPoolService.EntityData.Children = types.NewOrderedMap()
addressPoolService.EntityData.Children.Append("vrfs", types.YChild{"Vrfs", &addressPoolService.Vrfs})
addressPoolService.EntityData.Leafs = types.NewOrderedMap()
addressPoolService.EntityData.YListKeys = []string {}
return &(addressPoolService.EntityData)
}
// AddressPoolService_Vrfs
// Enter VRF specific config mode
type AddressPoolService_Vrfs struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify VRF Name. The type is slice of AddressPoolService_Vrfs_Vrf.
Vrf []*AddressPoolService_Vrfs_Vrf
}
func (vrfs *AddressPoolService_Vrfs) GetEntityData() *types.CommonEntityData {
vrfs.EntityData.YFilter = vrfs.YFilter
vrfs.EntityData.YangName = "vrfs"
vrfs.EntityData.BundleName = "cisco_ios_xr"
vrfs.EntityData.ParentYangName = "address-pool-service"
vrfs.EntityData.SegmentPath = "vrfs"
vrfs.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/" + vrfs.EntityData.SegmentPath
vrfs.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vrfs.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vrfs.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vrfs.EntityData.Children = types.NewOrderedMap()
vrfs.EntityData.Children.Append("vrf", types.YChild{"Vrf", nil})
for i := range vrfs.Vrf {
vrfs.EntityData.Children.Append(types.GetSegmentPath(vrfs.Vrf[i]), types.YChild{"Vrf", vrfs.Vrf[i]})
}
vrfs.EntityData.Leafs = types.NewOrderedMap()
vrfs.EntityData.YListKeys = []string {}
return &(vrfs.EntityData)
}
// AddressPoolService_Vrfs_Vrf
// Specify VRF Name
type AddressPoolService_Vrfs_Vrf struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. none. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
VrfName interface{}
// Enter IPv6 specific mode.
Ipv6 AddressPoolService_Vrfs_Vrf_Ipv6
// Enter IPv4 specific configuration.
Ipv4 AddressPoolService_Vrfs_Vrf_Ipv4
}
func (vrf *AddressPoolService_Vrfs_Vrf) GetEntityData() *types.CommonEntityData {
vrf.EntityData.YFilter = vrf.YFilter
vrf.EntityData.YangName = "vrf"
vrf.EntityData.BundleName = "cisco_ios_xr"
vrf.EntityData.ParentYangName = "vrfs"
vrf.EntityData.SegmentPath = "vrf" + types.AddKeyToken(vrf.VrfName, "vrf-name")
vrf.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/" + vrf.EntityData.SegmentPath
vrf.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vrf.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vrf.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vrf.EntityData.Children = types.NewOrderedMap()
vrf.EntityData.Children.Append("ipv6", types.YChild{"Ipv6", &vrf.Ipv6})
vrf.EntityData.Children.Append("ipv4", types.YChild{"Ipv4", &vrf.Ipv4})
vrf.EntityData.Leafs = types.NewOrderedMap()
vrf.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", vrf.VrfName})
vrf.EntityData.YListKeys = []string {"VrfName"}
return &(vrf.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6
// Enter IPv6 specific mode
type AddressPoolService_Vrfs_Vrf_Ipv6 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv6 Pool Name.
Pools AddressPoolService_Vrfs_Vrf_Ipv6_Pools
}
func (ipv6 *AddressPoolService_Vrfs_Vrf_Ipv6) GetEntityData() *types.CommonEntityData {
ipv6.EntityData.YFilter = ipv6.YFilter
ipv6.EntityData.YangName = "ipv6"
ipv6.EntityData.BundleName = "cisco_ios_xr"
ipv6.EntityData.ParentYangName = "vrf"
ipv6.EntityData.SegmentPath = "ipv6"
ipv6.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/" + ipv6.EntityData.SegmentPath
ipv6.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv6.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv6.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv6.EntityData.Children = types.NewOrderedMap()
ipv6.EntityData.Children.Append("pools", types.YChild{"Pools", &ipv6.Pools})
ipv6.EntityData.Leafs = types.NewOrderedMap()
ipv6.EntityData.YListKeys = []string {}
return &(ipv6.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools
// IPv6 Pool Name
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enter the IPv6 Pool name. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool.
Pool []*AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool
}
func (pools *AddressPoolService_Vrfs_Vrf_Ipv6_Pools) GetEntityData() *types.CommonEntityData {
pools.EntityData.YFilter = pools.YFilter
pools.EntityData.YangName = "pools"
pools.EntityData.BundleName = "cisco_ios_xr"
pools.EntityData.ParentYangName = "ipv6"
pools.EntityData.SegmentPath = "pools"
pools.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/" + pools.EntityData.SegmentPath
pools.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pools.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pools.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pools.EntityData.Children = types.NewOrderedMap()
pools.EntityData.Children.Append("pool", types.YChild{"Pool", nil})
for i := range pools.Pool {
pools.EntityData.Children.Append(types.GetSegmentPath(pools.Pool[i]), types.YChild{"Pool", pools.Pool[i]})
}
pools.EntityData.Leafs = types.NewOrderedMap()
pools.EntityData.YListKeys = []string {}
return &(pools.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool
// Enter the IPv6 Pool name
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Enter the IPv6 Pool name. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
Ipv6PoolName interface{}
// Enter the prefix-length for the Pool. The type is interface{} with range:
// 1..128.
PrefixLength interface{}
// Specify address range for allocation.
AddressRanges AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges
// Exclude IPv6 addresses / prefixes.
Excludes AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes
// Specify utilization mark.
UtilizationMark AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_UtilizationMark
// Specify prefix range for allocation.
PrefixRanges AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges
// Specify network for allocation.
Networks AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks
}
func (pool *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool) GetEntityData() *types.CommonEntityData {
pool.EntityData.YFilter = pool.YFilter
pool.EntityData.YangName = "pool"
pool.EntityData.BundleName = "cisco_ios_xr"
pool.EntityData.ParentYangName = "pools"
pool.EntityData.SegmentPath = "pool" + types.AddKeyToken(pool.Ipv6PoolName, "ipv6-pool-name")
pool.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/" + pool.EntityData.SegmentPath
pool.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pool.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pool.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pool.EntityData.Children = types.NewOrderedMap()
pool.EntityData.Children.Append("address-ranges", types.YChild{"AddressRanges", &pool.AddressRanges})
pool.EntityData.Children.Append("excludes", types.YChild{"Excludes", &pool.Excludes})
pool.EntityData.Children.Append("utilization-mark", types.YChild{"UtilizationMark", &pool.UtilizationMark})
pool.EntityData.Children.Append("prefix-ranges", types.YChild{"PrefixRanges", &pool.PrefixRanges})
pool.EntityData.Children.Append("networks", types.YChild{"Networks", &pool.Networks})
pool.EntityData.Leafs = types.NewOrderedMap()
pool.EntityData.Leafs.Append("ipv6-pool-name", types.YLeaf{"Ipv6PoolName", pool.Ipv6PoolName})
pool.EntityData.Leafs.Append("prefix-length", types.YLeaf{"PrefixLength", pool.PrefixLength})
pool.EntityData.YListKeys = []string {"Ipv6PoolName"}
return &(pool.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges
// Specify address range for allocation
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// None. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges_AddressRange.
AddressRange []*AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges_AddressRange
}
func (addressRanges *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges) GetEntityData() *types.CommonEntityData {
addressRanges.EntityData.YFilter = addressRanges.YFilter
addressRanges.EntityData.YangName = "address-ranges"
addressRanges.EntityData.BundleName = "cisco_ios_xr"
addressRanges.EntityData.ParentYangName = "pool"
addressRanges.EntityData.SegmentPath = "address-ranges"
addressRanges.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/" + addressRanges.EntityData.SegmentPath
addressRanges.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
addressRanges.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
addressRanges.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
addressRanges.EntityData.Children = types.NewOrderedMap()
addressRanges.EntityData.Children.Append("address-range", types.YChild{"AddressRange", nil})
for i := range addressRanges.AddressRange {
addressRanges.EntityData.Children.Append(types.GetSegmentPath(addressRanges.AddressRange[i]), types.YChild{"AddressRange", addressRanges.AddressRange[i]})
}
addressRanges.EntityData.Leafs = types.NewOrderedMap()
addressRanges.EntityData.YListKeys = []string {}
return &(addressRanges.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges_AddressRange
// None
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges_AddressRange struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Start address of the range. 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}]+)?.
StartAddress interface{}
// Blocked flag. The type is interface{} with range: 0..4294967295.
Blocked interface{}
// End Address of the range. 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}]+)?
// This attribute is mandatory., 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}]+)?
// This attribute is mandatory..
EndAddress interface{}
}
func (addressRange *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_AddressRanges_AddressRange) GetEntityData() *types.CommonEntityData {
addressRange.EntityData.YFilter = addressRange.YFilter
addressRange.EntityData.YangName = "address-range"
addressRange.EntityData.BundleName = "cisco_ios_xr"
addressRange.EntityData.ParentYangName = "address-ranges"
addressRange.EntityData.SegmentPath = "address-range" + types.AddKeyToken(addressRange.StartAddress, "start-address")
addressRange.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/address-ranges/" + addressRange.EntityData.SegmentPath
addressRange.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
addressRange.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
addressRange.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
addressRange.EntityData.Children = types.NewOrderedMap()
addressRange.EntityData.Leafs = types.NewOrderedMap()
addressRange.EntityData.Leafs.Append("start-address", types.YLeaf{"StartAddress", addressRange.StartAddress})
addressRange.EntityData.Leafs.Append("blocked", types.YLeaf{"Blocked", addressRange.Blocked})
addressRange.EntityData.Leafs.Append("end-address", types.YLeaf{"EndAddress", addressRange.EndAddress})
addressRange.EntityData.YListKeys = []string {"StartAddress"}
return &(addressRange.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes
// Exclude IPv6 addresses / prefixes
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// None. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes_Exclude.
Exclude []*AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes_Exclude
}
func (excludes *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes) GetEntityData() *types.CommonEntityData {
excludes.EntityData.YFilter = excludes.YFilter
excludes.EntityData.YangName = "excludes"
excludes.EntityData.BundleName = "cisco_ios_xr"
excludes.EntityData.ParentYangName = "pool"
excludes.EntityData.SegmentPath = "excludes"
excludes.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/" + excludes.EntityData.SegmentPath
excludes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
excludes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
excludes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
excludes.EntityData.Children = types.NewOrderedMap()
excludes.EntityData.Children.Append("exclude", types.YChild{"Exclude", nil})
for i := range excludes.Exclude {
excludes.EntityData.Children.Append(types.GetSegmentPath(excludes.Exclude[i]), types.YChild{"Exclude", excludes.Exclude[i]})
}
excludes.EntityData.Leafs = types.NewOrderedMap()
excludes.EntityData.YListKeys = []string {}
return &(excludes.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes_Exclude
// None
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes_Exclude struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. First Address in IPv6 exclude range. 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}]+)?.
StartAddress interface{}
// Last address in exclude Range. 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}]+)?
// This attribute is mandatory., 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}]+)?
// This attribute is mandatory..
EndAddress interface{}
}
func (exclude *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Excludes_Exclude) GetEntityData() *types.CommonEntityData {
exclude.EntityData.YFilter = exclude.YFilter
exclude.EntityData.YangName = "exclude"
exclude.EntityData.BundleName = "cisco_ios_xr"
exclude.EntityData.ParentYangName = "excludes"
exclude.EntityData.SegmentPath = "exclude" + types.AddKeyToken(exclude.StartAddress, "start-address")
exclude.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/excludes/" + exclude.EntityData.SegmentPath
exclude.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exclude.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exclude.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exclude.EntityData.Children = types.NewOrderedMap()
exclude.EntityData.Leafs = types.NewOrderedMap()
exclude.EntityData.Leafs.Append("start-address", types.YLeaf{"StartAddress", exclude.StartAddress})
exclude.EntityData.Leafs.Append("end-address", types.YLeaf{"EndAddress", exclude.EndAddress})
exclude.EntityData.YListKeys = []string {"StartAddress"}
return &(exclude.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_UtilizationMark
// Specify utilization mark
// This type is a presence type.
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_UtilizationMark struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Specify numerical value as percentage. The type is interface{} with range:
// 0..100. This attribute is mandatory. Units are percentage.
HighMark interface{}
// Specify numerical value as percentage. The type is interface{} with range:
// 0..100. This attribute is mandatory. Units are percentage.
LowMark interface{}
}
func (utilizationMark *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_UtilizationMark) GetEntityData() *types.CommonEntityData {
utilizationMark.EntityData.YFilter = utilizationMark.YFilter
utilizationMark.EntityData.YangName = "utilization-mark"
utilizationMark.EntityData.BundleName = "cisco_ios_xr"
utilizationMark.EntityData.ParentYangName = "pool"
utilizationMark.EntityData.SegmentPath = "utilization-mark"
utilizationMark.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/" + utilizationMark.EntityData.SegmentPath
utilizationMark.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
utilizationMark.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
utilizationMark.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
utilizationMark.EntityData.Children = types.NewOrderedMap()
utilizationMark.EntityData.Leafs = types.NewOrderedMap()
utilizationMark.EntityData.Leafs.Append("high-mark", types.YLeaf{"HighMark", utilizationMark.HighMark})
utilizationMark.EntityData.Leafs.Append("low-mark", types.YLeaf{"LowMark", utilizationMark.LowMark})
utilizationMark.EntityData.YListKeys = []string {}
return &(utilizationMark.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges
// Specify prefix range for allocation
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// None. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges_PrefixRange.
PrefixRange []*AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges_PrefixRange
}
func (prefixRanges *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges) GetEntityData() *types.CommonEntityData {
prefixRanges.EntityData.YFilter = prefixRanges.YFilter
prefixRanges.EntityData.YangName = "prefix-ranges"
prefixRanges.EntityData.BundleName = "cisco_ios_xr"
prefixRanges.EntityData.ParentYangName = "pool"
prefixRanges.EntityData.SegmentPath = "prefix-ranges"
prefixRanges.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/" + prefixRanges.EntityData.SegmentPath
prefixRanges.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
prefixRanges.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
prefixRanges.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
prefixRanges.EntityData.Children = types.NewOrderedMap()
prefixRanges.EntityData.Children.Append("prefix-range", types.YChild{"PrefixRange", nil})
for i := range prefixRanges.PrefixRange {
prefixRanges.EntityData.Children.Append(types.GetSegmentPath(prefixRanges.PrefixRange[i]), types.YChild{"PrefixRange", prefixRanges.PrefixRange[i]})
}
prefixRanges.EntityData.Leafs = types.NewOrderedMap()
prefixRanges.EntityData.YListKeys = []string {}
return &(prefixRanges.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges_PrefixRange
// None
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges_PrefixRange struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. First prefix of range. 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}]+)?.
StartPrefix interface{}
// Blocked flag. The type is interface{} with range: 0..4294967295.
Blocked interface{}
// Last prefix of range. 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}]+)?
// This attribute is mandatory., 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}]+)?
// This attribute is mandatory..
EndPrefix interface{}
}
func (prefixRange *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_PrefixRanges_PrefixRange) GetEntityData() *types.CommonEntityData {
prefixRange.EntityData.YFilter = prefixRange.YFilter
prefixRange.EntityData.YangName = "prefix-range"
prefixRange.EntityData.BundleName = "cisco_ios_xr"
prefixRange.EntityData.ParentYangName = "prefix-ranges"
prefixRange.EntityData.SegmentPath = "prefix-range" + types.AddKeyToken(prefixRange.StartPrefix, "start-prefix")
prefixRange.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/prefix-ranges/" + prefixRange.EntityData.SegmentPath
prefixRange.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
prefixRange.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
prefixRange.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
prefixRange.EntityData.Children = types.NewOrderedMap()
prefixRange.EntityData.Leafs = types.NewOrderedMap()
prefixRange.EntityData.Leafs.Append("start-prefix", types.YLeaf{"StartPrefix", prefixRange.StartPrefix})
prefixRange.EntityData.Leafs.Append("blocked", types.YLeaf{"Blocked", prefixRange.Blocked})
prefixRange.EntityData.Leafs.Append("end-prefix", types.YLeaf{"EndPrefix", prefixRange.EndPrefix})
prefixRange.EntityData.YListKeys = []string {"StartPrefix"}
return &(prefixRange.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks
// Specify network for allocation
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// None. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks_Network.
Network []*AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks_Network
}
func (networks *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks) GetEntityData() *types.CommonEntityData {
networks.EntityData.YFilter = networks.YFilter
networks.EntityData.YangName = "networks"
networks.EntityData.BundleName = "cisco_ios_xr"
networks.EntityData.ParentYangName = "pool"
networks.EntityData.SegmentPath = "networks"
networks.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/" + networks.EntityData.SegmentPath
networks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
networks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
networks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
networks.EntityData.Children = types.NewOrderedMap()
networks.EntityData.Children.Append("network", types.YChild{"Network", nil})
for i := range networks.Network {
networks.EntityData.Children.Append(types.GetSegmentPath(networks.Network[i]), types.YChild{"Network", networks.Network[i]})
}
networks.EntityData.Leafs = types.NewOrderedMap()
networks.EntityData.YListKeys = []string {}
return &(networks.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks_Network
// None
type AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks_Network struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. None. 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}]+)?.
Prefix interface{}
// Blocked flag. The type is interface{} with range: 0..4294967295.
Blocked interface{}
// Prefix length for the IPv6 Prefix. The type is interface{} with range:
// 1..128. This attribute is mandatory.
PrefixLength interface{}
}
func (network *AddressPoolService_Vrfs_Vrf_Ipv6_Pools_Pool_Networks_Network) GetEntityData() *types.CommonEntityData {
network.EntityData.YFilter = network.YFilter
network.EntityData.YangName = "network"
network.EntityData.BundleName = "cisco_ios_xr"
network.EntityData.ParentYangName = "networks"
network.EntityData.SegmentPath = "network" + types.AddKeyToken(network.Prefix, "prefix")
network.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv6/pools/pool/networks/" + network.EntityData.SegmentPath
network.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
network.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
network.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
network.EntityData.Children = types.NewOrderedMap()
network.EntityData.Leafs = types.NewOrderedMap()
network.EntityData.Leafs.Append("prefix", types.YLeaf{"Prefix", network.Prefix})
network.EntityData.Leafs.Append("blocked", types.YLeaf{"Blocked", network.Blocked})
network.EntityData.Leafs.Append("prefix-length", types.YLeaf{"PrefixLength", network.PrefixLength})
network.EntityData.YListKeys = []string {"Prefix"}
return &(network.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4
// Enter IPv4 specific configuration
type AddressPoolService_Vrfs_Vrf_Ipv4 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv4 Pool Table.
Pools AddressPoolService_Vrfs_Vrf_Ipv4_Pools
}
func (ipv4 *AddressPoolService_Vrfs_Vrf_Ipv4) GetEntityData() *types.CommonEntityData {
ipv4.EntityData.YFilter = ipv4.YFilter
ipv4.EntityData.YangName = "ipv4"
ipv4.EntityData.BundleName = "cisco_ios_xr"
ipv4.EntityData.ParentYangName = "vrf"
ipv4.EntityData.SegmentPath = "ipv4"
ipv4.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/" + ipv4.EntityData.SegmentPath
ipv4.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv4.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv4.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv4.EntityData.Children = types.NewOrderedMap()
ipv4.EntityData.Children.Append("pools", types.YChild{"Pools", &ipv4.Pools})
ipv4.EntityData.Leafs = types.NewOrderedMap()
ipv4.EntityData.YListKeys = []string {}
return &(ipv4.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools
// IPv4 Pool Table
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv4 Pool name. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool.
Pool []*AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool
}
func (pools *AddressPoolService_Vrfs_Vrf_Ipv4_Pools) GetEntityData() *types.CommonEntityData {
pools.EntityData.YFilter = pools.YFilter
pools.EntityData.YangName = "pools"
pools.EntityData.BundleName = "cisco_ios_xr"
pools.EntityData.ParentYangName = "ipv4"
pools.EntityData.SegmentPath = "pools"
pools.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/" + pools.EntityData.SegmentPath
pools.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pools.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pools.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pools.EntityData.Children = types.NewOrderedMap()
pools.EntityData.Children.Append("pool", types.YChild{"Pool", nil})
for i := range pools.Pool {
pools.EntityData.Children.Append(types.GetSegmentPath(pools.Pool[i]), types.YChild{"Pool", pools.Pool[i]})
}
pools.EntityData.Leafs = types.NewOrderedMap()
pools.EntityData.YListKeys = []string {}
return &(pools.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool
// IPv4 Pool name
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Enter the IPv4 Pool name. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
PoolName interface{}
// address range for allocation.
AddressRanges AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges
// Exclude addresses.
Excludes AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes
// Specify utilization mark.
UtilizationMark AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_UtilizationMark
// Specify network for allocation.
Networks AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks
}
func (pool *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool) GetEntityData() *types.CommonEntityData {
pool.EntityData.YFilter = pool.YFilter
pool.EntityData.YangName = "pool"
pool.EntityData.BundleName = "cisco_ios_xr"
pool.EntityData.ParentYangName = "pools"
pool.EntityData.SegmentPath = "pool" + types.AddKeyToken(pool.PoolName, "pool-name")
pool.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/" + pool.EntityData.SegmentPath
pool.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pool.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pool.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pool.EntityData.Children = types.NewOrderedMap()
pool.EntityData.Children.Append("address-ranges", types.YChild{"AddressRanges", &pool.AddressRanges})
pool.EntityData.Children.Append("excludes", types.YChild{"Excludes", &pool.Excludes})
pool.EntityData.Children.Append("utilization-mark", types.YChild{"UtilizationMark", &pool.UtilizationMark})
pool.EntityData.Children.Append("networks", types.YChild{"Networks", &pool.Networks})
pool.EntityData.Leafs = types.NewOrderedMap()
pool.EntityData.Leafs.Append("pool-name", types.YLeaf{"PoolName", pool.PoolName})
pool.EntityData.YListKeys = []string {"PoolName"}
return &(pool.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges
// address range for allocation
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify first address in range. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges_AddressRange.
AddressRange []*AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges_AddressRange
}
func (addressRanges *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges) GetEntityData() *types.CommonEntityData {
addressRanges.EntityData.YFilter = addressRanges.YFilter
addressRanges.EntityData.YangName = "address-ranges"
addressRanges.EntityData.BundleName = "cisco_ios_xr"
addressRanges.EntityData.ParentYangName = "pool"
addressRanges.EntityData.SegmentPath = "address-ranges"
addressRanges.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/" + addressRanges.EntityData.SegmentPath
addressRanges.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
addressRanges.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
addressRanges.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
addressRanges.EntityData.Children = types.NewOrderedMap()
addressRanges.EntityData.Children.Append("address-range", types.YChild{"AddressRange", nil})
for i := range addressRanges.AddressRange {
addressRanges.EntityData.Children.Append(types.GetSegmentPath(addressRanges.AddressRange[i]), types.YChild{"AddressRange", addressRanges.AddressRange[i]})
}
addressRanges.EntityData.Leafs = types.NewOrderedMap()
addressRanges.EntityData.YListKeys = []string {}
return &(addressRanges.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges_AddressRange
// Specify first address in range
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges_AddressRange struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Specify first address of the range. The type is
// string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
StartAddress interface{}
// Last address of the range. 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}]+)?
// This attribute is mandatory., 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}]+)?
// This attribute is mandatory..
EndAddress interface{}
// Blocked flag. The type is interface{} with range: 0..4294967295.
Blocked interface{}
}
func (addressRange *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_AddressRanges_AddressRange) GetEntityData() *types.CommonEntityData {
addressRange.EntityData.YFilter = addressRange.YFilter
addressRange.EntityData.YangName = "address-range"
addressRange.EntityData.BundleName = "cisco_ios_xr"
addressRange.EntityData.ParentYangName = "address-ranges"
addressRange.EntityData.SegmentPath = "address-range" + types.AddKeyToken(addressRange.StartAddress, "start-address")
addressRange.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/address-ranges/" + addressRange.EntityData.SegmentPath
addressRange.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
addressRange.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
addressRange.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
addressRange.EntityData.Children = types.NewOrderedMap()
addressRange.EntityData.Leafs = types.NewOrderedMap()
addressRange.EntityData.Leafs.Append("start-address", types.YLeaf{"StartAddress", addressRange.StartAddress})
addressRange.EntityData.Leafs.Append("end-address", types.YLeaf{"EndAddress", addressRange.EndAddress})
addressRange.EntityData.Leafs.Append("blocked", types.YLeaf{"Blocked", addressRange.Blocked})
addressRange.EntityData.YListKeys = []string {"StartAddress"}
return &(addressRange.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes
// Exclude addresses
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// First address in range. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes_Exclude.
Exclude []*AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes_Exclude
}
func (excludes *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes) GetEntityData() *types.CommonEntityData {
excludes.EntityData.YFilter = excludes.YFilter
excludes.EntityData.YangName = "excludes"
excludes.EntityData.BundleName = "cisco_ios_xr"
excludes.EntityData.ParentYangName = "pool"
excludes.EntityData.SegmentPath = "excludes"
excludes.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/" + excludes.EntityData.SegmentPath
excludes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
excludes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
excludes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
excludes.EntityData.Children = types.NewOrderedMap()
excludes.EntityData.Children.Append("exclude", types.YChild{"Exclude", nil})
for i := range excludes.Exclude {
excludes.EntityData.Children.Append(types.GetSegmentPath(excludes.Exclude[i]), types.YChild{"Exclude", excludes.Exclude[i]})
}
excludes.EntityData.Leafs = types.NewOrderedMap()
excludes.EntityData.YListKeys = []string {}
return &(excludes.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes_Exclude
// First address in range
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes_Exclude struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. First address in exclude range. The type is string
// with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
StartAddress interface{}
// Last address in excluded range. 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}]+)?
// This attribute is mandatory., 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}]+)?
// This attribute is mandatory..
EndAddress interface{}
}
func (exclude *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Excludes_Exclude) GetEntityData() *types.CommonEntityData {
exclude.EntityData.YFilter = exclude.YFilter
exclude.EntityData.YangName = "exclude"
exclude.EntityData.BundleName = "cisco_ios_xr"
exclude.EntityData.ParentYangName = "excludes"
exclude.EntityData.SegmentPath = "exclude" + types.AddKeyToken(exclude.StartAddress, "start-address")
exclude.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/excludes/" + exclude.EntityData.SegmentPath
exclude.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exclude.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exclude.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exclude.EntityData.Children = types.NewOrderedMap()
exclude.EntityData.Leafs = types.NewOrderedMap()
exclude.EntityData.Leafs.Append("start-address", types.YLeaf{"StartAddress", exclude.StartAddress})
exclude.EntityData.Leafs.Append("end-address", types.YLeaf{"EndAddress", exclude.EndAddress})
exclude.EntityData.YListKeys = []string {"StartAddress"}
return &(exclude.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_UtilizationMark
// Specify utilization mark
// This type is a presence type.
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_UtilizationMark struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Specify numerical value as percentage. The type is interface{} with range:
// 0..100. This attribute is mandatory. Units are percentage.
High interface{}
// Specify numerical value as percentage. The type is interface{} with range:
// 0..100. This attribute is mandatory. Units are percentage.
Low interface{}
}
func (utilizationMark *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_UtilizationMark) GetEntityData() *types.CommonEntityData {
utilizationMark.EntityData.YFilter = utilizationMark.YFilter
utilizationMark.EntityData.YangName = "utilization-mark"
utilizationMark.EntityData.BundleName = "cisco_ios_xr"
utilizationMark.EntityData.ParentYangName = "pool"
utilizationMark.EntityData.SegmentPath = "utilization-mark"
utilizationMark.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/" + utilizationMark.EntityData.SegmentPath
utilizationMark.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
utilizationMark.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
utilizationMark.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
utilizationMark.EntityData.Children = types.NewOrderedMap()
utilizationMark.EntityData.Leafs = types.NewOrderedMap()
utilizationMark.EntityData.Leafs.Append("high", types.YLeaf{"High", utilizationMark.High})
utilizationMark.EntityData.Leafs.Append("low", types.YLeaf{"Low", utilizationMark.Low})
utilizationMark.EntityData.YListKeys = []string {}
return &(utilizationMark.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks
// Specify network for allocation
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Network Prefix. The type is slice of
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks_Network.
Network []*AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks_Network
}
func (networks *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks) GetEntityData() *types.CommonEntityData {
networks.EntityData.YFilter = networks.YFilter
networks.EntityData.YangName = "networks"
networks.EntityData.BundleName = "cisco_ios_xr"
networks.EntityData.ParentYangName = "pool"
networks.EntityData.SegmentPath = "networks"
networks.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/" + networks.EntityData.SegmentPath
networks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
networks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
networks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
networks.EntityData.Children = types.NewOrderedMap()
networks.EntityData.Children.Append("network", types.YChild{"Network", nil})
for i := range networks.Network {
networks.EntityData.Children.Append(types.GetSegmentPath(networks.Network[i]), types.YChild{"Network", networks.Network[i]})
}
networks.EntityData.Leafs = types.NewOrderedMap()
networks.EntityData.YListKeys = []string {}
return &(networks.EntityData)
}
// AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks_Network
// Network Prefix
type AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks_Network struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. None. 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}]+)?.
Ipv4Prefix interface{}
// Blocked flag. The type is interface{} with range: 0..4294967295.
Blocked interface{}
// Subnet Length for IPv4 subnet. The type is interface{} with range:
// 0..4294967295. This attribute is mandatory.
PrefixLength interface{}
// Default Gateway for IPv4 subnet. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
DefaultRouter interface{}
}
func (network *AddressPoolService_Vrfs_Vrf_Ipv4_Pools_Pool_Networks_Network) GetEntityData() *types.CommonEntityData {
network.EntityData.YFilter = network.YFilter
network.EntityData.YangName = "network"
network.EntityData.BundleName = "cisco_ios_xr"
network.EntityData.ParentYangName = "networks"
network.EntityData.SegmentPath = "network" + types.AddKeyToken(network.Ipv4Prefix, "ipv4-prefix")
network.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-daps-cfg:address-pool-service/vrfs/vrf/ipv4/pools/pool/networks/" + network.EntityData.SegmentPath
network.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
network.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
network.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
network.EntityData.Children = types.NewOrderedMap()
network.EntityData.Leafs = types.NewOrderedMap()
network.EntityData.Leafs.Append("ipv4-prefix", types.YLeaf{"Ipv4Prefix", network.Ipv4Prefix})
network.EntityData.Leafs.Append("blocked", types.YLeaf{"Blocked", network.Blocked})
network.EntityData.Leafs.Append("prefix-length", types.YLeaf{"PrefixLength", network.PrefixLength})
network.EntityData.Leafs.Append("default-router", types.YLeaf{"DefaultRouter", network.DefaultRouter})
network.EntityData.YListKeys = []string {"Ipv4Prefix"}
return &(network.EntityData)
}