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_vrrp_oper.go
2417 lines (1918 loc) · 124 KB
/
ipv4_vrrp_oper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ipv4-vrrp package operational data.
//
// This module contains definitions
// for the following management objects:
// vrrp: VRRP operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ipv4_vrrp_oper
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"github.com/CiscoDevNet/ydk-go/ydk/types/yfilter"
"github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xr"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package ipv4_vrrp_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-vrrp-oper vrrp}", reflect.TypeOf(Vrrp{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-vrrp-oper:vrrp", reflect.TypeOf(Vrrp{}))
}
// VrrpStateChangeReason represents Vrrp state change reason
type VrrpStateChangeReason string
const (
// BFD session down
VrrpStateChangeReason_state_change_bfd_down VrrpStateChangeReason = "state-change-bfd-down"
// Virtual IP configured
VrrpStateChangeReason_state_change_virtual_ip_configured VrrpStateChangeReason = "state-change-virtual-ip-configured"
// Interface IP update
VrrpStateChangeReason_state_change_interface_ip VrrpStateChangeReason = "state-change-interface-ip"
// Delay timer expired
VrrpStateChangeReason_state_change_delay_timer VrrpStateChangeReason = "state-change-delay-timer"
// Ready on startup
VrrpStateChangeReason_state_change_startup VrrpStateChangeReason = "state-change-startup"
// Interface Up update
VrrpStateChangeReason_state_change_interface_up VrrpStateChangeReason = "state-change-interface-up"
// Interface Down update
VrrpStateChangeReason_state_change_interface_down VrrpStateChangeReason = "state-change-interface-down"
// Master down timer expired
VrrpStateChangeReason_state_change_master_down_timer VrrpStateChangeReason = "state-change-master-down-timer"
// Higher priority advert received
VrrpStateChangeReason_state_change_higher_priority_master VrrpStateChangeReason = "state-change-higher-priority-master"
// FHRP Admin state change
VrrpStateChangeReason_state_change_fhrp_admin VrrpStateChangeReason = "state-change-fhrp-admin"
// Change of MGO parent session
VrrpStateChangeReason_state_change_mgo_parent VrrpStateChangeReason = "state-change-mgo-parent"
// Checkpoint update from Primary VRRP instance
VrrpStateChangeReason_state_change_chkpt_update VrrpStateChangeReason = "state-change-chkpt-update"
// Resync following ISSU primary event
VrrpStateChangeReason_state_change_issu_resync VrrpStateChangeReason = "state-change-issu-resync"
)
// VrrpVmacState represents Vrrp vmac state
type VrrpVmacState string
const (
// VMAC stored locally
VrrpVmacState_stored VrrpVmacState = "stored"
// VMAC reserved in mac table
VrrpVmacState_reserved VrrpVmacState = "reserved"
// VMAC active in mac table
VrrpVmacState_active VrrpVmacState = "active"
// VMAC not yet reserved in mac table
VrrpVmacState_reserving VrrpVmacState = "reserving"
)
// VrrpBAf represents Vrrp b af
type VrrpBAf string
const (
// IPv4 Address Family
VrrpBAf_address_family_ipv4 VrrpBAf = "address-family-ipv4"
// IPv6 Address Family
VrrpBAf_address_family_ipv6 VrrpBAf = "address-family-ipv6"
// Number of Adddress Families
VrrpBAf_vrrp_baf_count VrrpBAf = "vrrp-baf-count"
)
// VrrpVipState represents Vrrp vip state
type VrrpVipState string
const (
// Down
VrrpVipState_virtual_ip_state_down VrrpVipState = "virtual-ip-state-down"
// Up
VrrpVipState_virtual_ip_state_up VrrpVipState = "virtual-ip-state-up"
)
// VrrpProtAuth represents Vrrp prot auth
type VrrpProtAuth string
const (
// Down
VrrpProtAuth_authentication_none VrrpProtAuth = "authentication-none"
// Simple Text
VrrpProtAuth_authentication_text VrrpProtAuth = "authentication-text"
// IP header
VrrpProtAuth_authentication_ip VrrpProtAuth = "authentication-ip"
)
// VrrpBfdSessionState represents Vrrp bfd session state
type VrrpBfdSessionState string
const (
// None
VrrpBfdSessionState_bfd_state_none VrrpBfdSessionState = "bfd-state-none"
// Inactive
VrrpBfdSessionState_bfd_state_inactive VrrpBfdSessionState = "bfd-state-inactive"
// Up
VrrpBfdSessionState_bfd_state_up VrrpBfdSessionState = "bfd-state-up"
// Down
VrrpBfdSessionState_bfd_state_down VrrpBfdSessionState = "bfd-state-down"
)
// VrrpBagProtocolState represents VRRP protocol state
type VrrpBagProtocolState string
const (
// Initial
VrrpBagProtocolState_state_initial VrrpBagProtocolState = "state-initial"
// Backup
VrrpBagProtocolState_state_backup VrrpBagProtocolState = "state-backup"
// Master
VrrpBagProtocolState_state_master VrrpBagProtocolState = "state-master"
)
// Vrrp
// VRRP operational data
type Vrrp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// VRRP summary statistics.
Summary Vrrp_Summary
// IPv6 VRRP configuration.
Ipv6 Vrrp_Ipv6
// IPv4 VRRP configuration.
Ipv4 Vrrp_Ipv4
// VRRP MGO Session information.
MgoSessions Vrrp_MgoSessions
}
func (vrrp *Vrrp) GetEntityData() *types.CommonEntityData {
vrrp.EntityData.YFilter = vrrp.YFilter
vrrp.EntityData.YangName = "vrrp"
vrrp.EntityData.BundleName = "cisco_ios_xr"
vrrp.EntityData.ParentYangName = "Cisco-IOS-XR-ipv4-vrrp-oper"
vrrp.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp"
vrrp.EntityData.AbsolutePath = vrrp.EntityData.SegmentPath
vrrp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vrrp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vrrp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vrrp.EntityData.Children = types.NewOrderedMap()
vrrp.EntityData.Children.Append("summary", types.YChild{"Summary", &vrrp.Summary})
vrrp.EntityData.Children.Append("ipv6", types.YChild{"Ipv6", &vrrp.Ipv6})
vrrp.EntityData.Children.Append("ipv4", types.YChild{"Ipv4", &vrrp.Ipv4})
vrrp.EntityData.Children.Append("mgo-sessions", types.YChild{"MgoSessions", &vrrp.MgoSessions})
vrrp.EntityData.Leafs = types.NewOrderedMap()
vrrp.EntityData.YListKeys = []string {}
return &(vrrp.EntityData)
}
// Vrrp_Summary
// VRRP summary statistics
type Vrrp_Summary struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Number of IPv4 sessions in MASTER (owner) state. The type is interface{}
// with range: 0..4294967295.
Ipv4SessionsMasterOwner interface{}
// Number of IPv4 sessions in MASTER state. The type is interface{} with
// range: 0..4294967295.
Ipv4SessionsMaster interface{}
// Number of IPv4 sessions in BACKUP state. The type is interface{} with
// range: 0..4294967295.
Ipv4SessionsBackup interface{}
// Number of IPv4 sessions in INIT state. The type is interface{} with range:
// 0..4294967295.
Ipv4SessionsInit interface{}
// Number of IPv4 slaves in MASTER state. The type is interface{} with range:
// 0..4294967295.
Ipv4SlavesMaster interface{}
// Number of IPv4 slaves in BACKUP state. The type is interface{} with range:
// 0..4294967295.
Ipv4SlavesBackup interface{}
// Number of IPv4 slaves in INIT state. The type is interface{} with range:
// 0..4294967295.
Ipv4SlavesInit interface{}
// Number of UP IPv4 Virtual IP Addresses on virtual routers in MASTER (owner)
// state. The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesMasterOwnerUp interface{}
// Number of DOWN IPv4 Virtual IP Addresses on virtual routers in MASTER
// (owner) state. The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesMasterOwnerDown interface{}
// Number of UP IPv4 Virtual IP Addresses on virtual routers in MASTER state.
// The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesMasterUp interface{}
// Number of DOWN IPv4 Virtual IP Addresses on virtual routers in MASTER
// state. The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesMasterDown interface{}
// Number of UP IPv4 Virtual IP Addresses on virtual routers in BACKUP state.
// The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesBackupUp interface{}
// Number of DOWN IPv4 Virtual IP Addresses on virtual routers in BACKUP
// state. The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesBackupDown interface{}
// Number of UP IPv4 Virtual IP Addresses on virtual routers in INIT state.
// The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesInitUp interface{}
// Number of DOWN IPv4 Virtual IP Addresses on virtual routers in INIT state.
// The type is interface{} with range: 0..4294967295.
Ipv4VirtualIpAddressesInitDown interface{}
// Number of IPv6 sessions in MASTER (owner) state. The type is interface{}
// with range: 0..4294967295.
Ipv6SessionsMasterOwner interface{}
// Number of IPv6 sessions in MASTER state. The type is interface{} with
// range: 0..4294967295.
Ipv6SessionsMaster interface{}
// Number of IPv6 sessions in BACKUP state. The type is interface{} with
// range: 0..4294967295.
Ipv6SessionsBackup interface{}
// Number of IPv6 sessions in INIT state. The type is interface{} with range:
// 0..4294967295.
Ipv6SessionsInit interface{}
// Number of IPv6 slaves in MASTER state. The type is interface{} with range:
// 0..4294967295.
Ipv6SlavesMaster interface{}
// Number of IPv6 slaves in BACKUP state. The type is interface{} with range:
// 0..4294967295.
Ipv6SlavesBackup interface{}
// Number of IPv6 slaves in INIT state. The type is interface{} with range:
// 0..4294967295.
Ipv6SlavesInit interface{}
// Number of UP IPv6 Virtual IP Addresses on virtual routers in MASTER (owner)
// state. The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesMasterOwnerUp interface{}
// Number of DOWN IPv6 Virtual IP Addresses on virtual routers in MASTER
// (owner) state. The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesMasterOwnerDown interface{}
// Number of UP IPv6 Virtual IP Addresses on virtual routers in MASTER state.
// The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesMasterUp interface{}
// Number of DOWN IPv6 Virtual IP Addresses on virtual routers in MASTER
// state. The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesMasterDown interface{}
// Number of UP IPv6 Virtual IP Addresses on virtual routers in BACKUP state.
// The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesBackupUp interface{}
// Number of DOWN IPv6 Virtual IP Addresses on virtual routers in BACKUP
// state. The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesBackupDown interface{}
// Number of UP IPv6 Virtual IP Addresses on virtual routers in INIT state.
// The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesInitUp interface{}
// Number of DOWN IPv6 Virtual IP Addresses on virtual routers in INIT state.
// The type is interface{} with range: 0..4294967295.
Ipv6VirtualIpAddressesInitDown interface{}
// Number of VRRP interfaces with IPv4 caps in UP state. The type is
// interface{} with range: 0..4294967295.
InterfacesIpv4StateUp interface{}
// Number of VRRP interfaces with IPv4 caps in DOWN state. The type is
// interface{} with range: 0..4294967295.
InterfacesIpv4StateDown interface{}
// Number of tracked interfaces with IPv4 caps in UP state. The type is
// interface{} with range: 0..4294967295.
TrackedInterfacesIpv4StateUp interface{}
// Number of tracked interfaces with IPv4 caps in DOWN state. The type is
// interface{} with range: 0..4294967295.
TrackedInterfacesIpv4StateDown interface{}
// Number of VRRP interfaces with IPv6 caps in UP state. The type is
// interface{} with range: 0..4294967295.
InterfacesIpv6StateUp interface{}
// Number of VRRP interfaces with IPv6 caps in DOWN state. The type is
// interface{} with range: 0..4294967295.
InterfacesIpv6StateDown interface{}
// Number of tracked interfaces with IPv6 caps in UP state. The type is
// interface{} with range: 0..4294967295.
TrackedInterfacesIpv6StateUp interface{}
// Number of tracked interfaces with IPv6 caps in DOWN state. The type is
// interface{} with range: 0..4294967295.
TrackedInterfacesIpv6StateDown interface{}
// Number of tracked objects in UP state. The type is interface{} with range:
// 0..4294967295.
TrackedObjectsStateUp interface{}
// Number of tracked objects in DOWN state. The type is interface{} with
// range: 0..4294967295.
TrackedObjectsStateDown interface{}
// Number of VRRP IPv4 BFD sessions in UP state. The type is interface{} with
// range: 0..4294967295.
BfdSessionsUp interface{}
// Number of VRRP IPv4 BFD sessions in DOWN state. The type is interface{}
// with range: 0..4294967295.
BfdSessionsDown interface{}
// Number of VRRP IPv4 BFD sessions in INACTIVE state. The type is interface{}
// with range: 0..4294967295.
BfdSessionInactive interface{}
// Number of VRRP IPv6 BFD sessions in UP state. The type is interface{} with
// range: 0..4294967295.
Ipv6bfdSessionsUp interface{}
// Number of VRRP IPv6 BFD sessions in DOWN state. The type is interface{}
// with range: 0..4294967295.
Ipv6bfdSessionsDown interface{}
// Number of VRRP IPv6 BFD sessions in INACTIVE state. The type is interface{}
// with range: 0..4294967295.
Ipv6bfdSessionInactive interface{}
}
func (summary *Vrrp_Summary) GetEntityData() *types.CommonEntityData {
summary.EntityData.YFilter = summary.YFilter
summary.EntityData.YangName = "summary"
summary.EntityData.BundleName = "cisco_ios_xr"
summary.EntityData.ParentYangName = "vrrp"
summary.EntityData.SegmentPath = "summary"
summary.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp/" + summary.EntityData.SegmentPath
summary.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
summary.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
summary.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
summary.EntityData.Children = types.NewOrderedMap()
summary.EntityData.Leafs = types.NewOrderedMap()
summary.EntityData.Leafs.Append("ipv4-sessions-master-owner", types.YLeaf{"Ipv4SessionsMasterOwner", summary.Ipv4SessionsMasterOwner})
summary.EntityData.Leafs.Append("ipv4-sessions-master", types.YLeaf{"Ipv4SessionsMaster", summary.Ipv4SessionsMaster})
summary.EntityData.Leafs.Append("ipv4-sessions-backup", types.YLeaf{"Ipv4SessionsBackup", summary.Ipv4SessionsBackup})
summary.EntityData.Leafs.Append("ipv4-sessions-init", types.YLeaf{"Ipv4SessionsInit", summary.Ipv4SessionsInit})
summary.EntityData.Leafs.Append("ipv4-slaves-master", types.YLeaf{"Ipv4SlavesMaster", summary.Ipv4SlavesMaster})
summary.EntityData.Leafs.Append("ipv4-slaves-backup", types.YLeaf{"Ipv4SlavesBackup", summary.Ipv4SlavesBackup})
summary.EntityData.Leafs.Append("ipv4-slaves-init", types.YLeaf{"Ipv4SlavesInit", summary.Ipv4SlavesInit})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-master-owner-up", types.YLeaf{"Ipv4VirtualIpAddressesMasterOwnerUp", summary.Ipv4VirtualIpAddressesMasterOwnerUp})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-master-owner-down", types.YLeaf{"Ipv4VirtualIpAddressesMasterOwnerDown", summary.Ipv4VirtualIpAddressesMasterOwnerDown})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-master-up", types.YLeaf{"Ipv4VirtualIpAddressesMasterUp", summary.Ipv4VirtualIpAddressesMasterUp})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-master-down", types.YLeaf{"Ipv4VirtualIpAddressesMasterDown", summary.Ipv4VirtualIpAddressesMasterDown})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-backup-up", types.YLeaf{"Ipv4VirtualIpAddressesBackupUp", summary.Ipv4VirtualIpAddressesBackupUp})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-backup-down", types.YLeaf{"Ipv4VirtualIpAddressesBackupDown", summary.Ipv4VirtualIpAddressesBackupDown})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-init-up", types.YLeaf{"Ipv4VirtualIpAddressesInitUp", summary.Ipv4VirtualIpAddressesInitUp})
summary.EntityData.Leafs.Append("ipv4-virtual-ip-addresses-init-down", types.YLeaf{"Ipv4VirtualIpAddressesInitDown", summary.Ipv4VirtualIpAddressesInitDown})
summary.EntityData.Leafs.Append("ipv6-sessions-master-owner", types.YLeaf{"Ipv6SessionsMasterOwner", summary.Ipv6SessionsMasterOwner})
summary.EntityData.Leafs.Append("ipv6-sessions-master", types.YLeaf{"Ipv6SessionsMaster", summary.Ipv6SessionsMaster})
summary.EntityData.Leafs.Append("ipv6-sessions-backup", types.YLeaf{"Ipv6SessionsBackup", summary.Ipv6SessionsBackup})
summary.EntityData.Leafs.Append("ipv6-sessions-init", types.YLeaf{"Ipv6SessionsInit", summary.Ipv6SessionsInit})
summary.EntityData.Leafs.Append("ipv6-slaves-master", types.YLeaf{"Ipv6SlavesMaster", summary.Ipv6SlavesMaster})
summary.EntityData.Leafs.Append("ipv6-slaves-backup", types.YLeaf{"Ipv6SlavesBackup", summary.Ipv6SlavesBackup})
summary.EntityData.Leafs.Append("ipv6-slaves-init", types.YLeaf{"Ipv6SlavesInit", summary.Ipv6SlavesInit})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-master-owner-up", types.YLeaf{"Ipv6VirtualIpAddressesMasterOwnerUp", summary.Ipv6VirtualIpAddressesMasterOwnerUp})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-master-owner-down", types.YLeaf{"Ipv6VirtualIpAddressesMasterOwnerDown", summary.Ipv6VirtualIpAddressesMasterOwnerDown})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-master-up", types.YLeaf{"Ipv6VirtualIpAddressesMasterUp", summary.Ipv6VirtualIpAddressesMasterUp})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-master-down", types.YLeaf{"Ipv6VirtualIpAddressesMasterDown", summary.Ipv6VirtualIpAddressesMasterDown})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-backup-up", types.YLeaf{"Ipv6VirtualIpAddressesBackupUp", summary.Ipv6VirtualIpAddressesBackupUp})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-backup-down", types.YLeaf{"Ipv6VirtualIpAddressesBackupDown", summary.Ipv6VirtualIpAddressesBackupDown})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-init-up", types.YLeaf{"Ipv6VirtualIpAddressesInitUp", summary.Ipv6VirtualIpAddressesInitUp})
summary.EntityData.Leafs.Append("ipv6-virtual-ip-addresses-init-down", types.YLeaf{"Ipv6VirtualIpAddressesInitDown", summary.Ipv6VirtualIpAddressesInitDown})
summary.EntityData.Leafs.Append("interfaces-ipv4-state-up", types.YLeaf{"InterfacesIpv4StateUp", summary.InterfacesIpv4StateUp})
summary.EntityData.Leafs.Append("interfaces-ipv4-state-down", types.YLeaf{"InterfacesIpv4StateDown", summary.InterfacesIpv4StateDown})
summary.EntityData.Leafs.Append("tracked-interfaces-ipv4-state-up", types.YLeaf{"TrackedInterfacesIpv4StateUp", summary.TrackedInterfacesIpv4StateUp})
summary.EntityData.Leafs.Append("tracked-interfaces-ipv4-state-down", types.YLeaf{"TrackedInterfacesIpv4StateDown", summary.TrackedInterfacesIpv4StateDown})
summary.EntityData.Leafs.Append("interfaces-ipv6-state-up", types.YLeaf{"InterfacesIpv6StateUp", summary.InterfacesIpv6StateUp})
summary.EntityData.Leafs.Append("interfaces-ipv6-state-down", types.YLeaf{"InterfacesIpv6StateDown", summary.InterfacesIpv6StateDown})
summary.EntityData.Leafs.Append("tracked-interfaces-ipv6-state-up", types.YLeaf{"TrackedInterfacesIpv6StateUp", summary.TrackedInterfacesIpv6StateUp})
summary.EntityData.Leafs.Append("tracked-interfaces-ipv6-state-down", types.YLeaf{"TrackedInterfacesIpv6StateDown", summary.TrackedInterfacesIpv6StateDown})
summary.EntityData.Leafs.Append("tracked-objects-state-up", types.YLeaf{"TrackedObjectsStateUp", summary.TrackedObjectsStateUp})
summary.EntityData.Leafs.Append("tracked-objects-state-down", types.YLeaf{"TrackedObjectsStateDown", summary.TrackedObjectsStateDown})
summary.EntityData.Leafs.Append("bfd-sessions-up", types.YLeaf{"BfdSessionsUp", summary.BfdSessionsUp})
summary.EntityData.Leafs.Append("bfd-sessions-down", types.YLeaf{"BfdSessionsDown", summary.BfdSessionsDown})
summary.EntityData.Leafs.Append("bfd-session-inactive", types.YLeaf{"BfdSessionInactive", summary.BfdSessionInactive})
summary.EntityData.Leafs.Append("ipv6bfd-sessions-up", types.YLeaf{"Ipv6bfdSessionsUp", summary.Ipv6bfdSessionsUp})
summary.EntityData.Leafs.Append("ipv6bfd-sessions-down", types.YLeaf{"Ipv6bfdSessionsDown", summary.Ipv6bfdSessionsDown})
summary.EntityData.Leafs.Append("ipv6bfd-session-inactive", types.YLeaf{"Ipv6bfdSessionInactive", summary.Ipv6bfdSessionInactive})
summary.EntityData.YListKeys = []string {}
return &(summary.EntityData)
}
// Vrrp_Ipv6
// IPv6 VRRP configuration
type Vrrp_Ipv6 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The VRRP tracked item table.
TrackItems Vrrp_Ipv6_TrackItems
// The VRRP virtual router table.
VirtualRouters Vrrp_Ipv6_VirtualRouters
// The VRRP interface table.
Interfaces Vrrp_Ipv6_Interfaces
}
func (ipv6 *Vrrp_Ipv6) GetEntityData() *types.CommonEntityData {
ipv6.EntityData.YFilter = ipv6.YFilter
ipv6.EntityData.YangName = "ipv6"
ipv6.EntityData.BundleName = "cisco_ios_xr"
ipv6.EntityData.ParentYangName = "vrrp"
ipv6.EntityData.SegmentPath = "ipv6"
ipv6.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp/" + 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("track-items", types.YChild{"TrackItems", &ipv6.TrackItems})
ipv6.EntityData.Children.Append("virtual-routers", types.YChild{"VirtualRouters", &ipv6.VirtualRouters})
ipv6.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &ipv6.Interfaces})
ipv6.EntityData.Leafs = types.NewOrderedMap()
ipv6.EntityData.YListKeys = []string {}
return &(ipv6.EntityData)
}
// Vrrp_Ipv6_TrackItems
// The VRRP tracked item table
type Vrrp_Ipv6_TrackItems struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A configured VRRP IP address entry. The type is slice of
// Vrrp_Ipv6_TrackItems_TrackItem.
TrackItem []*Vrrp_Ipv6_TrackItems_TrackItem
}
func (trackItems *Vrrp_Ipv6_TrackItems) GetEntityData() *types.CommonEntityData {
trackItems.EntityData.YFilter = trackItems.YFilter
trackItems.EntityData.YangName = "track-items"
trackItems.EntityData.BundleName = "cisco_ios_xr"
trackItems.EntityData.ParentYangName = "ipv6"
trackItems.EntityData.SegmentPath = "track-items"
trackItems.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp/ipv6/" + trackItems.EntityData.SegmentPath
trackItems.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trackItems.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trackItems.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trackItems.EntityData.Children = types.NewOrderedMap()
trackItems.EntityData.Children.Append("track-item", types.YChild{"TrackItem", nil})
for i := range trackItems.TrackItem {
trackItems.EntityData.Children.Append(types.GetSegmentPath(trackItems.TrackItem[i]), types.YChild{"TrackItem", trackItems.TrackItem[i]})
}
trackItems.EntityData.Leafs = types.NewOrderedMap()
trackItems.EntityData.YListKeys = []string {}
return &(trackItems.EntityData)
}
// Vrrp_Ipv6_TrackItems_TrackItem
// A configured VRRP IP address entry
type Vrrp_Ipv6_TrackItems_TrackItem struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The interface name to track. The type is string
// with pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// This attribute is a key. The VRRP virtual router id. The type is
// interface{} with range: 0..4294967295.
VirtualRouterId interface{}
// This attribute is a key. The name of the tracked interface. The type is
// string with pattern: [a-zA-Z0-9._/-]+.
TrackedInterfaceName interface{}
// IM Interface. The type is string with pattern: [a-zA-Z0-9._/-]+.
Interface interface{}
// Virtual Router ID. The type is interface{} with range: 0..4294967295.
VirtualRouterIdXr interface{}
// Type of tracked item. The type is interface{} with range: 0..65535.
TrackedItemType interface{}
// Tracked item index. The type is string with length: 0..32.
TrackedItemIndex interface{}
// State of the tracked item. The type is interface{} with range: 0..255.
State interface{}
// Priority weight of item. The type is interface{} with range: 0..255.
Priority interface{}
}
func (trackItem *Vrrp_Ipv6_TrackItems_TrackItem) GetEntityData() *types.CommonEntityData {
trackItem.EntityData.YFilter = trackItem.YFilter
trackItem.EntityData.YangName = "track-item"
trackItem.EntityData.BundleName = "cisco_ios_xr"
trackItem.EntityData.ParentYangName = "track-items"
trackItem.EntityData.SegmentPath = "track-item" + types.AddKeyToken(trackItem.InterfaceName, "interface-name") + types.AddKeyToken(trackItem.VirtualRouterId, "virtual-router-id") + types.AddKeyToken(trackItem.TrackedInterfaceName, "tracked-interface-name")
trackItem.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp/ipv6/track-items/" + trackItem.EntityData.SegmentPath
trackItem.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trackItem.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trackItem.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trackItem.EntityData.Children = types.NewOrderedMap()
trackItem.EntityData.Leafs = types.NewOrderedMap()
trackItem.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", trackItem.InterfaceName})
trackItem.EntityData.Leafs.Append("virtual-router-id", types.YLeaf{"VirtualRouterId", trackItem.VirtualRouterId})
trackItem.EntityData.Leafs.Append("tracked-interface-name", types.YLeaf{"TrackedInterfaceName", trackItem.TrackedInterfaceName})
trackItem.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", trackItem.Interface})
trackItem.EntityData.Leafs.Append("virtual-router-id-xr", types.YLeaf{"VirtualRouterIdXr", trackItem.VirtualRouterIdXr})
trackItem.EntityData.Leafs.Append("tracked-item-type", types.YLeaf{"TrackedItemType", trackItem.TrackedItemType})
trackItem.EntityData.Leafs.Append("tracked-item-index", types.YLeaf{"TrackedItemIndex", trackItem.TrackedItemIndex})
trackItem.EntityData.Leafs.Append("state", types.YLeaf{"State", trackItem.State})
trackItem.EntityData.Leafs.Append("priority", types.YLeaf{"Priority", trackItem.Priority})
trackItem.EntityData.YListKeys = []string {"InterfaceName", "VirtualRouterId", "TrackedInterfaceName"}
return &(trackItem.EntityData)
}
// Vrrp_Ipv6_VirtualRouters
// The VRRP virtual router table
type Vrrp_Ipv6_VirtualRouters struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A VRRP virtual router. The type is slice of
// Vrrp_Ipv6_VirtualRouters_VirtualRouter.
VirtualRouter []*Vrrp_Ipv6_VirtualRouters_VirtualRouter
}
func (virtualRouters *Vrrp_Ipv6_VirtualRouters) GetEntityData() *types.CommonEntityData {
virtualRouters.EntityData.YFilter = virtualRouters.YFilter
virtualRouters.EntityData.YangName = "virtual-routers"
virtualRouters.EntityData.BundleName = "cisco_ios_xr"
virtualRouters.EntityData.ParentYangName = "ipv6"
virtualRouters.EntityData.SegmentPath = "virtual-routers"
virtualRouters.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp/ipv6/" + virtualRouters.EntityData.SegmentPath
virtualRouters.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
virtualRouters.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
virtualRouters.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
virtualRouters.EntityData.Children = types.NewOrderedMap()
virtualRouters.EntityData.Children.Append("virtual-router", types.YChild{"VirtualRouter", nil})
for i := range virtualRouters.VirtualRouter {
virtualRouters.EntityData.Children.Append(types.GetSegmentPath(virtualRouters.VirtualRouter[i]), types.YChild{"VirtualRouter", virtualRouters.VirtualRouter[i]})
}
virtualRouters.EntityData.Leafs = types.NewOrderedMap()
virtualRouters.EntityData.YListKeys = []string {}
return &(virtualRouters.EntityData)
}
// Vrrp_Ipv6_VirtualRouters_VirtualRouter
// A VRRP virtual router
type Vrrp_Ipv6_VirtualRouters_VirtualRouter struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The name of the interface. The type is string with
// pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// This attribute is a key. The VRRP virtual router id. The type is
// interface{} with range: 0..4294967295.
VirtualRouterId interface{}
// IM Interface Name. The type is string with length: 0..64.
InterfaceNameXr interface{}
// Virtual Router ID. The type is interface{} with range: 0..4294967295.
VirtualRouterIdXr interface{}
// VRRP Protocol Version. The type is interface{} with range: 0..255.
Version interface{}
// Address family. The type is VrrpBAf.
AddressFamily interface{}
// Session Name. The type is string with length: 0..16.
SessionName interface{}
// Number of slaves following state. The type is interface{} with range:
// 0..4294967295.
Slaves interface{}
// Group is a slave group. The type is bool.
IsSlave interface{}
// Followed Session Name. The type is string with length: 0..16.
FollowedSessionName interface{}
// Configured VRRP secondary address count. The type is interface{} with
// range: 0..255.
SecondaryAddressCount interface{}
// Operational VRRP address count. The type is interface{} with range: 0..255.
OperationalAddressCount interface{}
// Configured IPv4 Primary address. 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}]+)?.
PrimaryVirtualIp interface{}
// Configured but Down VRRP address count. The type is interface{} with range:
// 0..255.
ConfiguredDownAddressCount interface{}
// Virtual linklocal 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}]+)?.
VirtualLinklocalIpv6Address interface{}
// State of primary IP address. The type is VrrpVipState.
PrimaryState interface{}
// Master router real IP address. 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}]+)?.
MasterIpAddress interface{}
// Master router real 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}]+)?.
MasterIpv6Address interface{}
// Master router priority. The type is interface{} with range: 0..255.
MasterPriority interface{}
// VRRP state. The type is VrrpBagProtocolState.
VrrpState interface{}
// Authentication type. The type is VrrpProtAuth.
AuthenticationType interface{}
// Authentication data. The type is string.
AuthenticationString interface{}
// Configured advertize time. The type is interface{} with range:
// 0..4294967295.
ConfiguredAdvertizeTime interface{}
// Operational advertize time. The type is interface{} with range:
// 0..4294967295.
OperAdvertizeTime interface{}
// Minimum delay time in msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
MinDelayTime interface{}
// Reload delay time in msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
ReloadDelayTime interface{}
// Delay timer running flag. The type is bool.
DelayTimerFlag interface{}
// Delay timer running time secs. The type is interface{} with range:
// 0..4294967295. Units are second.
DelayTimerSecs interface{}
// Delay timer running time msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
DelayTimerMsecs interface{}
// Text authentication configured flag. The type is bool.
AuthenticationFlag interface{}
// Configured timers forced flag. The type is bool.
ForceTimerFlag interface{}
// Preempt configured flag. The type is bool.
PreemptFlag interface{}
// IP address owner flag. The type is bool.
IpAddressOwnerFlag interface{}
// Is accept mode. The type is bool.
IsAcceptMode interface{}
// Preempt delay time. The type is interface{} with range: 0..65535.
PreemptDelayTime interface{}
// Configured priority. The type is interface{} with range: 0..255.
ConfiguredPriority interface{}
// Operational priority. The type is interface{} with range: 0..255.
OperationalPriority interface{}
// Priority decrement. The type is interface{} with range: 0..4294967295.
PriorityDecrement interface{}
// Number of items tracked. The type is interface{} with range: 0..4294967295.
TrackedInterfaceCount interface{}
// Number of tracked items up. The type is interface{} with range:
// 0..4294967295.
TrackedInterfaceUpCount interface{}
// Number of tracked items. The type is interface{} with range: 0..4294967295.
TrackedItemCount interface{}
// Number of tracked items in UP state. The type is interface{} with range:
// 0..4294967295.
TrackedItemUpCount interface{}
// Time in current state secs. The type is interface{} with range:
// 0..4294967295. Units are second.
TimeInCurrentState interface{}
// Number of state changes. The type is interface{} with range: 0..4294967295.
StateChangeCount interface{}
// Time vrouter is up in centiseconds. The type is interface{} with range:
// 0..4294967295. Units are centisecond.
TimeVrouterUp interface{}
// No. of times become Master. The type is interface{} with range:
// 0..4294967295.
MasterCount interface{}
// No. of advertisements received. The type is interface{} with range:
// 0..4294967295.
AdvertsReceivedCount interface{}
// Advertise interval errors. The type is interface{} with range:
// 0..4294967295.
AdvertIntervalErrorCount interface{}
// No. of advertisements sent. The type is interface{} with range:
// 0..4294967295.
AdvertsSentCount interface{}
// Authentication failures. The type is interface{} with range: 0..4294967295.
AuthenticationFailCount interface{}
// TTL errors. The type is interface{} with range: 0..4294967295.
TtlErrorCount interface{}
// No. priority 0 received. The type is interface{} with range: 0..4294967295.
PriorityZeroReceivedCount interface{}
// No. priority 0 sent. The type is interface{} with range: 0..4294967295.
PriorityZeroSentCount interface{}
// Invalid packets received. The type is interface{} with range:
// 0..4294967295.
InvalidPacketCount interface{}
// Address list errors. The type is interface{} with range: 0..4294967295.
AddressListErrorCount interface{}
// Invalid authentication type. The type is interface{} with range:
// 0..4294967295.
InvalidAuthTypeCount interface{}
// Authentication type mismatches. The type is interface{} with range:
// 0..4294967295.
AuthTypeMismatchCount interface{}
// Packet length errors. The type is interface{} with range: 0..4294967295.
PktLengthErrorsCount interface{}
// Time since a statistics discontinuity in ticks (10ns units). The type is
// interface{} with range: 0..4294967295.
TimeStatsDiscontinuity interface{}
// BFD session state. The type is VrrpBfdSessionState.
BfdSessionState interface{}
// BFD packet send interval. The type is interface{} with range:
// 0..4294967295.
BfdInterval interface{}
// BFD multiplier. The type is interface{} with range: 0..4294967295.
BfdMultiplier interface{}
// BFD configured remote IP. 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}]+)?.
BfdCfgRemoteIp interface{}
// BFD configured remote IPv6. 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}]+)?.
BfdConfiguredRemoteIpv6Address interface{}
// Whether state recovered from checkpoint. The type is bool.
StateFromCheckpoint interface{}
// The Interface Primary IPv4 address. 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}]+)?.
InterfaceIpv4Address interface{}
// The Interface linklocal 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}]+)?.
InterfaceIpv6Address interface{}
// Virtual mac address. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
VirtualMacAddress interface{}
// Virtual mac address state. The type is VrrpVmacState.
VirtualMacAddressState interface{}
// Operational IPv4 VRRP addresses. The type is slice of 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}]+)?.
OperationalAddress []interface{}
// IPv4 Configured but Down VRRP addresses. The type is slice of 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}]+)?.
Ipv4ConfiguredDownAddress []interface{}
// Time last resign was sent.
ResignSentTime Vrrp_Ipv6_VirtualRouters_VirtualRouter_ResignSentTime
// Time last resign was received.
ResignReceivedTime Vrrp_Ipv6_VirtualRouters_VirtualRouter_ResignReceivedTime
// IPv6 Operational VRRP addresses. The type is slice of
// Vrrp_Ipv6_VirtualRouters_VirtualRouter_Ipv6OperationalAddress.
Ipv6OperationalAddress []*Vrrp_Ipv6_VirtualRouters_VirtualRouter_Ipv6OperationalAddress
// IPv6 Configured but Down VRRP addresses. The type is slice of
// Vrrp_Ipv6_VirtualRouters_VirtualRouter_Ipv6ConfiguredDownAddress.
Ipv6ConfiguredDownAddress []*Vrrp_Ipv6_VirtualRouters_VirtualRouter_Ipv6ConfiguredDownAddress
// Track Item Info. The type is slice of
// Vrrp_Ipv6_VirtualRouters_VirtualRouter_TrackItemInfo.
TrackItemInfo []*Vrrp_Ipv6_VirtualRouters_VirtualRouter_TrackItemInfo
// State change history. The type is slice of
// Vrrp_Ipv6_VirtualRouters_VirtualRouter_StateChangeHistory.
StateChangeHistory []*Vrrp_Ipv6_VirtualRouters_VirtualRouter_StateChangeHistory
}
func (virtualRouter *Vrrp_Ipv6_VirtualRouters_VirtualRouter) GetEntityData() *types.CommonEntityData {
virtualRouter.EntityData.YFilter = virtualRouter.YFilter
virtualRouter.EntityData.YangName = "virtual-router"
virtualRouter.EntityData.BundleName = "cisco_ios_xr"
virtualRouter.EntityData.ParentYangName = "virtual-routers"
virtualRouter.EntityData.SegmentPath = "virtual-router" + types.AddKeyToken(virtualRouter.InterfaceName, "interface-name") + types.AddKeyToken(virtualRouter.VirtualRouterId, "virtual-router-id")
virtualRouter.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-vrrp-oper:vrrp/ipv6/virtual-routers/" + virtualRouter.EntityData.SegmentPath
virtualRouter.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
virtualRouter.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
virtualRouter.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
virtualRouter.EntityData.Children = types.NewOrderedMap()
virtualRouter.EntityData.Children.Append("resign-sent-time", types.YChild{"ResignSentTime", &virtualRouter.ResignSentTime})
virtualRouter.EntityData.Children.Append("resign-received-time", types.YChild{"ResignReceivedTime", &virtualRouter.ResignReceivedTime})
virtualRouter.EntityData.Children.Append("ipv6-operational-address", types.YChild{"Ipv6OperationalAddress", nil})
for i := range virtualRouter.Ipv6OperationalAddress {
types.SetYListKey(virtualRouter.Ipv6OperationalAddress[i], i)
virtualRouter.EntityData.Children.Append(types.GetSegmentPath(virtualRouter.Ipv6OperationalAddress[i]), types.YChild{"Ipv6OperationalAddress", virtualRouter.Ipv6OperationalAddress[i]})
}
virtualRouter.EntityData.Children.Append("ipv6-configured-down-address", types.YChild{"Ipv6ConfiguredDownAddress", nil})
for i := range virtualRouter.Ipv6ConfiguredDownAddress {
types.SetYListKey(virtualRouter.Ipv6ConfiguredDownAddress[i], i)
virtualRouter.EntityData.Children.Append(types.GetSegmentPath(virtualRouter.Ipv6ConfiguredDownAddress[i]), types.YChild{"Ipv6ConfiguredDownAddress", virtualRouter.Ipv6ConfiguredDownAddress[i]})
}
virtualRouter.EntityData.Children.Append("track-item-info", types.YChild{"TrackItemInfo", nil})
for i := range virtualRouter.TrackItemInfo {
types.SetYListKey(virtualRouter.TrackItemInfo[i], i)
virtualRouter.EntityData.Children.Append(types.GetSegmentPath(virtualRouter.TrackItemInfo[i]), types.YChild{"TrackItemInfo", virtualRouter.TrackItemInfo[i]})
}
virtualRouter.EntityData.Children.Append("state-change-history", types.YChild{"StateChangeHistory", nil})
for i := range virtualRouter.StateChangeHistory {
types.SetYListKey(virtualRouter.StateChangeHistory[i], i)
virtualRouter.EntityData.Children.Append(types.GetSegmentPath(virtualRouter.StateChangeHistory[i]), types.YChild{"StateChangeHistory", virtualRouter.StateChangeHistory[i]})
}
virtualRouter.EntityData.Leafs = types.NewOrderedMap()
virtualRouter.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", virtualRouter.InterfaceName})
virtualRouter.EntityData.Leafs.Append("virtual-router-id", types.YLeaf{"VirtualRouterId", virtualRouter.VirtualRouterId})
virtualRouter.EntityData.Leafs.Append("interface-name-xr", types.YLeaf{"InterfaceNameXr", virtualRouter.InterfaceNameXr})
virtualRouter.EntityData.Leafs.Append("virtual-router-id-xr", types.YLeaf{"VirtualRouterIdXr", virtualRouter.VirtualRouterIdXr})
virtualRouter.EntityData.Leafs.Append("version", types.YLeaf{"Version", virtualRouter.Version})
virtualRouter.EntityData.Leafs.Append("address-family", types.YLeaf{"AddressFamily", virtualRouter.AddressFamily})
virtualRouter.EntityData.Leafs.Append("session-name", types.YLeaf{"SessionName", virtualRouter.SessionName})
virtualRouter.EntityData.Leafs.Append("slaves", types.YLeaf{"Slaves", virtualRouter.Slaves})
virtualRouter.EntityData.Leafs.Append("is-slave", types.YLeaf{"IsSlave", virtualRouter.IsSlave})
virtualRouter.EntityData.Leafs.Append("followed-session-name", types.YLeaf{"FollowedSessionName", virtualRouter.FollowedSessionName})
virtualRouter.EntityData.Leafs.Append("secondary-address-count", types.YLeaf{"SecondaryAddressCount", virtualRouter.SecondaryAddressCount})
virtualRouter.EntityData.Leafs.Append("operational-address-count", types.YLeaf{"OperationalAddressCount", virtualRouter.OperationalAddressCount})
virtualRouter.EntityData.Leafs.Append("primary-virtual-ip", types.YLeaf{"PrimaryVirtualIp", virtualRouter.PrimaryVirtualIp})
virtualRouter.EntityData.Leafs.Append("configured-down-address-count", types.YLeaf{"ConfiguredDownAddressCount", virtualRouter.ConfiguredDownAddressCount})
virtualRouter.EntityData.Leafs.Append("virtual-linklocal-ipv6-address", types.YLeaf{"VirtualLinklocalIpv6Address", virtualRouter.VirtualLinklocalIpv6Address})
virtualRouter.EntityData.Leafs.Append("primary-state", types.YLeaf{"PrimaryState", virtualRouter.PrimaryState})
virtualRouter.EntityData.Leafs.Append("master-ip-address", types.YLeaf{"MasterIpAddress", virtualRouter.MasterIpAddress})
virtualRouter.EntityData.Leafs.Append("master-ipv6-address", types.YLeaf{"MasterIpv6Address", virtualRouter.MasterIpv6Address})
virtualRouter.EntityData.Leafs.Append("master-priority", types.YLeaf{"MasterPriority", virtualRouter.MasterPriority})
virtualRouter.EntityData.Leafs.Append("vrrp-state", types.YLeaf{"VrrpState", virtualRouter.VrrpState})
virtualRouter.EntityData.Leafs.Append("authentication-type", types.YLeaf{"AuthenticationType", virtualRouter.AuthenticationType})
virtualRouter.EntityData.Leafs.Append("authentication-string", types.YLeaf{"AuthenticationString", virtualRouter.AuthenticationString})
virtualRouter.EntityData.Leafs.Append("configured-advertize-time", types.YLeaf{"ConfiguredAdvertizeTime", virtualRouter.ConfiguredAdvertizeTime})
virtualRouter.EntityData.Leafs.Append("oper-advertize-time", types.YLeaf{"OperAdvertizeTime", virtualRouter.OperAdvertizeTime})
virtualRouter.EntityData.Leafs.Append("min-delay-time", types.YLeaf{"MinDelayTime", virtualRouter.MinDelayTime})
virtualRouter.EntityData.Leafs.Append("reload-delay-time", types.YLeaf{"ReloadDelayTime", virtualRouter.ReloadDelayTime})
virtualRouter.EntityData.Leafs.Append("delay-timer-flag", types.YLeaf{"DelayTimerFlag", virtualRouter.DelayTimerFlag})
virtualRouter.EntityData.Leafs.Append("delay-timer-secs", types.YLeaf{"DelayTimerSecs", virtualRouter.DelayTimerSecs})
virtualRouter.EntityData.Leafs.Append("delay-timer-msecs", types.YLeaf{"DelayTimerMsecs", virtualRouter.DelayTimerMsecs})
virtualRouter.EntityData.Leafs.Append("authentication-flag", types.YLeaf{"AuthenticationFlag", virtualRouter.AuthenticationFlag})
virtualRouter.EntityData.Leafs.Append("force-timer-flag", types.YLeaf{"ForceTimerFlag", virtualRouter.ForceTimerFlag})
virtualRouter.EntityData.Leafs.Append("preempt-flag", types.YLeaf{"PreemptFlag", virtualRouter.PreemptFlag})
virtualRouter.EntityData.Leafs.Append("ip-address-owner-flag", types.YLeaf{"IpAddressOwnerFlag", virtualRouter.IpAddressOwnerFlag})
virtualRouter.EntityData.Leafs.Append("is-accept-mode", types.YLeaf{"IsAcceptMode", virtualRouter.IsAcceptMode})
virtualRouter.EntityData.Leafs.Append("preempt-delay-time", types.YLeaf{"PreemptDelayTime", virtualRouter.PreemptDelayTime})
virtualRouter.EntityData.Leafs.Append("configured-priority", types.YLeaf{"ConfiguredPriority", virtualRouter.ConfiguredPriority})
virtualRouter.EntityData.Leafs.Append("operational-priority", types.YLeaf{"OperationalPriority", virtualRouter.OperationalPriority})
virtualRouter.EntityData.Leafs.Append("priority-decrement", types.YLeaf{"PriorityDecrement", virtualRouter.PriorityDecrement})
virtualRouter.EntityData.Leafs.Append("tracked-interface-count", types.YLeaf{"TrackedInterfaceCount", virtualRouter.TrackedInterfaceCount})
virtualRouter.EntityData.Leafs.Append("tracked-interface-up-count", types.YLeaf{"TrackedInterfaceUpCount", virtualRouter.TrackedInterfaceUpCount})
virtualRouter.EntityData.Leafs.Append("tracked-item-count", types.YLeaf{"TrackedItemCount", virtualRouter.TrackedItemCount})
virtualRouter.EntityData.Leafs.Append("tracked-item-up-count", types.YLeaf{"TrackedItemUpCount", virtualRouter.TrackedItemUpCount})
virtualRouter.EntityData.Leafs.Append("time-in-current-state", types.YLeaf{"TimeInCurrentState", virtualRouter.TimeInCurrentState})
virtualRouter.EntityData.Leafs.Append("state-change-count", types.YLeaf{"StateChangeCount", virtualRouter.StateChangeCount})
virtualRouter.EntityData.Leafs.Append("time-vrouter-up", types.YLeaf{"TimeVrouterUp", virtualRouter.TimeVrouterUp})
virtualRouter.EntityData.Leafs.Append("master-count", types.YLeaf{"MasterCount", virtualRouter.MasterCount})
virtualRouter.EntityData.Leafs.Append("adverts-received-count", types.YLeaf{"AdvertsReceivedCount", virtualRouter.AdvertsReceivedCount})
virtualRouter.EntityData.Leafs.Append("advert-interval-error-count", types.YLeaf{"AdvertIntervalErrorCount", virtualRouter.AdvertIntervalErrorCount})
virtualRouter.EntityData.Leafs.Append("adverts-sent-count", types.YLeaf{"AdvertsSentCount", virtualRouter.AdvertsSentCount})
virtualRouter.EntityData.Leafs.Append("authentication-fail-count", types.YLeaf{"AuthenticationFailCount", virtualRouter.AuthenticationFailCount})
virtualRouter.EntityData.Leafs.Append("ttl-error-count", types.YLeaf{"TtlErrorCount", virtualRouter.TtlErrorCount})
virtualRouter.EntityData.Leafs.Append("priority-zero-received-count", types.YLeaf{"PriorityZeroReceivedCount", virtualRouter.PriorityZeroReceivedCount})
virtualRouter.EntityData.Leafs.Append("priority-zero-sent-count", types.YLeaf{"PriorityZeroSentCount", virtualRouter.PriorityZeroSentCount})
virtualRouter.EntityData.Leafs.Append("invalid-packet-count", types.YLeaf{"InvalidPacketCount", virtualRouter.InvalidPacketCount})
virtualRouter.EntityData.Leafs.Append("address-list-error-count", types.YLeaf{"AddressListErrorCount", virtualRouter.AddressListErrorCount})
virtualRouter.EntityData.Leafs.Append("invalid-auth-type-count", types.YLeaf{"InvalidAuthTypeCount", virtualRouter.InvalidAuthTypeCount})
virtualRouter.EntityData.Leafs.Append("auth-type-mismatch-count", types.YLeaf{"AuthTypeMismatchCount", virtualRouter.AuthTypeMismatchCount})
virtualRouter.EntityData.Leafs.Append("pkt-length-errors-count", types.YLeaf{"PktLengthErrorsCount", virtualRouter.PktLengthErrorsCount})
virtualRouter.EntityData.Leafs.Append("time-stats-discontinuity", types.YLeaf{"TimeStatsDiscontinuity", virtualRouter.TimeStatsDiscontinuity})