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_oper.go
2912 lines (2311 loc) · 142 KB
/
ipv4_hsrp_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-hsrp package operational data.
//
// This module contains definitions
// for the following management objects:
// hsrp: HSRP operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ipv4_hsrp_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_hsrp_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-hsrp-oper hsrp}", reflect.TypeOf(Hsrp{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-hsrp-oper:hsrp", reflect.TypeOf(Hsrp{}))
}
// HsrpVmacState represents Hsrp vmac state
type HsrpVmacState string
const (
// VMAC stored locally
HsrpVmacState_stored HsrpVmacState = "stored"
// VMAC reserved in mac table
HsrpVmacState_reserved HsrpVmacState = "reserved"
// VMAC active in mac table
HsrpVmacState_active HsrpVmacState = "active"
// VMAC not yet reserved in mac table
HsrpVmacState_reserving HsrpVmacState = "reserving"
)
// StandbyGrpState represents Standby grp state
type StandbyGrpState string
const (
// Initial
StandbyGrpState_state_initial StandbyGrpState = "state-initial"
// Learn
StandbyGrpState_state_learn StandbyGrpState = "state-learn"
// Listen
StandbyGrpState_state_listen StandbyGrpState = "state-listen"
// Speak
StandbyGrpState_state_speak StandbyGrpState = "state-speak"
// Standby
StandbyGrpState_state_standby StandbyGrpState = "state-standby"
// Active
StandbyGrpState_state_active StandbyGrpState = "state-active"
)
// HsrpStateChangeReason represents Hsrp state change reason
type HsrpStateChangeReason string
const (
// BFD session down
HsrpStateChangeReason_state_change_bfd_down HsrpStateChangeReason = "state-change-bfd-down"
// Virtual IP learnt
HsrpStateChangeReason_state_change_vip_learnt HsrpStateChangeReason = "state-change-vip-learnt"
// Interface IP update
HsrpStateChangeReason_state_change_interface_ip HsrpStateChangeReason = "state-change-interface-ip"
// Delay timer expired
HsrpStateChangeReason_state_change_delay_timer HsrpStateChangeReason = "state-change-delay-timer"
// Ready on startup
HsrpStateChangeReason_state_change_startup HsrpStateChangeReason = "state-change-startup"
// HSRP shut down
HsrpStateChangeReason_state_change_shutdown HsrpStateChangeReason = "state-change-shutdown"
// Interface Up update
HsrpStateChangeReason_state_change_interface_up HsrpStateChangeReason = "state-change-interface-up"
// Interface Down update
HsrpStateChangeReason_state_change_interface_down HsrpStateChangeReason = "state-change-interface-down"
// Active timer expired
HsrpStateChangeReason_state_change_active_timer HsrpStateChangeReason = "state-change-active-timer"
// Standby timer expired
HsrpStateChangeReason_state_change_standby_timer HsrpStateChangeReason = "state-change-standby-timer"
// Resign received
HsrpStateChangeReason_state_change_resign HsrpStateChangeReason = "state-change-resign"
// Coup received
HsrpStateChangeReason_state_change_coup HsrpStateChangeReason = "state-change-coup"
// Higher priority speak received
HsrpStateChangeReason_state_change_higher_priority_speak HsrpStateChangeReason = "state-change-higher-priority-speak"
// Higher priority standby received
HsrpStateChangeReason_state_change_higher_priority_standby HsrpStateChangeReason = "state-change-higher-priority-standby"
// Lower priority standby received
HsrpStateChangeReason_state_change_lower_priority_standby HsrpStateChangeReason = "state-change-lower-priority-standby"
// Higher priority active received
HsrpStateChangeReason_state_change_higher_priority_active HsrpStateChangeReason = "state-change-higher-priority-active"
// Lower priority active received
HsrpStateChangeReason_state_change_lower_priority_active HsrpStateChangeReason = "state-change-lower-priority-active"
// Virtual IP configured
HsrpStateChangeReason_state_change_virtual_ip_configured HsrpStateChangeReason = "state-change-virtual-ip-configured"
// Virtual IP lost
HsrpStateChangeReason_state_change_virtual_ip_lost HsrpStateChangeReason = "state-change-virtual-ip-lost"
// Recovered from checkpoint
HsrpStateChangeReason_state_change_recovered_from_checkpoint HsrpStateChangeReason = "state-change-recovered-from-checkpoint"
// MAC address update
HsrpStateChangeReason_state_change_mac_update HsrpStateChangeReason = "state-change-mac-update"
// Forwarder Admin state change
HsrpStateChangeReason_state_change_admin HsrpStateChangeReason = "state-change-admin"
// MGO parent change
HsrpStateChangeReason_state_change_parent HsrpStateChangeReason = "state-change-parent"
// Checkpoint update from Primary HSRP instance
HsrpStateChangeReason_state_change_chkpt_update HsrpStateChangeReason = "state-change-chkpt-update"
// Resync following ISSU primary event
HsrpStateChangeReason_state_change_issu_resync HsrpStateChangeReason = "state-change-issu-resync"
// Reset to learn parameters
HsrpStateChangeReason_state_change_reset_to_learn HsrpStateChangeReason = "state-change-reset-to-learn"
// Maximum reason in enumeration
HsrpStateChangeReason_state_change_max HsrpStateChangeReason = "state-change-max"
)
// HsrpBAf represents Hsrp b af
type HsrpBAf string
const (
// IPv4 Address Family
HsrpBAf_ipv4 HsrpBAf = "ipv4"
// IPv6 Address Family
HsrpBAf_ipv6 HsrpBAf = "ipv6"
// The number of supported address families
HsrpBAf_count HsrpBAf = "count"
)
// HsrpBfdSessionState represents Hsrp bfd session state
type HsrpBfdSessionState string
const (
// None
HsrpBfdSessionState_bfd_state_none HsrpBfdSessionState = "bfd-state-none"
// Inactive
HsrpBfdSessionState_bfd_state_inactive HsrpBfdSessionState = "bfd-state-inactive"
// Up
HsrpBfdSessionState_bfd_state_up HsrpBfdSessionState = "bfd-state-up"
// Down
HsrpBfdSessionState_bfd_state_down HsrpBfdSessionState = "bfd-state-down"
)
// Hsrp
// HSRP operational data
type Hsrp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv4 HSRP information.
Ipv4 Hsrp_Ipv4
// HSRP MGO session table.
MgoSessions Hsrp_MgoSessions
// IPv6 HSRP information.
Ipv6 Hsrp_Ipv6
// The table of HSRP BFD Sessions.
BfdSessions Hsrp_BfdSessions
// HSRP summary statistics.
Summary Hsrp_Summary
}
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-oper"
hsrp.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-hsrp-oper: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("ipv4", types.YChild{"Ipv4", &hsrp.Ipv4})
hsrp.EntityData.Children.Append("mgo-sessions", types.YChild{"MgoSessions", &hsrp.MgoSessions})
hsrp.EntityData.Children.Append("ipv6", types.YChild{"Ipv6", &hsrp.Ipv6})
hsrp.EntityData.Children.Append("bfd-sessions", types.YChild{"BfdSessions", &hsrp.BfdSessions})
hsrp.EntityData.Children.Append("summary", types.YChild{"Summary", &hsrp.Summary})
hsrp.EntityData.Leafs = types.NewOrderedMap()
hsrp.EntityData.YListKeys = []string {}
return &(hsrp.EntityData)
}
// Hsrp_Ipv4
// IPv4 HSRP information
type Hsrp_Ipv4 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The HSRP standby group table.
Groups Hsrp_Ipv4_Groups
// The HSRP tracked interfaces table.
TrackedInterfaces Hsrp_Ipv4_TrackedInterfaces
// The HSRP interface information table.
Interfaces Hsrp_Ipv4_Interfaces
}
func (ipv4 *Hsrp_Ipv4) GetEntityData() *types.CommonEntityData {
ipv4.EntityData.YFilter = ipv4.YFilter
ipv4.EntityData.YangName = "ipv4"
ipv4.EntityData.BundleName = "cisco_ios_xr"
ipv4.EntityData.ParentYangName = "hsrp"
ipv4.EntityData.SegmentPath = "ipv4"
ipv4.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/" + 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("groups", types.YChild{"Groups", &ipv4.Groups})
ipv4.EntityData.Children.Append("tracked-interfaces", types.YChild{"TrackedInterfaces", &ipv4.TrackedInterfaces})
ipv4.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &ipv4.Interfaces})
ipv4.EntityData.Leafs = types.NewOrderedMap()
ipv4.EntityData.YListKeys = []string {}
return &(ipv4.EntityData)
}
// Hsrp_Ipv4_Groups
// The HSRP standby group table
type Hsrp_Ipv4_Groups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An HSRP standby group. The type is slice of Hsrp_Ipv4_Groups_Group.
Group []*Hsrp_Ipv4_Groups_Group
}
func (groups *Hsrp_Ipv4_Groups) GetEntityData() *types.CommonEntityData {
groups.EntityData.YFilter = groups.YFilter
groups.EntityData.YangName = "groups"
groups.EntityData.BundleName = "cisco_ios_xr"
groups.EntityData.ParentYangName = "ipv4"
groups.EntityData.SegmentPath = "groups"
groups.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/" + 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_Ipv4_Groups_Group
// An HSRP standby group
type Hsrp_Ipv4_Groups_Group struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The interface name. The type is string with
// pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// This attribute is a key. The HSRP group number. The type is interface{}
// with range: 0..4294967295.
GroupNumber interface{}
// Authentication string. The type is string with length: 0..9.
AuthenticationString interface{}
// Virtual mac address. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
VirtualMacAddress interface{}
// HSRP Group number. The type is interface{} with range: 0..4294967295.
HsrpGroupNumber interface{}
// Address family. The type is HsrpBAf.
AddressFamily interface{}
// HSRP Protocol Version. The type is interface{} with range: 0..255.
Version 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 priority. The type is interface{} with range: 0..255.
ConfiguredPriority interface{}
// Preempt delay time in seconds. The type is interface{} with range:
// 0..4294967295. Units are second.
PreemptDelay interface{}
// Preempt time remaining in seconds. The type is interface{} with range:
// 0..4294967295. Units are second.
PreemptTimerSecs interface{}
// Hellotime in msecs. The type is interface{} with range: 0..4294967295.
// Units are millisecond.
HelloTime interface{}
// Holdtime in msecs. The type is interface{} with range: 0..4294967295. Units
// are millisecond.
HoldTime interface{}
// Learned hellotime in msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
LearnedHelloTime interface{}
// Learned holdtime in msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
LearnedHoldTime 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{}
// Configured Virtual 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}]+)?.
VirtualIpAddress 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{}
// Active router's 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}]+)?.
ActiveIpAddress interface{}
// Active router's 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}]+)?.
ActiveIpv6Address interface{}
// Active router's interface MAC address. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
ActiveMacAddress interface{}
// Standby router's 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}]+)?.
StandbyIpAddress interface{}
// Standby router's 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}]+)?.
StandbyIpv6Address interface{}
// Standby router's interface MAC address. The type is string with pattern:
// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
StandbyMacAddress interface{}
// HSRP router state. The type is StandbyGrpState.
HsrpRouterState interface{}
// Interface Name. The type is string with length: 0..64.
InterfaceNameXr interface{}
// IM Interface. The type is string with pattern: [a-zA-Z0-9._/-]+.
Interface interface{}
// Priority of the router. The type is interface{} with range: 0..255.
RouterPriority interface{}
// Priority of the Active router. The type is interface{} with range: 0..255.
ActivePriority interface{}
// Active timer running flag. The type is bool.
ActiveTimerFlag interface{}
// Active timer running time secs. The type is interface{} with range:
// 0..4294967295. Units are second.
ActiveTimerSecs interface{}
// Active timer running time msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
ActiveTimerMsecs interface{}
// Standby timer running flag. The type is bool.
StandbyTimerFlag interface{}
// Standby timer running time secs. The type is interface{} with range:
// 0..4294967295. Units are second.
StandbyTimerSecs interface{}
// Standby timer running time msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
StandbyTimerMsecs interface{}
// Hello timer running flag. The type is bool.
HelloTimerFlag interface{}
// Hello timer running time secs. The type is interface{} with range:
// 0..4294967295. Units are second.
HelloTimerSecs interface{}
// Hello timer running time msecs. The type is interface{} with range:
// 0..4294967295. Units are millisecond.
HelloTimerMsecs 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{}
// Time in current state secs. The type is interface{} with range:
// 0..4294967295. Units are second.
CurrentStateTimerSecs interface{}
// Number of state changes. The type is interface{} with range: 0..4294967295.
StateChangeCount interface{}
// Number of tracked interfaces. The type is interface{} with range:
// 0..4294967295.
TrackedInterfaceCount interface{}
// Number of tracked interfaces up. The type is interface{} with range:
// 0..4294967295.
TrackedInterfaceUpCount interface{}
// Preempt enabled. The type is bool.
PreemptEnabled interface{}
// Use configured timers. The type is bool.
UseConfiguredTimers interface{}
// Use configured virtual IP. The type is bool.
UseConfiguredVirtualIp interface{}
// Use burnt in MAC address configured. The type is bool.
UseBiaConfigured interface{}
// Non-default timers are configured. The type is bool.
ConfiguredTimers interface{}
// MAC address configured. The type is bool.
ConfiguredMacAddress interface{}
// HSRP redirects disabled. The type is bool.
RedirectsDisabled interface{}
// HSRP BFD fast failover. The type is bool.
BfdEnabled interface{}
// BFD Interface. The type is string with pattern: [a-zA-Z0-9._/-]+.
BfdInterface interface{}
// BFD Peer 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}]+)?.
BfdPeerIpAddress interface{}
// BFD Peer 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}]+)?.
BfdPeerIpv6Address interface{}
// BFD session state. The type is HsrpBfdSessionState.
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{}
// Virtual mac address state. The type is HsrpVmacState.
VirtualMacAddressState interface{}
// Secondary virtual IP 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}]+)?.
SecondaryAddress []interface{}
// Time last resign was sent.
ResignSentTime Hsrp_Ipv4_Groups_Group_ResignSentTime
// Time last resign was received.
ResignReceivedTime Hsrp_Ipv4_Groups_Group_ResignReceivedTime
// Time last coup was sent.
CoupSentTime Hsrp_Ipv4_Groups_Group_CoupSentTime
// Time last coup was received.
CoupReceivedTime Hsrp_Ipv4_Groups_Group_CoupReceivedTime
// HSRP Group statistics.
Statistics Hsrp_Ipv4_Groups_Group_Statistics
// Global virtual IPv6 addresses. The type is slice of
// Hsrp_Ipv4_Groups_Group_GlobalAddress.
GlobalAddress []*Hsrp_Ipv4_Groups_Group_GlobalAddress
// State change history. The type is slice of
// Hsrp_Ipv4_Groups_Group_StateChangeHistory.
StateChangeHistory []*Hsrp_Ipv4_Groups_Group_StateChangeHistory
}
func (group *Hsrp_Ipv4_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.InterfaceName, "interface-name") + types.AddKeyToken(group.GroupNumber, "group-number")
group.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/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("resign-sent-time", types.YChild{"ResignSentTime", &group.ResignSentTime})
group.EntityData.Children.Append("resign-received-time", types.YChild{"ResignReceivedTime", &group.ResignReceivedTime})
group.EntityData.Children.Append("coup-sent-time", types.YChild{"CoupSentTime", &group.CoupSentTime})
group.EntityData.Children.Append("coup-received-time", types.YChild{"CoupReceivedTime", &group.CoupReceivedTime})
group.EntityData.Children.Append("statistics", types.YChild{"Statistics", &group.Statistics})
group.EntityData.Children.Append("global-address", types.YChild{"GlobalAddress", nil})
for i := range group.GlobalAddress {
types.SetYListKey(group.GlobalAddress[i], i)
group.EntityData.Children.Append(types.GetSegmentPath(group.GlobalAddress[i]), types.YChild{"GlobalAddress", group.GlobalAddress[i]})
}
group.EntityData.Children.Append("state-change-history", types.YChild{"StateChangeHistory", nil})
for i := range group.StateChangeHistory {
types.SetYListKey(group.StateChangeHistory[i], i)
group.EntityData.Children.Append(types.GetSegmentPath(group.StateChangeHistory[i]), types.YChild{"StateChangeHistory", group.StateChangeHistory[i]})
}
group.EntityData.Leafs = types.NewOrderedMap()
group.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", group.InterfaceName})
group.EntityData.Leafs.Append("group-number", types.YLeaf{"GroupNumber", group.GroupNumber})
group.EntityData.Leafs.Append("authentication-string", types.YLeaf{"AuthenticationString", group.AuthenticationString})
group.EntityData.Leafs.Append("virtual-mac-address", types.YLeaf{"VirtualMacAddress", group.VirtualMacAddress})
group.EntityData.Leafs.Append("hsrp-group-number", types.YLeaf{"HsrpGroupNumber", group.HsrpGroupNumber})
group.EntityData.Leafs.Append("address-family", types.YLeaf{"AddressFamily", group.AddressFamily})
group.EntityData.Leafs.Append("version", types.YLeaf{"Version", group.Version})
group.EntityData.Leafs.Append("session-name", types.YLeaf{"SessionName", group.SessionName})
group.EntityData.Leafs.Append("slaves", types.YLeaf{"Slaves", group.Slaves})
group.EntityData.Leafs.Append("is-slave", types.YLeaf{"IsSlave", group.IsSlave})
group.EntityData.Leafs.Append("followed-session-name", types.YLeaf{"FollowedSessionName", group.FollowedSessionName})
group.EntityData.Leafs.Append("configured-priority", types.YLeaf{"ConfiguredPriority", group.ConfiguredPriority})
group.EntityData.Leafs.Append("preempt-delay", types.YLeaf{"PreemptDelay", group.PreemptDelay})
group.EntityData.Leafs.Append("preempt-timer-secs", types.YLeaf{"PreemptTimerSecs", group.PreemptTimerSecs})
group.EntityData.Leafs.Append("hello-time", types.YLeaf{"HelloTime", group.HelloTime})
group.EntityData.Leafs.Append("hold-time", types.YLeaf{"HoldTime", group.HoldTime})
group.EntityData.Leafs.Append("learned-hello-time", types.YLeaf{"LearnedHelloTime", group.LearnedHelloTime})
group.EntityData.Leafs.Append("learned-hold-time", types.YLeaf{"LearnedHoldTime", group.LearnedHoldTime})
group.EntityData.Leafs.Append("min-delay-time", types.YLeaf{"MinDelayTime", group.MinDelayTime})
group.EntityData.Leafs.Append("reload-delay-time", types.YLeaf{"ReloadDelayTime", group.ReloadDelayTime})
group.EntityData.Leafs.Append("virtual-ip-address", types.YLeaf{"VirtualIpAddress", group.VirtualIpAddress})
group.EntityData.Leafs.Append("virtual-linklocal-ipv6-address", types.YLeaf{"VirtualLinklocalIpv6Address", group.VirtualLinklocalIpv6Address})
group.EntityData.Leafs.Append("active-ip-address", types.YLeaf{"ActiveIpAddress", group.ActiveIpAddress})
group.EntityData.Leafs.Append("active-ipv6-address", types.YLeaf{"ActiveIpv6Address", group.ActiveIpv6Address})
group.EntityData.Leafs.Append("active-mac-address", types.YLeaf{"ActiveMacAddress", group.ActiveMacAddress})
group.EntityData.Leafs.Append("standby-ip-address", types.YLeaf{"StandbyIpAddress", group.StandbyIpAddress})
group.EntityData.Leafs.Append("standby-ipv6-address", types.YLeaf{"StandbyIpv6Address", group.StandbyIpv6Address})
group.EntityData.Leafs.Append("standby-mac-address", types.YLeaf{"StandbyMacAddress", group.StandbyMacAddress})
group.EntityData.Leafs.Append("hsrp-router-state", types.YLeaf{"HsrpRouterState", group.HsrpRouterState})
group.EntityData.Leafs.Append("interface-name-xr", types.YLeaf{"InterfaceNameXr", group.InterfaceNameXr})
group.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", group.Interface})
group.EntityData.Leafs.Append("router-priority", types.YLeaf{"RouterPriority", group.RouterPriority})
group.EntityData.Leafs.Append("active-priority", types.YLeaf{"ActivePriority", group.ActivePriority})
group.EntityData.Leafs.Append("active-timer-flag", types.YLeaf{"ActiveTimerFlag", group.ActiveTimerFlag})
group.EntityData.Leafs.Append("active-timer-secs", types.YLeaf{"ActiveTimerSecs", group.ActiveTimerSecs})
group.EntityData.Leafs.Append("active-timer-msecs", types.YLeaf{"ActiveTimerMsecs", group.ActiveTimerMsecs})
group.EntityData.Leafs.Append("standby-timer-flag", types.YLeaf{"StandbyTimerFlag", group.StandbyTimerFlag})
group.EntityData.Leafs.Append("standby-timer-secs", types.YLeaf{"StandbyTimerSecs", group.StandbyTimerSecs})
group.EntityData.Leafs.Append("standby-timer-msecs", types.YLeaf{"StandbyTimerMsecs", group.StandbyTimerMsecs})
group.EntityData.Leafs.Append("hello-timer-flag", types.YLeaf{"HelloTimerFlag", group.HelloTimerFlag})
group.EntityData.Leafs.Append("hello-timer-secs", types.YLeaf{"HelloTimerSecs", group.HelloTimerSecs})
group.EntityData.Leafs.Append("hello-timer-msecs", types.YLeaf{"HelloTimerMsecs", group.HelloTimerMsecs})
group.EntityData.Leafs.Append("delay-timer-flag", types.YLeaf{"DelayTimerFlag", group.DelayTimerFlag})
group.EntityData.Leafs.Append("delay-timer-secs", types.YLeaf{"DelayTimerSecs", group.DelayTimerSecs})
group.EntityData.Leafs.Append("delay-timer-msecs", types.YLeaf{"DelayTimerMsecs", group.DelayTimerMsecs})
group.EntityData.Leafs.Append("current-state-timer-secs", types.YLeaf{"CurrentStateTimerSecs", group.CurrentStateTimerSecs})
group.EntityData.Leafs.Append("state-change-count", types.YLeaf{"StateChangeCount", group.StateChangeCount})
group.EntityData.Leafs.Append("tracked-interface-count", types.YLeaf{"TrackedInterfaceCount", group.TrackedInterfaceCount})
group.EntityData.Leafs.Append("tracked-interface-up-count", types.YLeaf{"TrackedInterfaceUpCount", group.TrackedInterfaceUpCount})
group.EntityData.Leafs.Append("preempt-enabled", types.YLeaf{"PreemptEnabled", group.PreemptEnabled})
group.EntityData.Leafs.Append("use-configured-timers", types.YLeaf{"UseConfiguredTimers", group.UseConfiguredTimers})
group.EntityData.Leafs.Append("use-configured-virtual-ip", types.YLeaf{"UseConfiguredVirtualIp", group.UseConfiguredVirtualIp})
group.EntityData.Leafs.Append("use-bia-configured", types.YLeaf{"UseBiaConfigured", group.UseBiaConfigured})
group.EntityData.Leafs.Append("configured-timers", types.YLeaf{"ConfiguredTimers", group.ConfiguredTimers})
group.EntityData.Leafs.Append("configured-mac-address", types.YLeaf{"ConfiguredMacAddress", group.ConfiguredMacAddress})
group.EntityData.Leafs.Append("redirects-disabled", types.YLeaf{"RedirectsDisabled", group.RedirectsDisabled})
group.EntityData.Leafs.Append("bfd-enabled", types.YLeaf{"BfdEnabled", group.BfdEnabled})
group.EntityData.Leafs.Append("bfd-interface", types.YLeaf{"BfdInterface", group.BfdInterface})
group.EntityData.Leafs.Append("bfd-peer-ip-address", types.YLeaf{"BfdPeerIpAddress", group.BfdPeerIpAddress})
group.EntityData.Leafs.Append("bfd-peer-ipv6-address", types.YLeaf{"BfdPeerIpv6Address", group.BfdPeerIpv6Address})
group.EntityData.Leafs.Append("bfd-session-state", types.YLeaf{"BfdSessionState", group.BfdSessionState})
group.EntityData.Leafs.Append("bfd-interval", types.YLeaf{"BfdInterval", group.BfdInterval})
group.EntityData.Leafs.Append("bfd-multiplier", types.YLeaf{"BfdMultiplier", group.BfdMultiplier})
group.EntityData.Leafs.Append("virtual-mac-address-state", types.YLeaf{"VirtualMacAddressState", group.VirtualMacAddressState})
group.EntityData.Leafs.Append("secondary-address", types.YLeaf{"SecondaryAddress", group.SecondaryAddress})
group.EntityData.YListKeys = []string {"InterfaceName", "GroupNumber"}
return &(group.EntityData)
}
// Hsrp_Ipv4_Groups_Group_ResignSentTime
// Time last resign was sent
type Hsrp_Ipv4_Groups_Group_ResignSentTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Seconds. The type is interface{} with range: 0..4294967295. Units are
// second.
Seconds interface{}
// Nanoseconds. The type is interface{} with range: 0..4294967295. Units are
// nanosecond.
Nanoseconds interface{}
}
func (resignSentTime *Hsrp_Ipv4_Groups_Group_ResignSentTime) GetEntityData() *types.CommonEntityData {
resignSentTime.EntityData.YFilter = resignSentTime.YFilter
resignSentTime.EntityData.YangName = "resign-sent-time"
resignSentTime.EntityData.BundleName = "cisco_ios_xr"
resignSentTime.EntityData.ParentYangName = "group"
resignSentTime.EntityData.SegmentPath = "resign-sent-time"
resignSentTime.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + resignSentTime.EntityData.SegmentPath
resignSentTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
resignSentTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
resignSentTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
resignSentTime.EntityData.Children = types.NewOrderedMap()
resignSentTime.EntityData.Leafs = types.NewOrderedMap()
resignSentTime.EntityData.Leafs.Append("seconds", types.YLeaf{"Seconds", resignSentTime.Seconds})
resignSentTime.EntityData.Leafs.Append("nanoseconds", types.YLeaf{"Nanoseconds", resignSentTime.Nanoseconds})
resignSentTime.EntityData.YListKeys = []string {}
return &(resignSentTime.EntityData)
}
// Hsrp_Ipv4_Groups_Group_ResignReceivedTime
// Time last resign was received
type Hsrp_Ipv4_Groups_Group_ResignReceivedTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Seconds. The type is interface{} with range: 0..4294967295. Units are
// second.
Seconds interface{}
// Nanoseconds. The type is interface{} with range: 0..4294967295. Units are
// nanosecond.
Nanoseconds interface{}
}
func (resignReceivedTime *Hsrp_Ipv4_Groups_Group_ResignReceivedTime) GetEntityData() *types.CommonEntityData {
resignReceivedTime.EntityData.YFilter = resignReceivedTime.YFilter
resignReceivedTime.EntityData.YangName = "resign-received-time"
resignReceivedTime.EntityData.BundleName = "cisco_ios_xr"
resignReceivedTime.EntityData.ParentYangName = "group"
resignReceivedTime.EntityData.SegmentPath = "resign-received-time"
resignReceivedTime.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + resignReceivedTime.EntityData.SegmentPath
resignReceivedTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
resignReceivedTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
resignReceivedTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
resignReceivedTime.EntityData.Children = types.NewOrderedMap()
resignReceivedTime.EntityData.Leafs = types.NewOrderedMap()
resignReceivedTime.EntityData.Leafs.Append("seconds", types.YLeaf{"Seconds", resignReceivedTime.Seconds})
resignReceivedTime.EntityData.Leafs.Append("nanoseconds", types.YLeaf{"Nanoseconds", resignReceivedTime.Nanoseconds})
resignReceivedTime.EntityData.YListKeys = []string {}
return &(resignReceivedTime.EntityData)
}
// Hsrp_Ipv4_Groups_Group_CoupSentTime
// Time last coup was sent
type Hsrp_Ipv4_Groups_Group_CoupSentTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Seconds. The type is interface{} with range: 0..4294967295. Units are
// second.
Seconds interface{}
// Nanoseconds. The type is interface{} with range: 0..4294967295. Units are
// nanosecond.
Nanoseconds interface{}
}
func (coupSentTime *Hsrp_Ipv4_Groups_Group_CoupSentTime) GetEntityData() *types.CommonEntityData {
coupSentTime.EntityData.YFilter = coupSentTime.YFilter
coupSentTime.EntityData.YangName = "coup-sent-time"
coupSentTime.EntityData.BundleName = "cisco_ios_xr"
coupSentTime.EntityData.ParentYangName = "group"
coupSentTime.EntityData.SegmentPath = "coup-sent-time"
coupSentTime.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + coupSentTime.EntityData.SegmentPath
coupSentTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
coupSentTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
coupSentTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
coupSentTime.EntityData.Children = types.NewOrderedMap()
coupSentTime.EntityData.Leafs = types.NewOrderedMap()
coupSentTime.EntityData.Leafs.Append("seconds", types.YLeaf{"Seconds", coupSentTime.Seconds})
coupSentTime.EntityData.Leafs.Append("nanoseconds", types.YLeaf{"Nanoseconds", coupSentTime.Nanoseconds})
coupSentTime.EntityData.YListKeys = []string {}
return &(coupSentTime.EntityData)
}
// Hsrp_Ipv4_Groups_Group_CoupReceivedTime
// Time last coup was received
type Hsrp_Ipv4_Groups_Group_CoupReceivedTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Seconds. The type is interface{} with range: 0..4294967295. Units are
// second.
Seconds interface{}
// Nanoseconds. The type is interface{} with range: 0..4294967295. Units are
// nanosecond.
Nanoseconds interface{}
}
func (coupReceivedTime *Hsrp_Ipv4_Groups_Group_CoupReceivedTime) GetEntityData() *types.CommonEntityData {
coupReceivedTime.EntityData.YFilter = coupReceivedTime.YFilter
coupReceivedTime.EntityData.YangName = "coup-received-time"
coupReceivedTime.EntityData.BundleName = "cisco_ios_xr"
coupReceivedTime.EntityData.ParentYangName = "group"
coupReceivedTime.EntityData.SegmentPath = "coup-received-time"
coupReceivedTime.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + coupReceivedTime.EntityData.SegmentPath
coupReceivedTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
coupReceivedTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
coupReceivedTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
coupReceivedTime.EntityData.Children = types.NewOrderedMap()
coupReceivedTime.EntityData.Leafs = types.NewOrderedMap()
coupReceivedTime.EntityData.Leafs.Append("seconds", types.YLeaf{"Seconds", coupReceivedTime.Seconds})
coupReceivedTime.EntityData.Leafs.Append("nanoseconds", types.YLeaf{"Nanoseconds", coupReceivedTime.Nanoseconds})
coupReceivedTime.EntityData.YListKeys = []string {}
return &(coupReceivedTime.EntityData)
}
// Hsrp_Ipv4_Groups_Group_Statistics
// HSRP Group statistics
type Hsrp_Ipv4_Groups_Group_Statistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Number of transitions to Active State. The type is interface{} with range:
// 0..4294967295.
ActiveTransitions interface{}
// Number of transitions to Standby State. The type is interface{} with range:
// 0..4294967295.
StandbyTransitions interface{}
// Number of transitions to Speak State. The type is interface{} with range:
// 0..4294967295.
SpeakTransitions interface{}
// Number of transitions to Listen State. The type is interface{} with range:
// 0..4294967295.
ListenTransitions interface{}
// Number of transitions to Learn State. The type is interface{} with range:
// 0..4294967295.
LearnTransitions interface{}
// Number of transitions to Init State. The type is interface{} with range:
// 0..4294967295.
InitTransitions interface{}
// Number of Hello Packets sent (NB: Bundles only). The type is interface{}
// with range: 0..4294967295.
HelloPacketsSent interface{}
// Number of Resign Packets sent. The type is interface{} with range:
// 0..4294967295.
ResignPacketsSent interface{}
// Number of Coup Packets sent. The type is interface{} with range:
// 0..4294967295.
CoupPacketsSent interface{}
// Number of Hello Packets received. The type is interface{} with range:
// 0..4294967295.
HelloPacketsReceived interface{}
// Number of Resign Packets received. The type is interface{} with range:
// 0..4294967295.
ResignPacketsReceived interface{}
// Number of Coup Packets received. The type is interface{} with range:
// 0..4294967295.
CoupPacketsReceived interface{}
// Number of Packets received that failed authentication. The type is
// interface{} with range: 0..4294967295.
AuthFailReceived interface{}
// Number of packets received with invalid Hello Time value. The type is
// interface{} with range: 0..4294967295.
InvalidTimerReceived interface{}
// Number of packets received with mismatching virtual IP address. The type is
// interface{} with range: 0..4294967295.
MismatchVirtualIpAddressReceived interface{}
}
func (statistics *Hsrp_Ipv4_Groups_Group_Statistics) GetEntityData() *types.CommonEntityData {
statistics.EntityData.YFilter = statistics.YFilter
statistics.EntityData.YangName = "statistics"
statistics.EntityData.BundleName = "cisco_ios_xr"
statistics.EntityData.ParentYangName = "group"
statistics.EntityData.SegmentPath = "statistics"
statistics.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + statistics.EntityData.SegmentPath
statistics.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
statistics.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
statistics.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
statistics.EntityData.Children = types.NewOrderedMap()
statistics.EntityData.Leafs = types.NewOrderedMap()
statistics.EntityData.Leafs.Append("active-transitions", types.YLeaf{"ActiveTransitions", statistics.ActiveTransitions})
statistics.EntityData.Leafs.Append("standby-transitions", types.YLeaf{"StandbyTransitions", statistics.StandbyTransitions})
statistics.EntityData.Leafs.Append("speak-transitions", types.YLeaf{"SpeakTransitions", statistics.SpeakTransitions})
statistics.EntityData.Leafs.Append("listen-transitions", types.YLeaf{"ListenTransitions", statistics.ListenTransitions})
statistics.EntityData.Leafs.Append("learn-transitions", types.YLeaf{"LearnTransitions", statistics.LearnTransitions})
statistics.EntityData.Leafs.Append("init-transitions", types.YLeaf{"InitTransitions", statistics.InitTransitions})
statistics.EntityData.Leafs.Append("hello-packets-sent", types.YLeaf{"HelloPacketsSent", statistics.HelloPacketsSent})
statistics.EntityData.Leafs.Append("resign-packets-sent", types.YLeaf{"ResignPacketsSent", statistics.ResignPacketsSent})
statistics.EntityData.Leafs.Append("coup-packets-sent", types.YLeaf{"CoupPacketsSent", statistics.CoupPacketsSent})
statistics.EntityData.Leafs.Append("hello-packets-received", types.YLeaf{"HelloPacketsReceived", statistics.HelloPacketsReceived})
statistics.EntityData.Leafs.Append("resign-packets-received", types.YLeaf{"ResignPacketsReceived", statistics.ResignPacketsReceived})
statistics.EntityData.Leafs.Append("coup-packets-received", types.YLeaf{"CoupPacketsReceived", statistics.CoupPacketsReceived})
statistics.EntityData.Leafs.Append("auth-fail-received", types.YLeaf{"AuthFailReceived", statistics.AuthFailReceived})
statistics.EntityData.Leafs.Append("invalid-timer-received", types.YLeaf{"InvalidTimerReceived", statistics.InvalidTimerReceived})
statistics.EntityData.Leafs.Append("mismatch-virtual-ip-address-received", types.YLeaf{"MismatchVirtualIpAddressReceived", statistics.MismatchVirtualIpAddressReceived})
statistics.EntityData.YListKeys = []string {}
return &(statistics.EntityData)
}
// Hsrp_Ipv4_Groups_Group_GlobalAddress
// Global virtual IPv6 addresses
type Hsrp_Ipv4_Groups_Group_GlobalAddress struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// IPV6Address. 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}]+)?.
Ipv6Address interface{}
}
func (globalAddress *Hsrp_Ipv4_Groups_Group_GlobalAddress) GetEntityData() *types.CommonEntityData {
globalAddress.EntityData.YFilter = globalAddress.YFilter
globalAddress.EntityData.YangName = "global-address"
globalAddress.EntityData.BundleName = "cisco_ios_xr"
globalAddress.EntityData.ParentYangName = "group"
globalAddress.EntityData.SegmentPath = "global-address" + types.AddNoKeyToken(globalAddress)
globalAddress.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + globalAddress.EntityData.SegmentPath
globalAddress.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
globalAddress.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
globalAddress.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
globalAddress.EntityData.Children = types.NewOrderedMap()
globalAddress.EntityData.Leafs = types.NewOrderedMap()
globalAddress.EntityData.Leafs.Append("ipv6-address", types.YLeaf{"Ipv6Address", globalAddress.Ipv6Address})
globalAddress.EntityData.YListKeys = []string {}
return &(globalAddress.EntityData)
}
// Hsrp_Ipv4_Groups_Group_StateChangeHistory
// State change history
type Hsrp_Ipv4_Groups_Group_StateChangeHistory struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Old State. The type is StandbyGrpState.
OldState interface{}
// New State. The type is StandbyGrpState.
NewState interface{}
// Reason for state change. The type is HsrpStateChangeReason.
Reason interface{}
// Time of state change.
Time Hsrp_Ipv4_Groups_Group_StateChangeHistory_Time
}
func (stateChangeHistory *Hsrp_Ipv4_Groups_Group_StateChangeHistory) GetEntityData() *types.CommonEntityData {
stateChangeHistory.EntityData.YFilter = stateChangeHistory.YFilter
stateChangeHistory.EntityData.YangName = "state-change-history"
stateChangeHistory.EntityData.BundleName = "cisco_ios_xr"
stateChangeHistory.EntityData.ParentYangName = "group"
stateChangeHistory.EntityData.SegmentPath = "state-change-history" + types.AddNoKeyToken(stateChangeHistory)
stateChangeHistory.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-hsrp-oper:hsrp/ipv4/groups/group/" + stateChangeHistory.EntityData.SegmentPath
stateChangeHistory.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
stateChangeHistory.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
stateChangeHistory.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
stateChangeHistory.EntityData.Children = types.NewOrderedMap()
stateChangeHistory.EntityData.Children.Append("time", types.YChild{"Time", &stateChangeHistory.Time})
stateChangeHistory.EntityData.Leafs = types.NewOrderedMap()
stateChangeHistory.EntityData.Leafs.Append("old-state", types.YLeaf{"OldState", stateChangeHistory.OldState})
stateChangeHistory.EntityData.Leafs.Append("new-state", types.YLeaf{"NewState", stateChangeHistory.NewState})
stateChangeHistory.EntityData.Leafs.Append("reason", types.YLeaf{"Reason", stateChangeHistory.Reason})
stateChangeHistory.EntityData.YListKeys = []string {}
return &(stateChangeHistory.EntityData)
}
// Hsrp_Ipv4_Groups_Group_StateChangeHistory_Time
// Time of state change
type Hsrp_Ipv4_Groups_Group_StateChangeHistory_Time struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Seconds. The type is interface{} with range: 0..4294967295. Units are
// second.
Seconds interface{}
// Nanoseconds. The type is interface{} with range: 0..4294967295. Units are
// nanosecond.
Nanoseconds interface{}
}
func (time *Hsrp_Ipv4_Groups_Group_StateChangeHistory_Time) GetEntityData() *types.CommonEntityData {
time.EntityData.YFilter = time.YFilter
time.EntityData.YangName = "time"
time.EntityData.BundleName = "cisco_ios_xr"
time.EntityData.ParentYangName = "state-change-history"