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
/
ipv4_hsrp_cfg.go
2128 lines (1723 loc) · 106 KB
/
ipv4_hsrp_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
997
998
999
1000
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ipv4-hsrp package configuration.
//
// This module contains definitions
// for the following management objects:
// hsrp: HSRP configuration
//
// This YANG module augments the
// Cisco-IOS-XR-snmp-agent-cfg
// module with configuration data.
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ipv4_hsrp_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 ipv4_hsrp_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-hsrp-cfg hsrp}", reflect.TypeOf(Hsrp{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp", reflect.TypeOf(Hsrp{}))
}
// HsrpLinklocal represents Hsrp linklocal
type HsrpLinklocal string
const (
// Manual Linklocal address configuration
HsrpLinklocal_manual HsrpLinklocal = "manual"
// Automatic Linklocal address configuration
HsrpLinklocal_auto HsrpLinklocal = "auto"
// Automatic legacy-compatible Linklocal address
// configuration
HsrpLinklocal_legacy HsrpLinklocal = "legacy"
)
// Hsrp
// HSRP configuration
type Hsrp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Interface Table for HSRP configuration.
Interfaces Hsrp_Interfaces
// HSRP logging options.
Logging Hsrp_Logging
}
func (hsrp *Hsrp) GetEntityData() *types.CommonEntityData {
hsrp.EntityData.YFilter = hsrp.YFilter
hsrp.EntityData.YangName = "hsrp"
hsrp.EntityData.BundleName = "cisco_ios_xr"
hsrp.EntityData.ParentYangName = "Cisco-IOS-XR-ipv4-hsrp-cfg"
hsrp.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp"
hsrp.EntityData.AbsolutePath = hsrp.EntityData.SegmentPath
hsrp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hsrp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hsrp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hsrp.EntityData.Children = types.NewOrderedMap()
hsrp.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &hsrp.Interfaces})
hsrp.EntityData.Children.Append("logging", types.YChild{"Logging", &hsrp.Logging})
hsrp.EntityData.Leafs = types.NewOrderedMap()
hsrp.EntityData.YListKeys = []string {}
return &(hsrp.EntityData)
}
// Hsrp_Interfaces
// Interface Table for HSRP configuration
type Hsrp_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Per-interface HSRP configuration. The type is slice of
// Hsrp_Interfaces_Interface.
Interface []*Hsrp_Interfaces_Interface
}
func (interfaces *Hsrp_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "hsrp"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/" + interfaces.EntityData.SegmentPath
interfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaces.EntityData.Children = types.NewOrderedMap()
interfaces.EntityData.Children.Append("interface", types.YChild{"Interface", nil})
for i := range interfaces.Interface {
interfaces.EntityData.Children.Append(types.GetSegmentPath(interfaces.Interface[i]), types.YChild{"Interface", interfaces.Interface[i]})
}
interfaces.EntityData.Leafs = types.NewOrderedMap()
interfaces.EntityData.YListKeys = []string {}
return &(interfaces.EntityData)
}
// Hsrp_Interfaces_Interface
// Per-interface HSRP configuration
type Hsrp_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface name. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// HSRP MGO slave MAC refresh rate. The type is interface{} with range:
// 0..10000. The default value is 60.
MacRefresh interface{}
// Use burned-in address. The type is interface{}.
UseBia interface{}
// Disable HSRP filtered ICMP redirects. The type is interface{}.
RedirectsDisable interface{}
// IPv6 HSRP configuration.
Ipv6 Hsrp_Interfaces_Interface_Ipv6
// BFD configuration.
Bfd Hsrp_Interfaces_Interface_Bfd
// Minimum and Reload Delay.
Delay Hsrp_Interfaces_Interface_Delay
// IPv4 HSRP configuration.
Ipv4 Hsrp_Interfaces_Interface_Ipv4
}
func (self *Hsrp_Interfaces_Interface) GetEntityData() *types.CommonEntityData {
self.EntityData.YFilter = self.YFilter
self.EntityData.YangName = "interface"
self.EntityData.BundleName = "cisco_ios_xr"
self.EntityData.ParentYangName = "interfaces"
self.EntityData.SegmentPath = "interface" + types.AddKeyToken(self.InterfaceName, "interface-name")
self.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Children.Append("ipv6", types.YChild{"Ipv6", &self.Ipv6})
self.EntityData.Children.Append("bfd", types.YChild{"Bfd", &self.Bfd})
self.EntityData.Children.Append("delay", types.YChild{"Delay", &self.Delay})
self.EntityData.Children.Append("ipv4", types.YChild{"Ipv4", &self.Ipv4})
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", self.InterfaceName})
self.EntityData.Leafs.Append("mac-refresh", types.YLeaf{"MacRefresh", self.MacRefresh})
self.EntityData.Leafs.Append("use-bia", types.YLeaf{"UseBia", self.UseBia})
self.EntityData.Leafs.Append("redirects-disable", types.YLeaf{"RedirectsDisable", self.RedirectsDisable})
self.EntityData.YListKeys = []string {"InterfaceName"}
return &(self.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6
// IPv6 HSRP configuration
type Hsrp_Interfaces_Interface_Ipv6 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Version 2 HSRP configuration.
Version2 Hsrp_Interfaces_Interface_Ipv6_Version2
// The HSRP slave group configuration table.
SlaveGroups Hsrp_Interfaces_Interface_Ipv6_SlaveGroups
}
func (ipv6 *Hsrp_Interfaces_Interface_Ipv6) GetEntityData() *types.CommonEntityData {
ipv6.EntityData.YFilter = ipv6.YFilter
ipv6.EntityData.YangName = "ipv6"
ipv6.EntityData.BundleName = "cisco_ios_xr"
ipv6.EntityData.ParentYangName = "interface"
ipv6.EntityData.SegmentPath = "ipv6"
ipv6.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/" + 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("version2", types.YChild{"Version2", &ipv6.Version2})
ipv6.EntityData.Children.Append("slave-groups", types.YChild{"SlaveGroups", &ipv6.SlaveGroups})
ipv6.EntityData.Leafs = types.NewOrderedMap()
ipv6.EntityData.YListKeys = []string {}
return &(ipv6.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2
// Version 2 HSRP configuration
type Hsrp_Interfaces_Interface_Ipv6_Version2 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The HSRP group configuration table.
Groups Hsrp_Interfaces_Interface_Ipv6_Version2_Groups
}
func (version2 *Hsrp_Interfaces_Interface_Ipv6_Version2) GetEntityData() *types.CommonEntityData {
version2.EntityData.YFilter = version2.YFilter
version2.EntityData.YangName = "version2"
version2.EntityData.BundleName = "cisco_ios_xr"
version2.EntityData.ParentYangName = "ipv6"
version2.EntityData.SegmentPath = "version2"
version2.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/" + version2.EntityData.SegmentPath
version2.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
version2.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
version2.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
version2.EntityData.Children = types.NewOrderedMap()
version2.EntityData.Children.Append("groups", types.YChild{"Groups", &version2.Groups})
version2.EntityData.Leafs = types.NewOrderedMap()
version2.EntityData.YListKeys = []string {}
return &(version2.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups
// The HSRP group configuration table
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The HSRP group being configured. The type is slice of
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group.
Group []*Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group
}
func (groups *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups) GetEntityData() *types.CommonEntityData {
groups.EntityData.YFilter = groups.YFilter
groups.EntityData.YangName = "groups"
groups.EntityData.BundleName = "cisco_ios_xr"
groups.EntityData.ParentYangName = "version2"
groups.EntityData.SegmentPath = "groups"
groups.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/" + groups.EntityData.SegmentPath
groups.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
groups.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
groups.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
groups.EntityData.Children = types.NewOrderedMap()
groups.EntityData.Children.Append("group", types.YChild{"Group", nil})
for i := range groups.Group {
groups.EntityData.Children.Append(types.GetSegmentPath(groups.Group[i]), types.YChild{"Group", groups.Group[i]})
}
groups.EntityData.Leafs = types.NewOrderedMap()
groups.EntityData.YListKeys = []string {}
return &(groups.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group
// The HSRP group being configured
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. HSRP group number. The type is interface{} with
// range: 0..4095.
GroupNumber interface{}
// Priority value. The type is interface{} with range: 0..255. The default
// value is 100.
Priority interface{}
// Force active if higher priority. The type is interface{} with range:
// 0..4294967295. The default value is 0.
Preempt interface{}
// HSRP Session name (for MGO). The type is string with length: 1..16.
SessionName interface{}
// HSRP MAC address. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
VirtualMacAddress interface{}
// Enable use of Bidirectional Forwarding Detection.
Bfd Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Bfd
// The HSRP tracked interface configuration table.
TrackedInterfaces Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces
// The HSRP tracked interface configuration table.
TrackedObjects Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects
// Hello and hold timers.
Timers Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Timers
// The HSRP IPv6 virtual linklocal address.
LinkLocalIpv6Address Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_LinkLocalIpv6Address
// The table of HSRP virtual global IPv6 addresses.
GlobalIpv6Addresses Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses
}
func (group *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group) GetEntityData() *types.CommonEntityData {
group.EntityData.YFilter = group.YFilter
group.EntityData.YangName = "group"
group.EntityData.BundleName = "cisco_ios_xr"
group.EntityData.ParentYangName = "groups"
group.EntityData.SegmentPath = "group" + types.AddKeyToken(group.GroupNumber, "group-number")
group.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/" + group.EntityData.SegmentPath
group.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
group.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
group.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
group.EntityData.Children = types.NewOrderedMap()
group.EntityData.Children.Append("bfd", types.YChild{"Bfd", &group.Bfd})
group.EntityData.Children.Append("tracked-interfaces", types.YChild{"TrackedInterfaces", &group.TrackedInterfaces})
group.EntityData.Children.Append("tracked-objects", types.YChild{"TrackedObjects", &group.TrackedObjects})
group.EntityData.Children.Append("timers", types.YChild{"Timers", &group.Timers})
group.EntityData.Children.Append("link-local-ipv6-address", types.YChild{"LinkLocalIpv6Address", &group.LinkLocalIpv6Address})
group.EntityData.Children.Append("global-ipv6-addresses", types.YChild{"GlobalIpv6Addresses", &group.GlobalIpv6Addresses})
group.EntityData.Leafs = types.NewOrderedMap()
group.EntityData.Leafs.Append("group-number", types.YLeaf{"GroupNumber", group.GroupNumber})
group.EntityData.Leafs.Append("priority", types.YLeaf{"Priority", group.Priority})
group.EntityData.Leafs.Append("preempt", types.YLeaf{"Preempt", group.Preempt})
group.EntityData.Leafs.Append("session-name", types.YLeaf{"SessionName", group.SessionName})
group.EntityData.Leafs.Append("virtual-mac-address", types.YLeaf{"VirtualMacAddress", group.VirtualMacAddress})
group.EntityData.YListKeys = []string {"GroupNumber"}
return &(group.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Bfd
// Enable use of Bidirectional Forwarding
// Detection
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Bfd struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enable BFD for this remote IP. The type is string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
Address interface{}
// Interface name to run BFD. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
InterfaceName interface{}
}
func (bfd *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Bfd) GetEntityData() *types.CommonEntityData {
bfd.EntityData.YFilter = bfd.YFilter
bfd.EntityData.YangName = "bfd"
bfd.EntityData.BundleName = "cisco_ios_xr"
bfd.EntityData.ParentYangName = "group"
bfd.EntityData.SegmentPath = "bfd"
bfd.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/" + bfd.EntityData.SegmentPath
bfd.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bfd.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bfd.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bfd.EntityData.Children = types.NewOrderedMap()
bfd.EntityData.Leafs = types.NewOrderedMap()
bfd.EntityData.Leafs.Append("address", types.YLeaf{"Address", bfd.Address})
bfd.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", bfd.InterfaceName})
bfd.EntityData.YListKeys = []string {}
return &(bfd.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces
// The HSRP tracked interface configuration
// table
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Interface being tracked. The type is slice of
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces_TrackedInterface.
TrackedInterface []*Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces_TrackedInterface
}
func (trackedInterfaces *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces) GetEntityData() *types.CommonEntityData {
trackedInterfaces.EntityData.YFilter = trackedInterfaces.YFilter
trackedInterfaces.EntityData.YangName = "tracked-interfaces"
trackedInterfaces.EntityData.BundleName = "cisco_ios_xr"
trackedInterfaces.EntityData.ParentYangName = "group"
trackedInterfaces.EntityData.SegmentPath = "tracked-interfaces"
trackedInterfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/" + trackedInterfaces.EntityData.SegmentPath
trackedInterfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trackedInterfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trackedInterfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trackedInterfaces.EntityData.Children = types.NewOrderedMap()
trackedInterfaces.EntityData.Children.Append("tracked-interface", types.YChild{"TrackedInterface", nil})
for i := range trackedInterfaces.TrackedInterface {
trackedInterfaces.EntityData.Children.Append(types.GetSegmentPath(trackedInterfaces.TrackedInterface[i]), types.YChild{"TrackedInterface", trackedInterfaces.TrackedInterface[i]})
}
trackedInterfaces.EntityData.Leafs = types.NewOrderedMap()
trackedInterfaces.EntityData.YListKeys = []string {}
return &(trackedInterfaces.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces_TrackedInterface
// Interface being tracked
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces_TrackedInterface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface being tracked. The type is string with
// pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// Priority decrement. The type is interface{} with range: 1..255. This
// attribute is mandatory.
PriorityDecrement interface{}
}
func (trackedInterface *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedInterfaces_TrackedInterface) GetEntityData() *types.CommonEntityData {
trackedInterface.EntityData.YFilter = trackedInterface.YFilter
trackedInterface.EntityData.YangName = "tracked-interface"
trackedInterface.EntityData.BundleName = "cisco_ios_xr"
trackedInterface.EntityData.ParentYangName = "tracked-interfaces"
trackedInterface.EntityData.SegmentPath = "tracked-interface" + types.AddKeyToken(trackedInterface.InterfaceName, "interface-name")
trackedInterface.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/tracked-interfaces/" + trackedInterface.EntityData.SegmentPath
trackedInterface.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trackedInterface.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trackedInterface.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trackedInterface.EntityData.Children = types.NewOrderedMap()
trackedInterface.EntityData.Leafs = types.NewOrderedMap()
trackedInterface.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", trackedInterface.InterfaceName})
trackedInterface.EntityData.Leafs.Append("priority-decrement", types.YLeaf{"PriorityDecrement", trackedInterface.PriorityDecrement})
trackedInterface.EntityData.YListKeys = []string {"InterfaceName"}
return &(trackedInterface.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects
// The HSRP tracked interface configuration
// table
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Object being tracked. The type is slice of
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects_TrackedObject.
TrackedObject []*Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects_TrackedObject
}
func (trackedObjects *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects) GetEntityData() *types.CommonEntityData {
trackedObjects.EntityData.YFilter = trackedObjects.YFilter
trackedObjects.EntityData.YangName = "tracked-objects"
trackedObjects.EntityData.BundleName = "cisco_ios_xr"
trackedObjects.EntityData.ParentYangName = "group"
trackedObjects.EntityData.SegmentPath = "tracked-objects"
trackedObjects.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/" + trackedObjects.EntityData.SegmentPath
trackedObjects.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trackedObjects.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trackedObjects.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trackedObjects.EntityData.Children = types.NewOrderedMap()
trackedObjects.EntityData.Children.Append("tracked-object", types.YChild{"TrackedObject", nil})
for i := range trackedObjects.TrackedObject {
trackedObjects.EntityData.Children.Append(types.GetSegmentPath(trackedObjects.TrackedObject[i]), types.YChild{"TrackedObject", trackedObjects.TrackedObject[i]})
}
trackedObjects.EntityData.Leafs = types.NewOrderedMap()
trackedObjects.EntityData.YListKeys = []string {}
return &(trackedObjects.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects_TrackedObject
// Object being tracked
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects_TrackedObject struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface being tracked. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
ObjectName interface{}
// Priority decrement. The type is interface{} with range: 1..255. This
// attribute is mandatory.
PriorityDecrement interface{}
}
func (trackedObject *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_TrackedObjects_TrackedObject) GetEntityData() *types.CommonEntityData {
trackedObject.EntityData.YFilter = trackedObject.YFilter
trackedObject.EntityData.YangName = "tracked-object"
trackedObject.EntityData.BundleName = "cisco_ios_xr"
trackedObject.EntityData.ParentYangName = "tracked-objects"
trackedObject.EntityData.SegmentPath = "tracked-object" + types.AddKeyToken(trackedObject.ObjectName, "object-name")
trackedObject.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/tracked-objects/" + trackedObject.EntityData.SegmentPath
trackedObject.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trackedObject.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trackedObject.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trackedObject.EntityData.Children = types.NewOrderedMap()
trackedObject.EntityData.Leafs = types.NewOrderedMap()
trackedObject.EntityData.Leafs.Append("object-name", types.YLeaf{"ObjectName", trackedObject.ObjectName})
trackedObject.EntityData.Leafs.Append("priority-decrement", types.YLeaf{"PriorityDecrement", trackedObject.PriorityDecrement})
trackedObject.EntityData.YListKeys = []string {"ObjectName"}
return &(trackedObject.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Timers
// Hello and hold timers
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Timers struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TRUE - Hello time configured in milliseconds, FALSE - Hello time configured
// in seconds. The type is bool. The default value is false.
HelloMsecFlag interface{}
// Hello time in msecs. The type is interface{} with range: 100..3000. Units
// are millisecond.
HelloMsec interface{}
// Hello time in seconds. The type is interface{} with range: 1..255. Units
// are second. The default value is 3.
HelloSec interface{}
// TRUE - Hold time configured in milliseconds, FALSE - Hold time configured
// in seconds. The type is bool. The default value is false.
HoldMsecFlag interface{}
// Hold time in msecs. The type is interface{} with range: 100..3000. Units
// are millisecond.
HoldMsec interface{}
// Hold time in seconds. The type is interface{} with range: 1..255. Units are
// second. The default value is 10.
HoldSec interface{}
}
func (timers *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_Timers) GetEntityData() *types.CommonEntityData {
timers.EntityData.YFilter = timers.YFilter
timers.EntityData.YangName = "timers"
timers.EntityData.BundleName = "cisco_ios_xr"
timers.EntityData.ParentYangName = "group"
timers.EntityData.SegmentPath = "timers"
timers.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/" + timers.EntityData.SegmentPath
timers.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
timers.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
timers.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
timers.EntityData.Children = types.NewOrderedMap()
timers.EntityData.Leafs = types.NewOrderedMap()
timers.EntityData.Leafs.Append("hello-msec-flag", types.YLeaf{"HelloMsecFlag", timers.HelloMsecFlag})
timers.EntityData.Leafs.Append("hello-msec", types.YLeaf{"HelloMsec", timers.HelloMsec})
timers.EntityData.Leafs.Append("hello-sec", types.YLeaf{"HelloSec", timers.HelloSec})
timers.EntityData.Leafs.Append("hold-msec-flag", types.YLeaf{"HoldMsecFlag", timers.HoldMsecFlag})
timers.EntityData.Leafs.Append("hold-msec", types.YLeaf{"HoldMsec", timers.HoldMsec})
timers.EntityData.Leafs.Append("hold-sec", types.YLeaf{"HoldSec", timers.HoldSec})
timers.EntityData.YListKeys = []string {}
return &(timers.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_LinkLocalIpv6Address
// The HSRP IPv6 virtual linklocal address
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_LinkLocalIpv6Address struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// HSRP IPv6 virtual linklocal address. The type is string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
Address interface{}
// Linklocal Configuration Type. The type is HsrpLinklocal. The default value
// is manual.
AutoConfigure interface{}
}
func (linkLocalIpv6Address *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_LinkLocalIpv6Address) GetEntityData() *types.CommonEntityData {
linkLocalIpv6Address.EntityData.YFilter = linkLocalIpv6Address.YFilter
linkLocalIpv6Address.EntityData.YangName = "link-local-ipv6-address"
linkLocalIpv6Address.EntityData.BundleName = "cisco_ios_xr"
linkLocalIpv6Address.EntityData.ParentYangName = "group"
linkLocalIpv6Address.EntityData.SegmentPath = "link-local-ipv6-address"
linkLocalIpv6Address.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/" + linkLocalIpv6Address.EntityData.SegmentPath
linkLocalIpv6Address.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
linkLocalIpv6Address.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
linkLocalIpv6Address.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
linkLocalIpv6Address.EntityData.Children = types.NewOrderedMap()
linkLocalIpv6Address.EntityData.Leafs = types.NewOrderedMap()
linkLocalIpv6Address.EntityData.Leafs.Append("address", types.YLeaf{"Address", linkLocalIpv6Address.Address})
linkLocalIpv6Address.EntityData.Leafs.Append("auto-configure", types.YLeaf{"AutoConfigure", linkLocalIpv6Address.AutoConfigure})
linkLocalIpv6Address.EntityData.YListKeys = []string {}
return &(linkLocalIpv6Address.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses
// The table of HSRP virtual global IPv6
// addresses
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A HSRP virtual global IPv6 IP address. The type is slice of
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses_GlobalIpv6Address.
GlobalIpv6Address []*Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses_GlobalIpv6Address
}
func (globalIpv6Addresses *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses) GetEntityData() *types.CommonEntityData {
globalIpv6Addresses.EntityData.YFilter = globalIpv6Addresses.YFilter
globalIpv6Addresses.EntityData.YangName = "global-ipv6-addresses"
globalIpv6Addresses.EntityData.BundleName = "cisco_ios_xr"
globalIpv6Addresses.EntityData.ParentYangName = "group"
globalIpv6Addresses.EntityData.SegmentPath = "global-ipv6-addresses"
globalIpv6Addresses.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/" + globalIpv6Addresses.EntityData.SegmentPath
globalIpv6Addresses.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
globalIpv6Addresses.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
globalIpv6Addresses.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
globalIpv6Addresses.EntityData.Children = types.NewOrderedMap()
globalIpv6Addresses.EntityData.Children.Append("global-ipv6-address", types.YChild{"GlobalIpv6Address", nil})
for i := range globalIpv6Addresses.GlobalIpv6Address {
globalIpv6Addresses.EntityData.Children.Append(types.GetSegmentPath(globalIpv6Addresses.GlobalIpv6Address[i]), types.YChild{"GlobalIpv6Address", globalIpv6Addresses.GlobalIpv6Address[i]})
}
globalIpv6Addresses.EntityData.Leafs = types.NewOrderedMap()
globalIpv6Addresses.EntityData.YListKeys = []string {}
return &(globalIpv6Addresses.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses_GlobalIpv6Address
// A HSRP virtual global IPv6 IP address
type Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses_GlobalIpv6Address struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. HSRP virtual global IPv6 address. The type is
// string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
Address interface{}
}
func (globalIpv6Address *Hsrp_Interfaces_Interface_Ipv6_Version2_Groups_Group_GlobalIpv6Addresses_GlobalIpv6Address) GetEntityData() *types.CommonEntityData {
globalIpv6Address.EntityData.YFilter = globalIpv6Address.YFilter
globalIpv6Address.EntityData.YangName = "global-ipv6-address"
globalIpv6Address.EntityData.BundleName = "cisco_ios_xr"
globalIpv6Address.EntityData.ParentYangName = "global-ipv6-addresses"
globalIpv6Address.EntityData.SegmentPath = "global-ipv6-address" + types.AddKeyToken(globalIpv6Address.Address, "address")
globalIpv6Address.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/version2/groups/group/global-ipv6-addresses/" + globalIpv6Address.EntityData.SegmentPath
globalIpv6Address.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
globalIpv6Address.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
globalIpv6Address.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
globalIpv6Address.EntityData.Children = types.NewOrderedMap()
globalIpv6Address.EntityData.Leafs = types.NewOrderedMap()
globalIpv6Address.EntityData.Leafs.Append("address", types.YLeaf{"Address", globalIpv6Address.Address})
globalIpv6Address.EntityData.YListKeys = []string {"Address"}
return &(globalIpv6Address.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups
// The HSRP slave group configuration table
type Hsrp_Interfaces_Interface_Ipv6_SlaveGroups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The HSRP slave group being configured. The type is slice of
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup.
SlaveGroup []*Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup
}
func (slaveGroups *Hsrp_Interfaces_Interface_Ipv6_SlaveGroups) GetEntityData() *types.CommonEntityData {
slaveGroups.EntityData.YFilter = slaveGroups.YFilter
slaveGroups.EntityData.YangName = "slave-groups"
slaveGroups.EntityData.BundleName = "cisco_ios_xr"
slaveGroups.EntityData.ParentYangName = "ipv6"
slaveGroups.EntityData.SegmentPath = "slave-groups"
slaveGroups.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/" + slaveGroups.EntityData.SegmentPath
slaveGroups.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
slaveGroups.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
slaveGroups.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
slaveGroups.EntityData.Children = types.NewOrderedMap()
slaveGroups.EntityData.Children.Append("slave-group", types.YChild{"SlaveGroup", nil})
for i := range slaveGroups.SlaveGroup {
slaveGroups.EntityData.Children.Append(types.GetSegmentPath(slaveGroups.SlaveGroup[i]), types.YChild{"SlaveGroup", slaveGroups.SlaveGroup[i]})
}
slaveGroups.EntityData.Leafs = types.NewOrderedMap()
slaveGroups.EntityData.YListKeys = []string {}
return &(slaveGroups.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup
// The HSRP slave group being configured
type Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. HSRP group number. The type is interface{} with
// range: 0..4095.
SlaveGroupNumber interface{}
// HSRP Group name for this slave to follow. The type is string.
Follow interface{}
// HSRP MAC address. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
VirtualMacAddress interface{}
// The HSRP IPv6 virtual linklocal address.
LinkLocalIpv6Address Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_LinkLocalIpv6Address
// The table of HSRP virtual global IPv6 addresses.
GlobalIpv6Addresses Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses
}
func (slaveGroup *Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup) GetEntityData() *types.CommonEntityData {
slaveGroup.EntityData.YFilter = slaveGroup.YFilter
slaveGroup.EntityData.YangName = "slave-group"
slaveGroup.EntityData.BundleName = "cisco_ios_xr"
slaveGroup.EntityData.ParentYangName = "slave-groups"
slaveGroup.EntityData.SegmentPath = "slave-group" + types.AddKeyToken(slaveGroup.SlaveGroupNumber, "slave-group-number")
slaveGroup.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/slave-groups/" + slaveGroup.EntityData.SegmentPath
slaveGroup.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
slaveGroup.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
slaveGroup.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
slaveGroup.EntityData.Children = types.NewOrderedMap()
slaveGroup.EntityData.Children.Append("link-local-ipv6-address", types.YChild{"LinkLocalIpv6Address", &slaveGroup.LinkLocalIpv6Address})
slaveGroup.EntityData.Children.Append("global-ipv6-addresses", types.YChild{"GlobalIpv6Addresses", &slaveGroup.GlobalIpv6Addresses})
slaveGroup.EntityData.Leafs = types.NewOrderedMap()
slaveGroup.EntityData.Leafs.Append("slave-group-number", types.YLeaf{"SlaveGroupNumber", slaveGroup.SlaveGroupNumber})
slaveGroup.EntityData.Leafs.Append("follow", types.YLeaf{"Follow", slaveGroup.Follow})
slaveGroup.EntityData.Leafs.Append("virtual-mac-address", types.YLeaf{"VirtualMacAddress", slaveGroup.VirtualMacAddress})
slaveGroup.EntityData.YListKeys = []string {"SlaveGroupNumber"}
return &(slaveGroup.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_LinkLocalIpv6Address
// The HSRP IPv6 virtual linklocal address
type Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_LinkLocalIpv6Address struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// HSRP IPv6 virtual linklocal address. The type is string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
Address interface{}
// Linklocal Configuration Type. The type is HsrpLinklocal. The default value
// is manual.
AutoConfigure interface{}
}
func (linkLocalIpv6Address *Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_LinkLocalIpv6Address) GetEntityData() *types.CommonEntityData {
linkLocalIpv6Address.EntityData.YFilter = linkLocalIpv6Address.YFilter
linkLocalIpv6Address.EntityData.YangName = "link-local-ipv6-address"
linkLocalIpv6Address.EntityData.BundleName = "cisco_ios_xr"
linkLocalIpv6Address.EntityData.ParentYangName = "slave-group"
linkLocalIpv6Address.EntityData.SegmentPath = "link-local-ipv6-address"
linkLocalIpv6Address.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/slave-groups/slave-group/" + linkLocalIpv6Address.EntityData.SegmentPath
linkLocalIpv6Address.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
linkLocalIpv6Address.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
linkLocalIpv6Address.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
linkLocalIpv6Address.EntityData.Children = types.NewOrderedMap()
linkLocalIpv6Address.EntityData.Leafs = types.NewOrderedMap()
linkLocalIpv6Address.EntityData.Leafs.Append("address", types.YLeaf{"Address", linkLocalIpv6Address.Address})
linkLocalIpv6Address.EntityData.Leafs.Append("auto-configure", types.YLeaf{"AutoConfigure", linkLocalIpv6Address.AutoConfigure})
linkLocalIpv6Address.EntityData.YListKeys = []string {}
return &(linkLocalIpv6Address.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses
// The table of HSRP virtual global IPv6
// addresses
type Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A HSRP virtual global IPv6 IP address. The type is slice of
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses_GlobalIpv6Address.
GlobalIpv6Address []*Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses_GlobalIpv6Address
}
func (globalIpv6Addresses *Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses) GetEntityData() *types.CommonEntityData {
globalIpv6Addresses.EntityData.YFilter = globalIpv6Addresses.YFilter
globalIpv6Addresses.EntityData.YangName = "global-ipv6-addresses"
globalIpv6Addresses.EntityData.BundleName = "cisco_ios_xr"
globalIpv6Addresses.EntityData.ParentYangName = "slave-group"
globalIpv6Addresses.EntityData.SegmentPath = "global-ipv6-addresses"
globalIpv6Addresses.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/slave-groups/slave-group/" + globalIpv6Addresses.EntityData.SegmentPath
globalIpv6Addresses.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
globalIpv6Addresses.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
globalIpv6Addresses.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
globalIpv6Addresses.EntityData.Children = types.NewOrderedMap()
globalIpv6Addresses.EntityData.Children.Append("global-ipv6-address", types.YChild{"GlobalIpv6Address", nil})
for i := range globalIpv6Addresses.GlobalIpv6Address {
globalIpv6Addresses.EntityData.Children.Append(types.GetSegmentPath(globalIpv6Addresses.GlobalIpv6Address[i]), types.YChild{"GlobalIpv6Address", globalIpv6Addresses.GlobalIpv6Address[i]})
}
globalIpv6Addresses.EntityData.Leafs = types.NewOrderedMap()
globalIpv6Addresses.EntityData.YListKeys = []string {}
return &(globalIpv6Addresses.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses_GlobalIpv6Address
// A HSRP virtual global IPv6 IP address
type Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses_GlobalIpv6Address struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. HSRP virtual global IPv6 address. The type is
// string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
Address interface{}
}
func (globalIpv6Address *Hsrp_Interfaces_Interface_Ipv6_SlaveGroups_SlaveGroup_GlobalIpv6Addresses_GlobalIpv6Address) GetEntityData() *types.CommonEntityData {
globalIpv6Address.EntityData.YFilter = globalIpv6Address.YFilter
globalIpv6Address.EntityData.YangName = "global-ipv6-address"
globalIpv6Address.EntityData.BundleName = "cisco_ios_xr"
globalIpv6Address.EntityData.ParentYangName = "global-ipv6-addresses"
globalIpv6Address.EntityData.SegmentPath = "global-ipv6-address" + types.AddKeyToken(globalIpv6Address.Address, "address")
globalIpv6Address.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/ipv6/slave-groups/slave-group/global-ipv6-addresses/" + globalIpv6Address.EntityData.SegmentPath
globalIpv6Address.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
globalIpv6Address.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
globalIpv6Address.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
globalIpv6Address.EntityData.Children = types.NewOrderedMap()
globalIpv6Address.EntityData.Leafs = types.NewOrderedMap()
globalIpv6Address.EntityData.Leafs.Append("address", types.YLeaf{"Address", globalIpv6Address.Address})
globalIpv6Address.EntityData.YListKeys = []string {"Address"}
return &(globalIpv6Address.EntityData)
}
// Hsrp_Interfaces_Interface_Bfd
// BFD configuration
type Hsrp_Interfaces_Interface_Bfd struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Detection multiplier for BFD sessions created by hsrp. The type is
// interface{} with range: 2..50.
DetectionMultiplier interface{}
// Hello interval for BFD sessions created by hsrp. The type is interface{}
// with range: 3..30000. Units are millisecond.
Interval interface{}
}
func (bfd *Hsrp_Interfaces_Interface_Bfd) GetEntityData() *types.CommonEntityData {
bfd.EntityData.YFilter = bfd.YFilter
bfd.EntityData.YangName = "bfd"
bfd.EntityData.BundleName = "cisco_ios_xr"
bfd.EntityData.ParentYangName = "interface"
bfd.EntityData.SegmentPath = "bfd"
bfd.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/" + bfd.EntityData.SegmentPath
bfd.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bfd.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bfd.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bfd.EntityData.Children = types.NewOrderedMap()
bfd.EntityData.Leafs = types.NewOrderedMap()
bfd.EntityData.Leafs.Append("detection-multiplier", types.YLeaf{"DetectionMultiplier", bfd.DetectionMultiplier})
bfd.EntityData.Leafs.Append("interval", types.YLeaf{"Interval", bfd.Interval})
bfd.EntityData.YListKeys = []string {}
return &(bfd.EntityData)
}
// Hsrp_Interfaces_Interface_Delay
// Minimum and Reload Delay
// This type is a presence type.
type Hsrp_Interfaces_Interface_Delay struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Minimum delay in seconds. The type is interface{} with range: 0..10000.
// This attribute is mandatory. Units are second.
MinimumDelay interface{}
// Reload delay in seconds. The type is interface{} with range: 0..10000. This
// attribute is mandatory. Units are second.
ReloadDelay interface{}
}
func (delay *Hsrp_Interfaces_Interface_Delay) GetEntityData() *types.CommonEntityData {
delay.EntityData.YFilter = delay.YFilter
delay.EntityData.YangName = "delay"
delay.EntityData.BundleName = "cisco_ios_xr"
delay.EntityData.ParentYangName = "interface"
delay.EntityData.SegmentPath = "delay"
delay.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/" + delay.EntityData.SegmentPath
delay.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
delay.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
delay.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
delay.EntityData.Children = types.NewOrderedMap()
delay.EntityData.Leafs = types.NewOrderedMap()
delay.EntityData.Leafs.Append("minimum-delay", types.YLeaf{"MinimumDelay", delay.MinimumDelay})
delay.EntityData.Leafs.Append("reload-delay", types.YLeaf{"ReloadDelay", delay.ReloadDelay})
delay.EntityData.YListKeys = []string {}
return &(delay.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv4
// IPv4 HSRP configuration
type Hsrp_Interfaces_Interface_Ipv4 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The HSRP slave group configuration table.
SlaveGroups Hsrp_Interfaces_Interface_Ipv4_SlaveGroups
// Version 1 HSRP configuration.
Version1 Hsrp_Interfaces_Interface_Ipv4_Version1
// Version 2 HSRP configuration.
Version2 Hsrp_Interfaces_Interface_Ipv4_Version2
}
func (ipv4 *Hsrp_Interfaces_Interface_Ipv4) GetEntityData() *types.CommonEntityData {
ipv4.EntityData.YFilter = ipv4.YFilter
ipv4.EntityData.YangName = "ipv4"
ipv4.EntityData.BundleName = "cisco_ios_xr"
ipv4.EntityData.ParentYangName = "interface"
ipv4.EntityData.SegmentPath = "ipv4"
ipv4.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-cfg:hsrp/interfaces/interface/" + 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("slave-groups", types.YChild{"SlaveGroups", &ipv4.SlaveGroups})
ipv4.EntityData.Children.Append("version1", types.YChild{"Version1", &ipv4.Version1})
ipv4.EntityData.Children.Append("version2", types.YChild{"Version2", &ipv4.Version2})
ipv4.EntityData.Leafs = types.NewOrderedMap()
ipv4.EntityData.YListKeys = []string {}
return &(ipv4.EntityData)
}
// Hsrp_Interfaces_Interface_Ipv4_SlaveGroups
// The HSRP slave group configuration table
type Hsrp_Interfaces_Interface_Ipv4_SlaveGroups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The HSRP slave group being configured. The type is slice of
// Hsrp_Interfaces_Interface_Ipv4_SlaveGroups_SlaveGroup.
SlaveGroup []*Hsrp_Interfaces_Interface_Ipv4_SlaveGroups_SlaveGroup
}
func (slaveGroups *Hsrp_Interfaces_Interface_Ipv4_SlaveGroups) GetEntityData() *types.CommonEntityData {
slaveGroups.EntityData.YFilter = slaveGroups.YFilter