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
/
subscriber_srg_oper.go
1534 lines (1207 loc) · 73 KB
/
subscriber_srg_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 subscriber-srg package operational data.
//
// This module contains definitions
// for the following management objects:
// subscriber-redundancy-manager: Subscriber Redundancy Manager
// information
// subscriber-redundancy-agent: subscriber redundancy agent
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package subscriber_srg_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 subscriber_srg_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-subscriber-srg-oper subscriber-redundancy-manager}", reflect.TypeOf(SubscriberRedundancyManager{}))
ydk.RegisterEntity("Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager", reflect.TypeOf(SubscriberRedundancyManager{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-subscriber-srg-oper subscriber-redundancy-agent}", reflect.TypeOf(SubscriberRedundancyAgent{}))
ydk.RegisterEntity("Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent", reflect.TypeOf(SubscriberRedundancyAgent{}))
}
// SrgShowImRole represents SRG Interface Management Role
type SrgShowImRole string
const (
// Not Determined
SrgShowImRole_none SrgShowImRole = "none"
// Master Role
SrgShowImRole_master SrgShowImRole = "master"
// Slave Role
SrgShowImRole_slave SrgShowImRole = "slave"
)
// SrgShowSessionError represents SRG Session Error Operation
type SrgShowSessionError string
const (
// Invalid Error
SrgShowSessionError_none SrgShowSessionError = "none"
// Hard Error
SrgShowSessionError_hard SrgShowSessionError = "hard"
// Soft Error
SrgShowSessionError_soft SrgShowSessionError = "soft"
)
// SrgShowSoReason represents Subscriber Redundancy Switchover Reason
type SrgShowSoReason string
const (
// SwitchOver for Internal Reason
SrgShowSoReason_internal SrgShowSoReason = "internal"
// SwitchOver for Admin
SrgShowSoReason_admin SrgShowSoReason = "admin"
// SwitchOver for Peer UP
SrgShowSoReason_peer_up SrgShowSoReason = "peer-up"
// SwitchOver for Peer Down
SrgShowSoReason_peer_down SrgShowSoReason = "peer-down"
// SwitchOver for Object Tracking status change
SrgShowSoReason_object_tracking_status_change SrgShowSoReason = "object-tracking-status-change"
// Unknown Switchover Reason
SrgShowSoReason_srg_show_so_reason_max SrgShowSoReason = "srg-show-so-reason-max"
)
// SrgShowSessionOperation represents SRG Session Operation
type SrgShowSessionOperation string
const (
// No Operation
SrgShowSessionOperation_none SrgShowSessionOperation = "none"
// SRG Session Update Operation
SrgShowSessionOperation_update SrgShowSessionOperation = "update"
// SRG Session Delete Operation
SrgShowSessionOperation_delete_ SrgShowSessionOperation = "delete"
// SRG Session In Sync
SrgShowSessionOperation_in_sync SrgShowSessionOperation = "in-sync"
)
// SrgPeerStatus represents SRG Peer Status
type SrgPeerStatus string
const (
// Peer not configured
SrgPeerStatus_not_configured SrgPeerStatus = "not-configured"
// Peer initialization
SrgPeerStatus_initialize SrgPeerStatus = "initialize"
// Peer retry pending
SrgPeerStatus_retry SrgPeerStatus = "retry"
// Connection in Progress
SrgPeerStatus_connect SrgPeerStatus = "connect"
// Listening in Progress
SrgPeerStatus_listen SrgPeerStatus = "listen"
// Awaiting Registration from Peer
SrgPeerStatus_registration SrgPeerStatus = "registration"
// Peer cleanup in progress
SrgPeerStatus_cleanup SrgPeerStatus = "cleanup"
// Peer Connected
SrgPeerStatus_connected SrgPeerStatus = "connected"
// Peer Established
SrgPeerStatus_established SrgPeerStatus = "established"
)
// SrgShowRole represents SRG Role
type SrgShowRole string
const (
// Not Configured
SrgShowRole_none SrgShowRole = "none"
// Master Role
SrgShowRole_master SrgShowRole = "master"
// Slave Role
SrgShowRole_slave SrgShowRole = "slave"
)
// SrgShowSlaveMode represents SRG Slave Mode
type SrgShowSlaveMode string
const (
// Not Configured
SrgShowSlaveMode_none SrgShowSlaveMode = "none"
// Warm Modem
SrgShowSlaveMode_warm SrgShowSlaveMode = "warm"
// Hot Mode
SrgShowSlaveMode_hot SrgShowSlaveMode = "hot"
)
// SrgShowComp represents SRG Components
type SrgShowComp string
const (
// SRG Agent
SrgShowComp_srga SrgShowComp = "srga"
// DHCPv4
SrgShowComp_dhcpv4 SrgShowComp = "dhcpv4"
// DHCPv6
SrgShowComp_dhcpv6 SrgShowComp = "dhcpv6"
// PPPoE
SrgShowComp_pppoe SrgShowComp = "pppoe"
// PPP
SrgShowComp_ppp SrgShowComp = "ppp"
// L2TP
SrgShowComp_l2tp SrgShowComp = "l2tp"
// iEdge
SrgShowComp_iedge SrgShowComp = "iedge"
)
// SubscriberRedundancyManager
// Subscriber Redundancy Manager information
type SubscriberRedundancyManager struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Subscriber Redundancy Manager group table.
Groups SubscriberRedundancyManager_Groups
// Subscriber redundancy manager summary.
Summary SubscriberRedundancyManager_Summary
// Subscriber Redundancy Manager interface table.
Interfaces SubscriberRedundancyManager_Interfaces
}
func (subscriberRedundancyManager *SubscriberRedundancyManager) GetEntityData() *types.CommonEntityData {
subscriberRedundancyManager.EntityData.YFilter = subscriberRedundancyManager.YFilter
subscriberRedundancyManager.EntityData.YangName = "subscriber-redundancy-manager"
subscriberRedundancyManager.EntityData.BundleName = "cisco_ios_xr"
subscriberRedundancyManager.EntityData.ParentYangName = "Cisco-IOS-XR-subscriber-srg-oper"
subscriberRedundancyManager.EntityData.SegmentPath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager"
subscriberRedundancyManager.EntityData.AbsolutePath = subscriberRedundancyManager.EntityData.SegmentPath
subscriberRedundancyManager.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
subscriberRedundancyManager.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
subscriberRedundancyManager.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
subscriberRedundancyManager.EntityData.Children = types.NewOrderedMap()
subscriberRedundancyManager.EntityData.Children.Append("groups", types.YChild{"Groups", &subscriberRedundancyManager.Groups})
subscriberRedundancyManager.EntityData.Children.Append("summary", types.YChild{"Summary", &subscriberRedundancyManager.Summary})
subscriberRedundancyManager.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &subscriberRedundancyManager.Interfaces})
subscriberRedundancyManager.EntityData.Leafs = types.NewOrderedMap()
subscriberRedundancyManager.EntityData.YListKeys = []string {}
return &(subscriberRedundancyManager.EntityData)
}
// SubscriberRedundancyManager_Groups
// Subscriber Redundancy Manager group table
type SubscriberRedundancyManager_Groups struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Subscriber redundancy manager group. The type is slice of
// SubscriberRedundancyManager_Groups_Group.
Group []*SubscriberRedundancyManager_Groups_Group
}
func (groups *SubscriberRedundancyManager_Groups) GetEntityData() *types.CommonEntityData {
groups.EntityData.YFilter = groups.YFilter
groups.EntityData.YangName = "groups"
groups.EntityData.BundleName = "cisco_ios_xr"
groups.EntityData.ParentYangName = "subscriber-redundancy-manager"
groups.EntityData.SegmentPath = "groups"
groups.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager/" + 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)
}
// SubscriberRedundancyManager_Groups_Group
// Subscriber redundancy manager group
type SubscriberRedundancyManager_Groups_Group struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Group. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
Group interface{}
// Group ID. The type is interface{} with range: 0..4294967295.
GroupId interface{}
// Group Description. The type is string.
Description interface{}
// Disabled by Config. The type is bool.
Disabled interface{}
// SRG Role. The type is SrgShowImRole.
Role interface{}
// Peer 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}]+)?.
PeerIpv4Address interface{}
// 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}]+)?.
PeerIpv6Address interface{}
// Interface Count. The type is interface{} with range: 0..4294967295.
InterfaceCount interface{}
// Preferred Role. The type is SrgShowRole.
PreferredRole interface{}
// Slave Mode. The type is SrgShowSlaveMode.
SlaveMode interface{}
// Object Tracking Status (Enabled/Disabled). The type is bool.
ObjectTrackingStatus interface{}
// Virtual MAC Address. The type is string.
VirtualMacAddress interface{}
// Virtual MAC Address Disable. The type is bool.
VirtualMacAddressDisable interface{}
// Node Information. The type is string.
NodeName interface{}
}
func (group *SubscriberRedundancyManager_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.Group, "group")
group.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager/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.Leafs = types.NewOrderedMap()
group.EntityData.Leafs.Append("group", types.YLeaf{"Group", group.Group})
group.EntityData.Leafs.Append("group-id", types.YLeaf{"GroupId", group.GroupId})
group.EntityData.Leafs.Append("description", types.YLeaf{"Description", group.Description})
group.EntityData.Leafs.Append("disabled", types.YLeaf{"Disabled", group.Disabled})
group.EntityData.Leafs.Append("role", types.YLeaf{"Role", group.Role})
group.EntityData.Leafs.Append("peer-ipv4-address", types.YLeaf{"PeerIpv4Address", group.PeerIpv4Address})
group.EntityData.Leafs.Append("peer-ipv6-address", types.YLeaf{"PeerIpv6Address", group.PeerIpv6Address})
group.EntityData.Leafs.Append("interface-count", types.YLeaf{"InterfaceCount", group.InterfaceCount})
group.EntityData.Leafs.Append("preferred-role", types.YLeaf{"PreferredRole", group.PreferredRole})
group.EntityData.Leafs.Append("slave-mode", types.YLeaf{"SlaveMode", group.SlaveMode})
group.EntityData.Leafs.Append("object-tracking-status", types.YLeaf{"ObjectTrackingStatus", group.ObjectTrackingStatus})
group.EntityData.Leafs.Append("virtual-mac-address", types.YLeaf{"VirtualMacAddress", group.VirtualMacAddress})
group.EntityData.Leafs.Append("virtual-mac-address-disable", types.YLeaf{"VirtualMacAddressDisable", group.VirtualMacAddressDisable})
group.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", group.NodeName})
group.EntityData.YListKeys = []string {"Group"}
return &(group.EntityData)
}
// SubscriberRedundancyManager_Summary
// Subscriber redundancy manager summary
type SubscriberRedundancyManager_Summary struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Disabled by Config. The type is bool.
Disabled interface{}
// Process Active State. The type is bool.
ActiveState interface{}
// Preferred Role. The type is SrgShowRole.
PreferredRole interface{}
// Slave Mode. The type is SrgShowSlaveMode.
SlaveMode interface{}
// Switch Over Hold Time. The type is interface{} with range: 0..4294967295.
HoldTimer interface{}
// Sync Time. The type is interface{} with range: 0..4294967295.
SyncTime interface{}
// Source Interface Name. The type is string.
SourceInterfaceName interface{}
// VRF Name. The type is string.
VrfName interface{}
// Source Interface 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}]+)?.
SourceInterfaceIpv4Address interface{}
// Source Interface 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}]+)?.
SourceInterfaceIpv6Address interface{}
// No. of Configured Groups. The type is interface{} with range:
// 0..4294967295.
GroupCount interface{}
// No. of Disabled Groups by Config. The type is interface{} with range:
// 0..4294967295.
DisabledGroupCount interface{}
// No. of Master/Active Groups. The type is interface{} with range:
// 0..4294967295.
MasterGroupCount interface{}
// No. of Slave Groups. The type is interface{} with range: 0..4294967295.
SlaveGroupCount interface{}
// No. of Configured Interfaces. The type is interface{} with range:
// 0..4294967295.
InterfaceCount interface{}
// No. of Master/Active Interfaces. The type is interface{} with range:
// 0..4294967295.
MasterInterfaceCount interface{}
// No. of Slave Interfaces. The type is interface{} with range: 0..4294967295.
SlaveInterfaceCount interface{}
}
func (summary *SubscriberRedundancyManager_Summary) GetEntityData() *types.CommonEntityData {
summary.EntityData.YFilter = summary.YFilter
summary.EntityData.YangName = "summary"
summary.EntityData.BundleName = "cisco_ios_xr"
summary.EntityData.ParentYangName = "subscriber-redundancy-manager"
summary.EntityData.SegmentPath = "summary"
summary.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager/" + 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("disabled", types.YLeaf{"Disabled", summary.Disabled})
summary.EntityData.Leafs.Append("active-state", types.YLeaf{"ActiveState", summary.ActiveState})
summary.EntityData.Leafs.Append("preferred-role", types.YLeaf{"PreferredRole", summary.PreferredRole})
summary.EntityData.Leafs.Append("slave-mode", types.YLeaf{"SlaveMode", summary.SlaveMode})
summary.EntityData.Leafs.Append("hold-timer", types.YLeaf{"HoldTimer", summary.HoldTimer})
summary.EntityData.Leafs.Append("sync-time", types.YLeaf{"SyncTime", summary.SyncTime})
summary.EntityData.Leafs.Append("source-interface-name", types.YLeaf{"SourceInterfaceName", summary.SourceInterfaceName})
summary.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", summary.VrfName})
summary.EntityData.Leafs.Append("source-interface-ipv4-address", types.YLeaf{"SourceInterfaceIpv4Address", summary.SourceInterfaceIpv4Address})
summary.EntityData.Leafs.Append("source-interface-ipv6-address", types.YLeaf{"SourceInterfaceIpv6Address", summary.SourceInterfaceIpv6Address})
summary.EntityData.Leafs.Append("group-count", types.YLeaf{"GroupCount", summary.GroupCount})
summary.EntityData.Leafs.Append("disabled-group-count", types.YLeaf{"DisabledGroupCount", summary.DisabledGroupCount})
summary.EntityData.Leafs.Append("master-group-count", types.YLeaf{"MasterGroupCount", summary.MasterGroupCount})
summary.EntityData.Leafs.Append("slave-group-count", types.YLeaf{"SlaveGroupCount", summary.SlaveGroupCount})
summary.EntityData.Leafs.Append("interface-count", types.YLeaf{"InterfaceCount", summary.InterfaceCount})
summary.EntityData.Leafs.Append("master-interface-count", types.YLeaf{"MasterInterfaceCount", summary.MasterInterfaceCount})
summary.EntityData.Leafs.Append("slave-interface-count", types.YLeaf{"SlaveInterfaceCount", summary.SlaveInterfaceCount})
summary.EntityData.YListKeys = []string {}
return &(summary.EntityData)
}
// SubscriberRedundancyManager_Interfaces
// Subscriber Redundancy Manager interface table
type SubscriberRedundancyManager_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Subscriber redundancy manager interface. The type is slice of
// SubscriberRedundancyManager_Interfaces_Interface.
Interface []*SubscriberRedundancyManager_Interfaces_Interface
}
func (interfaces *SubscriberRedundancyManager_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "subscriber-redundancy-manager"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager/" + interfaces.EntityData.SegmentPath
interfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaces.EntityData.Children = types.NewOrderedMap()
interfaces.EntityData.Children.Append("interface", types.YChild{"Interface", nil})
for i := range interfaces.Interface {
interfaces.EntityData.Children.Append(types.GetSegmentPath(interfaces.Interface[i]), types.YChild{"Interface", interfaces.Interface[i]})
}
interfaces.EntityData.Leafs = types.NewOrderedMap()
interfaces.EntityData.YListKeys = []string {}
return &(interfaces.EntityData)
}
// SubscriberRedundancyManager_Interfaces_Interface
// Subscriber redundancy manager interface
type SubscriberRedundancyManager_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
Interface interface{}
// Interface Name. The type is string.
InterfaceName interface{}
// Interface Mapping ID. The type is interface{} with range: 0..4294967295.
InterfaceMappingId interface{}
// Forward Referenced. The type is bool.
ForwardReferenced interface{}
// Group ID. The type is interface{} with range: 0..4294967295.
GroupId interface{}
// SRG Role. The type is SrgShowImRole.
Role interface{}
}
func (self *SubscriberRedundancyManager_Interfaces_Interface) GetEntityData() *types.CommonEntityData {
self.EntityData.YFilter = self.YFilter
self.EntityData.YangName = "interface"
self.EntityData.BundleName = "cisco_ios_xr"
self.EntityData.ParentYangName = "interfaces"
self.EntityData.SegmentPath = "interface" + types.AddKeyToken(self.Interface, "interface")
self.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-manager/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", self.Interface})
self.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", self.InterfaceName})
self.EntityData.Leafs.Append("interface-mapping-id", types.YLeaf{"InterfaceMappingId", self.InterfaceMappingId})
self.EntityData.Leafs.Append("forward-referenced", types.YLeaf{"ForwardReferenced", self.ForwardReferenced})
self.EntityData.Leafs.Append("group-id", types.YLeaf{"GroupId", self.GroupId})
self.EntityData.Leafs.Append("role", types.YLeaf{"Role", self.Role})
self.EntityData.YListKeys = []string {"Interface"}
return &(self.EntityData)
}
// SubscriberRedundancyAgent
// subscriber redundancy agent
type SubscriberRedundancyAgent struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of nodes for which subscriber data is collected.
Nodes SubscriberRedundancyAgent_Nodes
}
func (subscriberRedundancyAgent *SubscriberRedundancyAgent) GetEntityData() *types.CommonEntityData {
subscriberRedundancyAgent.EntityData.YFilter = subscriberRedundancyAgent.YFilter
subscriberRedundancyAgent.EntityData.YangName = "subscriber-redundancy-agent"
subscriberRedundancyAgent.EntityData.BundleName = "cisco_ios_xr"
subscriberRedundancyAgent.EntityData.ParentYangName = "Cisco-IOS-XR-subscriber-srg-oper"
subscriberRedundancyAgent.EntityData.SegmentPath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent"
subscriberRedundancyAgent.EntityData.AbsolutePath = subscriberRedundancyAgent.EntityData.SegmentPath
subscriberRedundancyAgent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
subscriberRedundancyAgent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
subscriberRedundancyAgent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
subscriberRedundancyAgent.EntityData.Children = types.NewOrderedMap()
subscriberRedundancyAgent.EntityData.Children.Append("nodes", types.YChild{"Nodes", &subscriberRedundancyAgent.Nodes})
subscriberRedundancyAgent.EntityData.Leafs = types.NewOrderedMap()
subscriberRedundancyAgent.EntityData.YListKeys = []string {}
return &(subscriberRedundancyAgent.EntityData)
}
// SubscriberRedundancyAgent_Nodes
// List of nodes for which subscriber data is
// collected
type SubscriberRedundancyAgent_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Subscriber data for a particular node. The type is slice of
// SubscriberRedundancyAgent_Nodes_Node.
Node []*SubscriberRedundancyAgent_Nodes_Node
}
func (nodes *SubscriberRedundancyAgent_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "subscriber-redundancy-agent"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node
// Subscriber data for a particular node
type SubscriberRedundancyAgent_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node name. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Data for particular subscriber group session.
GroupIdXr SubscriberRedundancyAgent_Nodes_Node_GroupIdXr
// List of interfaces.
Interfaces SubscriberRedundancyAgent_Nodes_Node_Interfaces
// Subscriber data for a particular node.
GroupSummaries SubscriberRedundancyAgent_Nodes_Node_GroupSummaries
// Data for particular subscriber group .
GroupIds SubscriberRedundancyAgent_Nodes_Node_GroupIds
}
func (node *SubscriberRedundancyAgent_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Children.Append("group-id-xr", types.YChild{"GroupIdXr", &node.GroupIdXr})
node.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &node.Interfaces})
node.EntityData.Children.Append("group-summaries", types.YChild{"GroupSummaries", &node.GroupSummaries})
node.EntityData.Children.Append("group-ids", types.YChild{"GroupIds", &node.GroupIds})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr
// Data for particular subscriber group session
type SubscriberRedundancyAgent_Nodes_Node_GroupIdXr struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Group id for subscriber group session. The type is slice of
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId.
GroupId []*SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId
}
func (groupIdXr *SubscriberRedundancyAgent_Nodes_Node_GroupIdXr) GetEntityData() *types.CommonEntityData {
groupIdXr.EntityData.YFilter = groupIdXr.YFilter
groupIdXr.EntityData.YangName = "group-id-xr"
groupIdXr.EntityData.BundleName = "cisco_ios_xr"
groupIdXr.EntityData.ParentYangName = "node"
groupIdXr.EntityData.SegmentPath = "group-id-xr"
groupIdXr.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/node/" + groupIdXr.EntityData.SegmentPath
groupIdXr.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
groupIdXr.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
groupIdXr.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
groupIdXr.EntityData.Children = types.NewOrderedMap()
groupIdXr.EntityData.Children.Append("group-id", types.YChild{"GroupId", nil})
for i := range groupIdXr.GroupId {
groupIdXr.EntityData.Children.Append(types.GetSegmentPath(groupIdXr.GroupId[i]), types.YChild{"GroupId", groupIdXr.GroupId[i]})
}
groupIdXr.EntityData.Leafs = types.NewOrderedMap()
groupIdXr.EntityData.YListKeys = []string {}
return &(groupIdXr.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId
// Group id for subscriber group session
type SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. GroupId. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
GroupId interface{}
// Group ID. The type is interface{} with range: 0..4294967295.
GroupIdXr interface{}
// Interface Name. The type is string.
InterfaceName interface{}
// Outer VLAN Information. The type is interface{} with range: 0..4294967295.
OuterVlan interface{}
// Inner VLAN Information. The type is interface{} with range: 0..4294967295.
InnerVlan interface{}
// Session MAC Address. The type is string.
SessionMacAddress interface{}
// PPPoE Session ID. The type is interface{} with range: 0..65535.
PppoeSessionId interface{}
// L2TP Tunnel local ID. The type is interface{} with range: 0..4294967295.
L2tpTunnelId interface{}
// Master Role is Set. The type is bool.
RoleMaster interface{}
// Holds a Valid MAC Address. The type is bool.
ValidMacAddress interface{}
// Negative Acknowledgement Update Flag is Set. The type is bool.
NegativeAcknowledgementUpdateAll interface{}
// More Session Information. The type is slice of
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionDetailedInformation.
SessionDetailedInformation []*SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionDetailedInformation
// Session Synchroniation Error Information. The type is slice of
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionSyncErrorInformation.
SessionSyncErrorInformation []*SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionSyncErrorInformation
}
func (groupId *SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId) GetEntityData() *types.CommonEntityData {
groupId.EntityData.YFilter = groupId.YFilter
groupId.EntityData.YangName = "group-id"
groupId.EntityData.BundleName = "cisco_ios_xr"
groupId.EntityData.ParentYangName = "group-id-xr"
groupId.EntityData.SegmentPath = "group-id" + types.AddKeyToken(groupId.GroupId, "group-id")
groupId.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/node/group-id-xr/" + groupId.EntityData.SegmentPath
groupId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
groupId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
groupId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
groupId.EntityData.Children = types.NewOrderedMap()
groupId.EntityData.Children.Append("session-detailed-information", types.YChild{"SessionDetailedInformation", nil})
for i := range groupId.SessionDetailedInformation {
types.SetYListKey(groupId.SessionDetailedInformation[i], i)
groupId.EntityData.Children.Append(types.GetSegmentPath(groupId.SessionDetailedInformation[i]), types.YChild{"SessionDetailedInformation", groupId.SessionDetailedInformation[i]})
}
groupId.EntityData.Children.Append("session-sync-error-information", types.YChild{"SessionSyncErrorInformation", nil})
for i := range groupId.SessionSyncErrorInformation {
types.SetYListKey(groupId.SessionSyncErrorInformation[i], i)
groupId.EntityData.Children.Append(types.GetSegmentPath(groupId.SessionSyncErrorInformation[i]), types.YChild{"SessionSyncErrorInformation", groupId.SessionSyncErrorInformation[i]})
}
groupId.EntityData.Leafs = types.NewOrderedMap()
groupId.EntityData.Leafs.Append("group-id", types.YLeaf{"GroupId", groupId.GroupId})
groupId.EntityData.Leafs.Append("group-id-xr", types.YLeaf{"GroupIdXr", groupId.GroupIdXr})
groupId.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", groupId.InterfaceName})
groupId.EntityData.Leafs.Append("outer-vlan", types.YLeaf{"OuterVlan", groupId.OuterVlan})
groupId.EntityData.Leafs.Append("inner-vlan", types.YLeaf{"InnerVlan", groupId.InnerVlan})
groupId.EntityData.Leafs.Append("session-mac-address", types.YLeaf{"SessionMacAddress", groupId.SessionMacAddress})
groupId.EntityData.Leafs.Append("pppoe-session-id", types.YLeaf{"PppoeSessionId", groupId.PppoeSessionId})
groupId.EntityData.Leafs.Append("l2tp-tunnel-id", types.YLeaf{"L2tpTunnelId", groupId.L2tpTunnelId})
groupId.EntityData.Leafs.Append("role-master", types.YLeaf{"RoleMaster", groupId.RoleMaster})
groupId.EntityData.Leafs.Append("valid-mac-address", types.YLeaf{"ValidMacAddress", groupId.ValidMacAddress})
groupId.EntityData.Leafs.Append("negative-acknowledgement-update-all", types.YLeaf{"NegativeAcknowledgementUpdateAll", groupId.NegativeAcknowledgementUpdateAll})
groupId.EntityData.YListKeys = []string {"GroupId"}
return &(groupId.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionDetailedInformation
// More Session Information
type SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionDetailedInformation struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Component. The type is SrgShowComp.
Component interface{}
// Operation Code. The type is SrgShowSessionOperation.
Operation interface{}
// Tx List Queue Failed. The type is bool.
TxListQueueFail interface{}
// Marked For Sweeping. The type is bool.
MarkedForSweeping interface{}
// Marked For Cleanup. The type is bool.
MarkedForCleanup interface{}
}
func (sessionDetailedInformation *SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionDetailedInformation) GetEntityData() *types.CommonEntityData {
sessionDetailedInformation.EntityData.YFilter = sessionDetailedInformation.YFilter
sessionDetailedInformation.EntityData.YangName = "session-detailed-information"
sessionDetailedInformation.EntityData.BundleName = "cisco_ios_xr"
sessionDetailedInformation.EntityData.ParentYangName = "group-id"
sessionDetailedInformation.EntityData.SegmentPath = "session-detailed-information" + types.AddNoKeyToken(sessionDetailedInformation)
sessionDetailedInformation.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/node/group-id-xr/group-id/" + sessionDetailedInformation.EntityData.SegmentPath
sessionDetailedInformation.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sessionDetailedInformation.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sessionDetailedInformation.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sessionDetailedInformation.EntityData.Children = types.NewOrderedMap()
sessionDetailedInformation.EntityData.Leafs = types.NewOrderedMap()
sessionDetailedInformation.EntityData.Leafs.Append("component", types.YLeaf{"Component", sessionDetailedInformation.Component})
sessionDetailedInformation.EntityData.Leafs.Append("operation", types.YLeaf{"Operation", sessionDetailedInformation.Operation})
sessionDetailedInformation.EntityData.Leafs.Append("tx-list-queue-fail", types.YLeaf{"TxListQueueFail", sessionDetailedInformation.TxListQueueFail})
sessionDetailedInformation.EntityData.Leafs.Append("marked-for-sweeping", types.YLeaf{"MarkedForSweeping", sessionDetailedInformation.MarkedForSweeping})
sessionDetailedInformation.EntityData.Leafs.Append("marked-for-cleanup", types.YLeaf{"MarkedForCleanup", sessionDetailedInformation.MarkedForCleanup})
sessionDetailedInformation.EntityData.YListKeys = []string {}
return &(sessionDetailedInformation.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionSyncErrorInformation
// Session Synchroniation Error Information
type SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionSyncErrorInformation struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// No. of Errors occured during Synchronization. The type is interface{} with
// range: 0..65535.
SyncErrorCount interface{}
// Last Error Code. The type is interface{} with range: 0..4294967295.
LastErrorCode interface{}
// Last Error Type. The type is SrgShowSessionError.
LastErrorType interface{}
}
func (sessionSyncErrorInformation *SubscriberRedundancyAgent_Nodes_Node_GroupIdXr_GroupId_SessionSyncErrorInformation) GetEntityData() *types.CommonEntityData {
sessionSyncErrorInformation.EntityData.YFilter = sessionSyncErrorInformation.YFilter
sessionSyncErrorInformation.EntityData.YangName = "session-sync-error-information"
sessionSyncErrorInformation.EntityData.BundleName = "cisco_ios_xr"
sessionSyncErrorInformation.EntityData.ParentYangName = "group-id"
sessionSyncErrorInformation.EntityData.SegmentPath = "session-sync-error-information" + types.AddNoKeyToken(sessionSyncErrorInformation)
sessionSyncErrorInformation.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/node/group-id-xr/group-id/" + sessionSyncErrorInformation.EntityData.SegmentPath
sessionSyncErrorInformation.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sessionSyncErrorInformation.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sessionSyncErrorInformation.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sessionSyncErrorInformation.EntityData.Children = types.NewOrderedMap()
sessionSyncErrorInformation.EntityData.Leafs = types.NewOrderedMap()
sessionSyncErrorInformation.EntityData.Leafs.Append("sync-error-count", types.YLeaf{"SyncErrorCount", sessionSyncErrorInformation.SyncErrorCount})
sessionSyncErrorInformation.EntityData.Leafs.Append("last-error-code", types.YLeaf{"LastErrorCode", sessionSyncErrorInformation.LastErrorCode})
sessionSyncErrorInformation.EntityData.Leafs.Append("last-error-type", types.YLeaf{"LastErrorType", sessionSyncErrorInformation.LastErrorType})
sessionSyncErrorInformation.EntityData.YListKeys = []string {}
return &(sessionSyncErrorInformation.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_Interfaces
// List of interfaces
type SubscriberRedundancyAgent_Nodes_Node_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify interface name. The type is slice of
// SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface.
Interface []*SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface
}
func (interfaces *SubscriberRedundancyAgent_Nodes_Node_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "node"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/node/" + interfaces.EntityData.SegmentPath
interfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaces.EntityData.Children = types.NewOrderedMap()
interfaces.EntityData.Children.Append("interface", types.YChild{"Interface", nil})
for i := range interfaces.Interface {
interfaces.EntityData.Children.Append(types.GetSegmentPath(interfaces.Interface[i]), types.YChild{"Interface", interfaces.Interface[i]})
}
interfaces.EntityData.Leafs = types.NewOrderedMap()
interfaces.EntityData.YListKeys = []string {}
return &(interfaces.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface
// Specify interface name
type SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
Interface interface{}
// Interface Name. The type is string.
InterfaceName interface{}
// Interface Sync ID. The type is interface{} with range: 0..4294967295.
InterfaceSynchronizationId interface{}
// Group ID. The type is interface{} with range: 0..4294967295.
GroupId interface{}
// SRG Role. The type is SrgShowImRole.
Role interface{}
// Forward Referenced. The type is bool.
ForwardReferenced interface{}
// Session Count. The type is interface{} with range: 0..4294967295.
SessionCount interface{}
// Interface Enable Error Count. The type is interface{} with range:
// 0..4294967295.
InterfaceEnableErrorCount interface{}
// Interface Disable Error Count. The type is interface{} with range:
// 0..4294967295.
InterfaceDisableErrorCount interface{}
// Interface Caps Add Error Count. The type is interface{} with range:
// 0..4294967295.
InterfaceCapsAddErrorCount interface{}
// Interface Caps Remove Error Count. The type is interface{} with range:
// 0..4294967295.
InterfaceCapsRemoveErrorCount interface{}
// Interface Attribute Update Error Count. The type is interface{} with range:
// 0..4294967295.
InterfaceAttributeUpdateErrorCount interface{}
// Interface Batch Operation.
InterfaceOper SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface_InterfaceOper
// Interface Status.
InterfaceStatus SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface_InterfaceStatus
// Interface status for each client. The type is slice of
// SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface_ClientStatus.
ClientStatus []*SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface_ClientStatus
}
func (self *SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface) GetEntityData() *types.CommonEntityData {
self.EntityData.YFilter = self.YFilter
self.EntityData.YangName = "interface"
self.EntityData.BundleName = "cisco_ios_xr"
self.EntityData.ParentYangName = "interfaces"
self.EntityData.SegmentPath = "interface" + types.AddKeyToken(self.Interface, "interface")
self.EntityData.AbsolutePath = "Cisco-IOS-XR-subscriber-srg-oper:subscriber-redundancy-agent/nodes/node/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Children.Append("interface-oper", types.YChild{"InterfaceOper", &self.InterfaceOper})
self.EntityData.Children.Append("interface-status", types.YChild{"InterfaceStatus", &self.InterfaceStatus})
self.EntityData.Children.Append("client-status", types.YChild{"ClientStatus", nil})
for i := range self.ClientStatus {
types.SetYListKey(self.ClientStatus[i], i)
self.EntityData.Children.Append(types.GetSegmentPath(self.ClientStatus[i]), types.YChild{"ClientStatus", self.ClientStatus[i]})
}
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", self.Interface})
self.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", self.InterfaceName})
self.EntityData.Leafs.Append("interface-synchronization-id", types.YLeaf{"InterfaceSynchronizationId", self.InterfaceSynchronizationId})
self.EntityData.Leafs.Append("group-id", types.YLeaf{"GroupId", self.GroupId})
self.EntityData.Leafs.Append("role", types.YLeaf{"Role", self.Role})
self.EntityData.Leafs.Append("forward-referenced", types.YLeaf{"ForwardReferenced", self.ForwardReferenced})
self.EntityData.Leafs.Append("session-count", types.YLeaf{"SessionCount", self.SessionCount})
self.EntityData.Leafs.Append("interface-enable-error-count", types.YLeaf{"InterfaceEnableErrorCount", self.InterfaceEnableErrorCount})
self.EntityData.Leafs.Append("interface-disable-error-count", types.YLeaf{"InterfaceDisableErrorCount", self.InterfaceDisableErrorCount})
self.EntityData.Leafs.Append("interface-caps-add-error-count", types.YLeaf{"InterfaceCapsAddErrorCount", self.InterfaceCapsAddErrorCount})
self.EntityData.Leafs.Append("interface-caps-remove-error-count", types.YLeaf{"InterfaceCapsRemoveErrorCount", self.InterfaceCapsRemoveErrorCount})
self.EntityData.Leafs.Append("interface-attribute-update-error-count", types.YLeaf{"InterfaceAttributeUpdateErrorCount", self.InterfaceAttributeUpdateErrorCount})
self.EntityData.YListKeys = []string {"Interface"}
return &(self.EntityData)
}
// SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface_InterfaceOper
// Interface Batch Operation
type SubscriberRedundancyAgent_Nodes_Node_Interfaces_Interface_InterfaceOper struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Operational Registration Enabled. The type is bool.
IdbOperRegEnable interface{}
// Operational Registration Disabled. The type is bool.
IdbOperRegDisable interface{}
// Operational Caps Add. The type is bool.
IdbOperCapsAdd interface{}