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
/
l2rib_oper.go
5419 lines (4301 loc) · 254 KB
/
l2rib_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 l2rib package operational data.
//
// This module contains definitions
// for the following management objects:
// l2rib: L2RIB operational information
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package l2rib_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 l2rib_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-l2rib-oper l2rib}", reflect.TypeOf(L2rib{}))
ydk.RegisterEntity("Cisco-IOS-XR-l2rib-oper:l2rib", reflect.TypeOf(L2rib{}))
}
// L2ribMacRoute represents L2rib mac route
type L2ribMacRoute string
const (
// l2rib mac route type invalid
L2ribMacRoute_l2rib_mac_route_type_invalid L2ribMacRoute = "l2rib-mac-route-type-invalid"
// l2rib mac route type regular
L2ribMacRoute_l2rib_mac_route_type_regular L2ribMacRoute = "l2rib-mac-route-type-regular"
// l2rib mac route type evpn esi
L2ribMacRoute_l2rib_mac_route_type_evpn_esi L2ribMacRoute = "l2rib-mac-route-type-evpn-esi"
// l2rib mac route type bmac
L2ribMacRoute_l2rib_mac_route_type_bmac L2ribMacRoute = "l2rib-mac-route-type-bmac"
)
// L2ribBagProducerId represents L2RIB Producer Types
type L2ribBagProducerId string
const (
// None
L2ribBagProducerId_l2rib_bag_prod_none L2ribBagProducerId = "l2rib-bag-prod-none"
// Best Route
L2ribBagProducerId_l2rib_bag_prod_best_route L2ribBagProducerId = "l2rib-bag-prod-best-route"
// Static
L2ribBagProducerId_l2rib_bag_prod_static L2ribBagProducerId = "l2rib-bag-prod-static"
// Local
L2ribBagProducerId_l2rib_bag_prod_local L2ribBagProducerId = "l2rib-bag-prod-local"
// IS IS
L2ribBagProducerId_l2rib_bag_prod_isis L2ribBagProducerId = "l2rib-bag-prod-isis"
// BGP
L2ribBagProducerId_l2rib_bag_prod_bgp L2ribBagProducerId = "l2rib-bag-prod-bgp"
// IGMP
L2ribBagProducerId_l2rib_bag_prod_igmp L2ribBagProducerId = "l2rib-bag-prod-igmp"
// MLD
L2ribBagProducerId_l2rib_bag_prod_prod_mld L2ribBagProducerId = "l2rib-bag-prod-prod-mld"
// OTV
L2ribBagProducerId_l2rib_bag_prod_prod_otv L2ribBagProducerId = "l2rib-bag-prod-prod-otv"
// L2VPN
L2ribBagProducerId_l2rib_bag_prod_prod_l2vpn L2ribBagProducerId = "l2rib-bag-prod-prod-l2vpn"
// MAC MGR
L2ribBagProducerId_l2rib_bag_prod_prod_mac_mgr L2ribBagProducerId = "l2rib-bag-prod-prod-mac-mgr"
// VXLAN
L2ribBagProducerId_l2rib_bag_prod_prod_vxlan L2ribBagProducerId = "l2rib-bag-prod-prod-vxlan"
// HMM
L2ribBagProducerId_l2rib_bag_prod_prod_hmm L2ribBagProducerId = "l2rib-bag-prod-prod-hmm"
// ARP
L2ribBagProducerId_l2rib_bag_prod_prod_arp L2ribBagProducerId = "l2rib-bag-prod-prod-arp"
// Local Proxy
L2ribBagProducerId_l2rib_bag_prod_prod_local_proxy L2ribBagProducerId = "l2rib-bag-prod-prod-local-proxy"
// All
L2ribBagProducerId_l2rib_bag_prod_prod_all L2ribBagProducerId = "l2rib-bag-prod-prod-all"
)
// L2ribAfi represents L2rib afi
type L2ribAfi string
const (
// l2rib address family ipv4
L2ribAfi_l2rib_address_family_ipv4 L2ribAfi = "l2rib-address-family-ipv4"
// l2rib address family ipv6
L2ribAfi_l2rib_address_family_ipv6 L2ribAfi = "l2rib-address-family-ipv6"
// l2rib address family invalid
L2ribAfi_l2rib_address_family_invalid L2ribAfi = "l2rib-address-family-invalid"
)
// L2ribBagProducerState represents L2RIB Producer States
type L2ribBagProducerState string
const (
// Initial
L2ribBagProducerState_l2rib_bag_prod_state_initial L2ribBagProducerState = "l2rib-bag-prod-state-initial"
// Stale
L2ribBagProducerState_l2rib_bag_prod_state_staled L2ribBagProducerState = "l2rib-bag-prod-state-staled"
// Reconnected
L2ribBagProducerState_l2rib_bag_prod_state_re_connected L2ribBagProducerState = "l2rib-bag-prod-state-re-connected"
// Converged
L2ribBagProducerState_l2rib_bag_prod_state_converged L2ribBagProducerState = "l2rib-bag-prod-state-converged"
// Delete Pending
L2ribBagProducerState_l2rib_bag_prod_state_delete_p_end L2ribBagProducerState = "l2rib-bag-prod-state-delete-p-end"
)
// L2ribNextHop represents L2rib next hop
type L2ribNextHop string
const (
// l2rib next hop invalid
L2ribNextHop_l2rib_next_hop_invalid L2ribNextHop = "l2rib-next-hop-invalid"
// l2rib next hop interface ordinal
L2ribNextHop_l2rib_next_hop_interface_ordinal L2ribNextHop = "l2rib-next-hop-interface-ordinal"
// l2rib next hop interface index
L2ribNextHop_l2rib_next_hop_interface_index L2ribNextHop = "l2rib-next-hop-interface-index"
// l2rib next hop mac
L2ribNextHop_l2rib_next_hop_mac L2ribNextHop = "l2rib-next-hop-mac"
// l2rib next hop ipv4
L2ribNextHop_l2rib_next_hop_ipv4 L2ribNextHop = "l2rib-next-hop-ipv4"
// l2rib next hop ipv6
L2ribNextHop_l2rib_next_hop_ipv6 L2ribNextHop = "l2rib-next-hop-ipv6"
// l2rib next hop overlay
L2ribNextHop_l2rib_next_hop_overlay L2ribNextHop = "l2rib-next-hop-overlay"
// l2rib next hop site index
L2ribNextHop_l2rib_next_hop_site_index L2ribNextHop = "l2rib-next-hop-site-index"
// l2rib next hop label ed
L2ribNextHop_l2rib_next_hop_label_ed L2ribNextHop = "l2rib-next-hop-label-ed"
// l2rib next hop xid
L2ribNextHop_l2rib_next_hop_xid L2ribNextHop = "l2rib-next-hop-xid"
)
// L2ribBagObj represents L2RIB Object Types
type L2ribBagObj string
const (
// Invalid Object Type
L2ribBagObj_l2rib_bag_obj_type_min L2ribBagObj = "l2rib-bag-obj-type-min"
// All
L2ribBagObj_l2rib_bag_obj_type_all L2ribBagObj = "l2rib-bag-obj-type-all"
// Mac
L2ribBagObj_l2rib_bag_obj_type_mac L2ribBagObj = "l2rib-bag-obj-type-mac"
// IPv4 Multicast
L2ribBagObj_l2rib_bag_obj_type_ipv4_mcast L2ribBagObj = "l2rib-bag-obj-type-ipv4-mcast"
// IPv6 Multicast
L2ribBagObj_l2rib_bag_obj_type_ipv6_mcast L2ribBagObj = "l2rib-bag-obj-type-ipv6-mcast"
// Topology
L2ribBagObj_l2rib_bag_obj_type_topology L2ribBagObj = "l2rib-bag-obj-type-topology"
// Ethernet AD
L2ribBagObj_l2rib_bag_obj_type_ead L2ribBagObj = "l2rib-bag-obj-type-ead"
// EVPN Path List
L2ribBagObj_l2rib_bag_obj_type_evpn_pl L2ribBagObj = "l2rib-bag-obj-type-evpn-pl"
// Topology Attribute
L2ribBagObj_l2rib_bag_obj_type_topo_attribute L2ribBagObj = "l2rib-bag-obj-type-topo-attribute"
// IMET
L2ribBagObj_l2rib_bag_obj_type_imet_route L2ribBagObj = "l2rib-bag-obj-type-imet-route"
// Mac IP
L2ribBagObj_l2rib_bag_obj_type_mac_ip L2ribBagObj = "l2rib-bag-obj-type-mac-ip"
)
// L2rib
// L2RIB operational information
type L2rib struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// L2RIB detailed producer table.
ProducersDetails L2rib_ProducersDetails
// L2RIB EVPN Summary.
Summary L2rib_Summary
// L2RIB producer table.
Producers L2rib_Producers
// L2RIB client table.
Clients L2rib_Clients
// L2RIB EVPN EVI Detail Table.
EvisXr L2rib_EvisXr
// L2RIB detailed client table.
ClientsDetails L2rib_ClientsDetails
// Container for all EVI Child Tables.
EviChildTables L2rib_EviChildTables
// L2RIB EVPN EVI Table.
Evis L2rib_Evis
}
func (l2rib *L2rib) GetEntityData() *types.CommonEntityData {
l2rib.EntityData.YFilter = l2rib.YFilter
l2rib.EntityData.YangName = "l2rib"
l2rib.EntityData.BundleName = "cisco_ios_xr"
l2rib.EntityData.ParentYangName = "Cisco-IOS-XR-l2rib-oper"
l2rib.EntityData.SegmentPath = "Cisco-IOS-XR-l2rib-oper:l2rib"
l2rib.EntityData.AbsolutePath = l2rib.EntityData.SegmentPath
l2rib.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
l2rib.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
l2rib.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
l2rib.EntityData.Children = types.NewOrderedMap()
l2rib.EntityData.Children.Append("producers-details", types.YChild{"ProducersDetails", &l2rib.ProducersDetails})
l2rib.EntityData.Children.Append("summary", types.YChild{"Summary", &l2rib.Summary})
l2rib.EntityData.Children.Append("producers", types.YChild{"Producers", &l2rib.Producers})
l2rib.EntityData.Children.Append("clients", types.YChild{"Clients", &l2rib.Clients})
l2rib.EntityData.Children.Append("evis-xr", types.YChild{"EvisXr", &l2rib.EvisXr})
l2rib.EntityData.Children.Append("clients-details", types.YChild{"ClientsDetails", &l2rib.ClientsDetails})
l2rib.EntityData.Children.Append("evi-child-tables", types.YChild{"EviChildTables", &l2rib.EviChildTables})
l2rib.EntityData.Children.Append("evis", types.YChild{"Evis", &l2rib.Evis})
l2rib.EntityData.Leafs = types.NewOrderedMap()
l2rib.EntityData.YListKeys = []string {}
return &(l2rib.EntityData)
}
// L2rib_ProducersDetails
// L2RIB detailed producer table
type L2rib_ProducersDetails struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// L2RIB producers detail information. The type is slice of
// L2rib_ProducersDetails_ProducersDetail.
ProducersDetail []*L2rib_ProducersDetails_ProducersDetail
}
func (producersDetails *L2rib_ProducersDetails) GetEntityData() *types.CommonEntityData {
producersDetails.EntityData.YFilter = producersDetails.YFilter
producersDetails.EntityData.YangName = "producers-details"
producersDetails.EntityData.BundleName = "cisco_ios_xr"
producersDetails.EntityData.ParentYangName = "l2rib"
producersDetails.EntityData.SegmentPath = "producers-details"
producersDetails.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/" + producersDetails.EntityData.SegmentPath
producersDetails.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
producersDetails.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
producersDetails.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
producersDetails.EntityData.Children = types.NewOrderedMap()
producersDetails.EntityData.Children.Append("producers-detail", types.YChild{"ProducersDetail", nil})
for i := range producersDetails.ProducersDetail {
types.SetYListKey(producersDetails.ProducersDetail[i], i)
producersDetails.EntityData.Children.Append(types.GetSegmentPath(producersDetails.ProducersDetail[i]), types.YChild{"ProducersDetail", producersDetails.ProducersDetail[i]})
}
producersDetails.EntityData.Leafs = types.NewOrderedMap()
producersDetails.EntityData.YListKeys = []string {}
return &(producersDetails.EntityData)
}
// L2rib_ProducersDetails_ProducersDetail
// L2RIB producers detail information
type L2rib_ProducersDetails_ProducersDetail struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Object ID. The type is interface{} with range: 0..4294967295.
ObjectId interface{}
// Product ID. The type is interface{} with range: 0..4294967295.
ProductId interface{}
// Last Update Timestamp. The type is interface{} with range:
// 0..18446744073709551615.
LastUpdateTimestamp interface{}
// Non-detail Producer Bag.
Producer L2rib_ProducersDetails_ProducersDetail_Producer
// Producer Statistics.
Statistics L2rib_ProducersDetails_ProducersDetail_Statistics
}
func (producersDetail *L2rib_ProducersDetails_ProducersDetail) GetEntityData() *types.CommonEntityData {
producersDetail.EntityData.YFilter = producersDetail.YFilter
producersDetail.EntityData.YangName = "producers-detail"
producersDetail.EntityData.BundleName = "cisco_ios_xr"
producersDetail.EntityData.ParentYangName = "producers-details"
producersDetail.EntityData.SegmentPath = "producers-detail" + types.AddNoKeyToken(producersDetail)
producersDetail.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/producers-details/" + producersDetail.EntityData.SegmentPath
producersDetail.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
producersDetail.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
producersDetail.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
producersDetail.EntityData.Children = types.NewOrderedMap()
producersDetail.EntityData.Children.Append("producer", types.YChild{"Producer", &producersDetail.Producer})
producersDetail.EntityData.Children.Append("statistics", types.YChild{"Statistics", &producersDetail.Statistics})
producersDetail.EntityData.Leafs = types.NewOrderedMap()
producersDetail.EntityData.Leafs.Append("object-id", types.YLeaf{"ObjectId", producersDetail.ObjectId})
producersDetail.EntityData.Leafs.Append("product-id", types.YLeaf{"ProductId", producersDetail.ProductId})
producersDetail.EntityData.Leafs.Append("last-update-timestamp", types.YLeaf{"LastUpdateTimestamp", producersDetail.LastUpdateTimestamp})
producersDetail.EntityData.YListKeys = []string {}
return &(producersDetail.EntityData)
}
// L2rib_ProducersDetails_ProducersDetail_Producer
// Non-detail Producer Bag
type L2rib_ProducersDetails_ProducersDetail_Producer struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Client ID. The type is interface{} with range: 0..4294967295.
ClientId interface{}
// Object Type. The type is L2ribBagObj.
ObjectType interface{}
// Producer ID. The type is L2ribBagProducerId.
ProducerId interface{}
// Producer Name. The type is string.
ProducerName interface{}
// Admin Distance. The type is interface{} with range: 0..4294967295.
AdminDistance interface{}
// Purge Time. The type is interface{} with range: 0..4294967295.
PurgeTime interface{}
// Producer State. The type is L2ribBagProducerState.
State interface{}
}
func (producer *L2rib_ProducersDetails_ProducersDetail_Producer) GetEntityData() *types.CommonEntityData {
producer.EntityData.YFilter = producer.YFilter
producer.EntityData.YangName = "producer"
producer.EntityData.BundleName = "cisco_ios_xr"
producer.EntityData.ParentYangName = "producers-detail"
producer.EntityData.SegmentPath = "producer"
producer.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/producers-details/producers-detail/" + producer.EntityData.SegmentPath
producer.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
producer.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
producer.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
producer.EntityData.Children = types.NewOrderedMap()
producer.EntityData.Leafs = types.NewOrderedMap()
producer.EntityData.Leafs.Append("client-id", types.YLeaf{"ClientId", producer.ClientId})
producer.EntityData.Leafs.Append("object-type", types.YLeaf{"ObjectType", producer.ObjectType})
producer.EntityData.Leafs.Append("producer-id", types.YLeaf{"ProducerId", producer.ProducerId})
producer.EntityData.Leafs.Append("producer-name", types.YLeaf{"ProducerName", producer.ProducerName})
producer.EntityData.Leafs.Append("admin-distance", types.YLeaf{"AdminDistance", producer.AdminDistance})
producer.EntityData.Leafs.Append("purge-time", types.YLeaf{"PurgeTime", producer.PurgeTime})
producer.EntityData.Leafs.Append("state", types.YLeaf{"State", producer.State})
producer.EntityData.YListKeys = []string {}
return &(producer.EntityData)
}
// L2rib_ProducersDetails_ProducersDetail_Statistics
// Producer Statistics
type L2rib_ProducersDetails_ProducersDetail_Statistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Producer ID. The type is L2ribBagProducerId.
ProducerId interface{}
// Producer Name. The type is string.
ProducerName interface{}
// Statistics.
Statistics L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics
}
func (statistics *L2rib_ProducersDetails_ProducersDetail_Statistics) GetEntityData() *types.CommonEntityData {
statistics.EntityData.YFilter = statistics.YFilter
statistics.EntityData.YangName = "statistics"
statistics.EntityData.BundleName = "cisco_ios_xr"
statistics.EntityData.ParentYangName = "producers-detail"
statistics.EntityData.SegmentPath = "statistics"
statistics.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/producers-details/producers-detail/" + 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.Children.Append("statistics", types.YChild{"Statistics", &statistics.Statistics})
statistics.EntityData.Leafs = types.NewOrderedMap()
statistics.EntityData.Leafs.Append("producer-id", types.YLeaf{"ProducerId", statistics.ProducerId})
statistics.EntityData.Leafs.Append("producer-name", types.YLeaf{"ProducerName", statistics.ProducerName})
statistics.EntityData.YListKeys = []string {}
return &(statistics.EntityData)
}
// L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics
// Statistics
type L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Memory Size. The type is interface{} with range: 0..4294967295.
MemorySize interface{}
// Number of Objects. The type is interface{} with range: 0..4294967295.
ObjectCount interface{}
// End of Interval Timestamp. The type is interface{} with range:
// 0..18446744073709551615.
EndofIntervalTs interface{}
// Extended Counters. The type is slice of
// L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics_ExtendedCounter.
ExtendedCounter []*L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics_ExtendedCounter
}
func (statistics *L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics) GetEntityData() *types.CommonEntityData {
statistics.EntityData.YFilter = statistics.YFilter
statistics.EntityData.YangName = "statistics"
statistics.EntityData.BundleName = "cisco_ios_xr"
statistics.EntityData.ParentYangName = "statistics"
statistics.EntityData.SegmentPath = "statistics"
statistics.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/producers-details/producers-detail/statistics/" + 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.Children.Append("extended-counter", types.YChild{"ExtendedCounter", nil})
for i := range statistics.ExtendedCounter {
types.SetYListKey(statistics.ExtendedCounter[i], i)
statistics.EntityData.Children.Append(types.GetSegmentPath(statistics.ExtendedCounter[i]), types.YChild{"ExtendedCounter", statistics.ExtendedCounter[i]})
}
statistics.EntityData.Leafs = types.NewOrderedMap()
statistics.EntityData.Leafs.Append("memory-size", types.YLeaf{"MemorySize", statistics.MemorySize})
statistics.EntityData.Leafs.Append("object-count", types.YLeaf{"ObjectCount", statistics.ObjectCount})
statistics.EntityData.Leafs.Append("endof-interval-ts", types.YLeaf{"EndofIntervalTs", statistics.EndofIntervalTs})
statistics.EntityData.YListKeys = []string {}
return &(statistics.EntityData)
}
// L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics_ExtendedCounter
// Extended Counters
type L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics_ExtendedCounter struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// CounterType. The type is interface{} with range: 0..255.
CounterType interface{}
// CounterName. The type is string.
CounterName interface{}
// Real-clock timestamp in msec of first event. The type is interface{} with
// range: 0..18446744073709551615.
L2rbFirstEventTs interface{}
// Real-clock timestamp in msec of last event. The type is interface{} with
// range: 0..18446744073709551615.
L2rbLastEventTs interface{}
// number of events in interval. The type is interface{} with range:
// 0..4294967295.
L2rbIntervalEventCount interface{}
// total number of events. The type is interface{} with range: 0..4294967295.
L2rbTotalEventCount interface{}
}
func (extendedCounter *L2rib_ProducersDetails_ProducersDetail_Statistics_Statistics_ExtendedCounter) GetEntityData() *types.CommonEntityData {
extendedCounter.EntityData.YFilter = extendedCounter.YFilter
extendedCounter.EntityData.YangName = "extended-counter"
extendedCounter.EntityData.BundleName = "cisco_ios_xr"
extendedCounter.EntityData.ParentYangName = "statistics"
extendedCounter.EntityData.SegmentPath = "extended-counter" + types.AddNoKeyToken(extendedCounter)
extendedCounter.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/producers-details/producers-detail/statistics/statistics/" + extendedCounter.EntityData.SegmentPath
extendedCounter.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
extendedCounter.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
extendedCounter.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
extendedCounter.EntityData.Children = types.NewOrderedMap()
extendedCounter.EntityData.Leafs = types.NewOrderedMap()
extendedCounter.EntityData.Leafs.Append("counter-type", types.YLeaf{"CounterType", extendedCounter.CounterType})
extendedCounter.EntityData.Leafs.Append("counter-name", types.YLeaf{"CounterName", extendedCounter.CounterName})
extendedCounter.EntityData.Leafs.Append("l2rb-first-event-ts", types.YLeaf{"L2rbFirstEventTs", extendedCounter.L2rbFirstEventTs})
extendedCounter.EntityData.Leafs.Append("l2rb-last-event-ts", types.YLeaf{"L2rbLastEventTs", extendedCounter.L2rbLastEventTs})
extendedCounter.EntityData.Leafs.Append("l2rb-interval-event-count", types.YLeaf{"L2rbIntervalEventCount", extendedCounter.L2rbIntervalEventCount})
extendedCounter.EntityData.Leafs.Append("l2rb-total-event-count", types.YLeaf{"L2rbTotalEventCount", extendedCounter.L2rbTotalEventCount})
extendedCounter.EntityData.YListKeys = []string {}
return &(extendedCounter.EntityData)
}
// L2rib_Summary
// L2RIB EVPN Summary
type L2rib_Summary struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Number of Converged Tables. The type is interface{} with range:
// 0..4294967295.
ConvergedTablesCount interface{}
// Total Allocated Memory. The type is interface{} with range: 0..4294967295.
TotalMemory interface{}
// Per Object Table summary. The type is slice of L2rib_Summary_TableSummary.
TableSummary []*L2rib_Summary_TableSummary
}
func (summary *L2rib_Summary) GetEntityData() *types.CommonEntityData {
summary.EntityData.YFilter = summary.YFilter
summary.EntityData.YangName = "summary"
summary.EntityData.BundleName = "cisco_ios_xr"
summary.EntityData.ParentYangName = "l2rib"
summary.EntityData.SegmentPath = "summary"
summary.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/" + 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.Children.Append("table-summary", types.YChild{"TableSummary", nil})
for i := range summary.TableSummary {
types.SetYListKey(summary.TableSummary[i], i)
summary.EntityData.Children.Append(types.GetSegmentPath(summary.TableSummary[i]), types.YChild{"TableSummary", summary.TableSummary[i]})
}
summary.EntityData.Leafs = types.NewOrderedMap()
summary.EntityData.Leafs.Append("converged-tables-count", types.YLeaf{"ConvergedTablesCount", summary.ConvergedTablesCount})
summary.EntityData.Leafs.Append("total-memory", types.YLeaf{"TotalMemory", summary.TotalMemory})
summary.EntityData.YListKeys = []string {}
return &(summary.EntityData)
}
// L2rib_Summary_TableSummary
// Per Object Table summary
type L2rib_Summary_TableSummary struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Object Type. The type is L2ribBagObj.
ObjectType interface{}
// Number of Objects. The type is interface{} with range: 0..4294967295.
ObjectCount interface{}
// Allocated Memory. The type is interface{} with range: 0..4294967295.
TableMemory interface{}
// Statistics per producer. The type is slice of
// L2rib_Summary_TableSummary_ProducerStat.
ProducerStat []*L2rib_Summary_TableSummary_ProducerStat
}
func (tableSummary *L2rib_Summary_TableSummary) GetEntityData() *types.CommonEntityData {
tableSummary.EntityData.YFilter = tableSummary.YFilter
tableSummary.EntityData.YangName = "table-summary"
tableSummary.EntityData.BundleName = "cisco_ios_xr"
tableSummary.EntityData.ParentYangName = "summary"
tableSummary.EntityData.SegmentPath = "table-summary" + types.AddNoKeyToken(tableSummary)
tableSummary.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/summary/" + tableSummary.EntityData.SegmentPath
tableSummary.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
tableSummary.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
tableSummary.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
tableSummary.EntityData.Children = types.NewOrderedMap()
tableSummary.EntityData.Children.Append("producer-stat", types.YChild{"ProducerStat", nil})
for i := range tableSummary.ProducerStat {
types.SetYListKey(tableSummary.ProducerStat[i], i)
tableSummary.EntityData.Children.Append(types.GetSegmentPath(tableSummary.ProducerStat[i]), types.YChild{"ProducerStat", tableSummary.ProducerStat[i]})
}
tableSummary.EntityData.Leafs = types.NewOrderedMap()
tableSummary.EntityData.Leafs.Append("object-type", types.YLeaf{"ObjectType", tableSummary.ObjectType})
tableSummary.EntityData.Leafs.Append("object-count", types.YLeaf{"ObjectCount", tableSummary.ObjectCount})
tableSummary.EntityData.Leafs.Append("table-memory", types.YLeaf{"TableMemory", tableSummary.TableMemory})
tableSummary.EntityData.YListKeys = []string {}
return &(tableSummary.EntityData)
}
// L2rib_Summary_TableSummary_ProducerStat
// Statistics per producer
type L2rib_Summary_TableSummary_ProducerStat struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Producer ID. The type is L2ribBagProducerId.
ProducerId interface{}
// Producer Name. The type is string.
ProducerName interface{}
// Statistics.
Statistics L2rib_Summary_TableSummary_ProducerStat_Statistics
}
func (producerStat *L2rib_Summary_TableSummary_ProducerStat) GetEntityData() *types.CommonEntityData {
producerStat.EntityData.YFilter = producerStat.YFilter
producerStat.EntityData.YangName = "producer-stat"
producerStat.EntityData.BundleName = "cisco_ios_xr"
producerStat.EntityData.ParentYangName = "table-summary"
producerStat.EntityData.SegmentPath = "producer-stat" + types.AddNoKeyToken(producerStat)
producerStat.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/summary/table-summary/" + producerStat.EntityData.SegmentPath
producerStat.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
producerStat.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
producerStat.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
producerStat.EntityData.Children = types.NewOrderedMap()
producerStat.EntityData.Children.Append("statistics", types.YChild{"Statistics", &producerStat.Statistics})
producerStat.EntityData.Leafs = types.NewOrderedMap()
producerStat.EntityData.Leafs.Append("producer-id", types.YLeaf{"ProducerId", producerStat.ProducerId})
producerStat.EntityData.Leafs.Append("producer-name", types.YLeaf{"ProducerName", producerStat.ProducerName})
producerStat.EntityData.YListKeys = []string {}
return &(producerStat.EntityData)
}
// L2rib_Summary_TableSummary_ProducerStat_Statistics
// Statistics
type L2rib_Summary_TableSummary_ProducerStat_Statistics struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Memory Size. The type is interface{} with range: 0..4294967295.
MemorySize interface{}
// Number of Objects. The type is interface{} with range: 0..4294967295.
ObjectCount interface{}
// End of Interval Timestamp. The type is interface{} with range:
// 0..18446744073709551615.
EndofIntervalTs interface{}
// Extended Counters. The type is slice of
// L2rib_Summary_TableSummary_ProducerStat_Statistics_ExtendedCounter.
ExtendedCounter []*L2rib_Summary_TableSummary_ProducerStat_Statistics_ExtendedCounter
}
func (statistics *L2rib_Summary_TableSummary_ProducerStat_Statistics) GetEntityData() *types.CommonEntityData {
statistics.EntityData.YFilter = statistics.YFilter
statistics.EntityData.YangName = "statistics"
statistics.EntityData.BundleName = "cisco_ios_xr"
statistics.EntityData.ParentYangName = "producer-stat"
statistics.EntityData.SegmentPath = "statistics"
statistics.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/summary/table-summary/producer-stat/" + 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.Children.Append("extended-counter", types.YChild{"ExtendedCounter", nil})
for i := range statistics.ExtendedCounter {
types.SetYListKey(statistics.ExtendedCounter[i], i)
statistics.EntityData.Children.Append(types.GetSegmentPath(statistics.ExtendedCounter[i]), types.YChild{"ExtendedCounter", statistics.ExtendedCounter[i]})
}
statistics.EntityData.Leafs = types.NewOrderedMap()
statistics.EntityData.Leafs.Append("memory-size", types.YLeaf{"MemorySize", statistics.MemorySize})
statistics.EntityData.Leafs.Append("object-count", types.YLeaf{"ObjectCount", statistics.ObjectCount})
statistics.EntityData.Leafs.Append("endof-interval-ts", types.YLeaf{"EndofIntervalTs", statistics.EndofIntervalTs})
statistics.EntityData.YListKeys = []string {}
return &(statistics.EntityData)
}
// L2rib_Summary_TableSummary_ProducerStat_Statistics_ExtendedCounter
// Extended Counters
type L2rib_Summary_TableSummary_ProducerStat_Statistics_ExtendedCounter struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// CounterType. The type is interface{} with range: 0..255.
CounterType interface{}
// CounterName. The type is string.
CounterName interface{}
// Real-clock timestamp in msec of first event. The type is interface{} with
// range: 0..18446744073709551615.
L2rbFirstEventTs interface{}
// Real-clock timestamp in msec of last event. The type is interface{} with
// range: 0..18446744073709551615.
L2rbLastEventTs interface{}
// number of events in interval. The type is interface{} with range:
// 0..4294967295.
L2rbIntervalEventCount interface{}
// total number of events. The type is interface{} with range: 0..4294967295.
L2rbTotalEventCount interface{}
}
func (extendedCounter *L2rib_Summary_TableSummary_ProducerStat_Statistics_ExtendedCounter) GetEntityData() *types.CommonEntityData {
extendedCounter.EntityData.YFilter = extendedCounter.YFilter
extendedCounter.EntityData.YangName = "extended-counter"
extendedCounter.EntityData.BundleName = "cisco_ios_xr"
extendedCounter.EntityData.ParentYangName = "statistics"
extendedCounter.EntityData.SegmentPath = "extended-counter" + types.AddNoKeyToken(extendedCounter)
extendedCounter.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/summary/table-summary/producer-stat/statistics/" + extendedCounter.EntityData.SegmentPath
extendedCounter.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
extendedCounter.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
extendedCounter.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
extendedCounter.EntityData.Children = types.NewOrderedMap()
extendedCounter.EntityData.Leafs = types.NewOrderedMap()
extendedCounter.EntityData.Leafs.Append("counter-type", types.YLeaf{"CounterType", extendedCounter.CounterType})
extendedCounter.EntityData.Leafs.Append("counter-name", types.YLeaf{"CounterName", extendedCounter.CounterName})
extendedCounter.EntityData.Leafs.Append("l2rb-first-event-ts", types.YLeaf{"L2rbFirstEventTs", extendedCounter.L2rbFirstEventTs})
extendedCounter.EntityData.Leafs.Append("l2rb-last-event-ts", types.YLeaf{"L2rbLastEventTs", extendedCounter.L2rbLastEventTs})
extendedCounter.EntityData.Leafs.Append("l2rb-interval-event-count", types.YLeaf{"L2rbIntervalEventCount", extendedCounter.L2rbIntervalEventCount})
extendedCounter.EntityData.Leafs.Append("l2rb-total-event-count", types.YLeaf{"L2rbTotalEventCount", extendedCounter.L2rbTotalEventCount})
extendedCounter.EntityData.YListKeys = []string {}
return &(extendedCounter.EntityData)
}
// L2rib_Producers
// L2RIB producer table
type L2rib_Producers struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// L2RIB producers. The type is slice of L2rib_Producers_Producer.
Producer []*L2rib_Producers_Producer
}
func (producers *L2rib_Producers) GetEntityData() *types.CommonEntityData {
producers.EntityData.YFilter = producers.YFilter
producers.EntityData.YangName = "producers"
producers.EntityData.BundleName = "cisco_ios_xr"
producers.EntityData.ParentYangName = "l2rib"
producers.EntityData.SegmentPath = "producers"
producers.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/" + producers.EntityData.SegmentPath
producers.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
producers.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
producers.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
producers.EntityData.Children = types.NewOrderedMap()
producers.EntityData.Children.Append("producer", types.YChild{"Producer", nil})
for i := range producers.Producer {
types.SetYListKey(producers.Producer[i], i)
producers.EntityData.Children.Append(types.GetSegmentPath(producers.Producer[i]), types.YChild{"Producer", producers.Producer[i]})
}
producers.EntityData.Leafs = types.NewOrderedMap()
producers.EntityData.YListKeys = []string {}
return &(producers.EntityData)
}
// L2rib_Producers_Producer
// L2RIB producers
type L2rib_Producers_Producer struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Object ID. The type is interface{} with range: 0..4294967295.
ObjectId interface{}
// Product ID. The type is interface{} with range: 0..4294967295.
ProductId interface{}
// Client ID. The type is interface{} with range: 0..4294967295.
ClientId interface{}
// Object Type. The type is L2ribBagObj.
ObjectType interface{}
// Producer ID. The type is L2ribBagProducerId.
ProducerId interface{}
// Producer Name. The type is string.
ProducerName interface{}
// Admin Distance. The type is interface{} with range: 0..4294967295.
AdminDistance interface{}
// Purge Time. The type is interface{} with range: 0..4294967295.
PurgeTime interface{}
// Producer State. The type is L2ribBagProducerState.
State interface{}
}
func (producer *L2rib_Producers_Producer) GetEntityData() *types.CommonEntityData {
producer.EntityData.YFilter = producer.YFilter
producer.EntityData.YangName = "producer"
producer.EntityData.BundleName = "cisco_ios_xr"
producer.EntityData.ParentYangName = "producers"
producer.EntityData.SegmentPath = "producer" + types.AddNoKeyToken(producer)
producer.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/producers/" + producer.EntityData.SegmentPath
producer.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
producer.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
producer.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
producer.EntityData.Children = types.NewOrderedMap()
producer.EntityData.Leafs = types.NewOrderedMap()
producer.EntityData.Leafs.Append("object-id", types.YLeaf{"ObjectId", producer.ObjectId})
producer.EntityData.Leafs.Append("product-id", types.YLeaf{"ProductId", producer.ProductId})
producer.EntityData.Leafs.Append("client-id", types.YLeaf{"ClientId", producer.ClientId})
producer.EntityData.Leafs.Append("object-type", types.YLeaf{"ObjectType", producer.ObjectType})
producer.EntityData.Leafs.Append("producer-id", types.YLeaf{"ProducerId", producer.ProducerId})
producer.EntityData.Leafs.Append("producer-name", types.YLeaf{"ProducerName", producer.ProducerName})
producer.EntityData.Leafs.Append("admin-distance", types.YLeaf{"AdminDistance", producer.AdminDistance})
producer.EntityData.Leafs.Append("purge-time", types.YLeaf{"PurgeTime", producer.PurgeTime})
producer.EntityData.Leafs.Append("state", types.YLeaf{"State", producer.State})
producer.EntityData.YListKeys = []string {}
return &(producer.EntityData)
}
// L2rib_Clients
// L2RIB client table
type L2rib_Clients struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// L2RIB clients. The type is slice of L2rib_Clients_Client.
Client []*L2rib_Clients_Client
}
func (clients *L2rib_Clients) GetEntityData() *types.CommonEntityData {
clients.EntityData.YFilter = clients.YFilter
clients.EntityData.YangName = "clients"
clients.EntityData.BundleName = "cisco_ios_xr"
clients.EntityData.ParentYangName = "l2rib"
clients.EntityData.SegmentPath = "clients"
clients.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/" + clients.EntityData.SegmentPath
clients.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
clients.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
clients.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
clients.EntityData.Children = types.NewOrderedMap()
clients.EntityData.Children.Append("client", types.YChild{"Client", nil})
for i := range clients.Client {
clients.EntityData.Children.Append(types.GetSegmentPath(clients.Client[i]), types.YChild{"Client", clients.Client[i]})
}
clients.EntityData.Leafs = types.NewOrderedMap()
clients.EntityData.YListKeys = []string {}
return &(clients.EntityData)
}
// L2rib_Clients_Client
// L2RIB clients
type L2rib_Clients_Client struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Client ID. The type is interface{} with range:
// 0..4294967295.
ClientId interface{}
// Client ID. The type is interface{} with range: 0..4294967295.
ClientIdXr interface{}
// Process ID. The type is interface{} with range: 0..4294967295.
ProcessId interface{}
// Node ID. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeId interface{}
// Process Name. The type is string.
ProcName interface{}
// Process Suffix. The type is string.
ProcSuffix interface{}
}
func (client *L2rib_Clients_Client) GetEntityData() *types.CommonEntityData {
client.EntityData.YFilter = client.YFilter
client.EntityData.YangName = "client"
client.EntityData.BundleName = "cisco_ios_xr"
client.EntityData.ParentYangName = "clients"
client.EntityData.SegmentPath = "client" + types.AddKeyToken(client.ClientId, "client-id")
client.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/clients/" + client.EntityData.SegmentPath
client.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
client.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
client.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
client.EntityData.Children = types.NewOrderedMap()
client.EntityData.Leafs = types.NewOrderedMap()
client.EntityData.Leafs.Append("client-id", types.YLeaf{"ClientId", client.ClientId})
client.EntityData.Leafs.Append("client-id-xr", types.YLeaf{"ClientIdXr", client.ClientIdXr})
client.EntityData.Leafs.Append("process-id", types.YLeaf{"ProcessId", client.ProcessId})
client.EntityData.Leafs.Append("node-id", types.YLeaf{"NodeId", client.NodeId})
client.EntityData.Leafs.Append("proc-name", types.YLeaf{"ProcName", client.ProcName})
client.EntityData.Leafs.Append("proc-suffix", types.YLeaf{"ProcSuffix", client.ProcSuffix})
client.EntityData.YListKeys = []string {"ClientId"}
return &(client.EntityData)
}
// L2rib_EvisXr
// L2RIB EVPN EVI Detail Table
type L2rib_EvisXr struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// L2RIB EVPN EVI Entry. The type is slice of L2rib_EvisXr_Evi.
Evi []*L2rib_EvisXr_Evi
}
func (evisXr *L2rib_EvisXr) GetEntityData() *types.CommonEntityData {
evisXr.EntityData.YFilter = evisXr.YFilter
evisXr.EntityData.YangName = "evis-xr"
evisXr.EntityData.BundleName = "cisco_ios_xr"
evisXr.EntityData.ParentYangName = "l2rib"
evisXr.EntityData.SegmentPath = "evis-xr"
evisXr.EntityData.AbsolutePath = "Cisco-IOS-XR-l2rib-oper:l2rib/" + evisXr.EntityData.SegmentPath
evisXr.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
evisXr.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
evisXr.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
evisXr.EntityData.Children = types.NewOrderedMap()
evisXr.EntityData.Children.Append("evi", types.YChild{"Evi", nil})
for i := range evisXr.Evi {
evisXr.EntityData.Children.Append(types.GetSegmentPath(evisXr.Evi[i]), types.YChild{"Evi", evisXr.Evi[i]})
}
evisXr.EntityData.Leafs = types.NewOrderedMap()
evisXr.EntityData.YListKeys = []string {}
return &(evisXr.EntityData)
}
// L2rib_EvisXr_Evi
// L2RIB EVPN EVI Entry
type L2rib_EvisXr_Evi struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. EVI ID. The type is interface{} with range:
// 0..4294967295.
Evi interface{}
// l2r vni. The type is interface{} with range: 0..4294967295.
L2rVni interface{}