forked from CiscoDevNet/ydk-go
/
bgp_oper.go
3351 lines (2668 loc) · 182 KB
/
bgp_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 bgp operational data.
// Copyright (c) 2016-2017 by Cisco Systems, Inc.
// All rights reserved.
package bgp_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_xe"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package bgp_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XE-bgp-oper bgp-state-data}", reflect.TypeOf(BgpStateData{}))
ydk.RegisterEntity("Cisco-IOS-XE-bgp-oper:bgp-state-data", reflect.TypeOf(BgpStateData{}))
}
// BgpFsmState represents BGP FSM State
type BgpFsmState string
const (
// neighbor is in Idle state
BgpFsmState_fsm_idle BgpFsmState = "fsm-idle"
// neighbor is in Connect state
BgpFsmState_fsm_connect BgpFsmState = "fsm-connect"
// neighbor is in Active state
BgpFsmState_fsm_active BgpFsmState = "fsm-active"
// neighbor is in OpenSent state
BgpFsmState_fsm_opensent BgpFsmState = "fsm-opensent"
// neighbor is in OpenConfirm state
BgpFsmState_fsm_openconfirm BgpFsmState = "fsm-openconfirm"
// neighbor is in Established state
BgpFsmState_fsm_established BgpFsmState = "fsm-established"
// neighbor is Non Negotiated
BgpFsmState_fsm_nonnegotiated BgpFsmState = "fsm-nonnegotiated"
)
// BgpLink represents Operational state relevent to bgp global neighbor
type BgpLink string
const (
// iBGP neighbors
BgpLink_internal BgpLink = "internal"
// eBGP neighbors
BgpLink_external BgpLink = "external"
)
// BgpMode represents BGP mode
type BgpMode string
const (
// active connection
BgpMode_mode_active BgpMode = "mode-active"
// passive connection
BgpMode_mode_passive BgpMode = "mode-passive"
)
// BgpStateData
// BGP operational state data
type BgpStateData struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// BGP neighbor information.
Neighbors BgpStateData_Neighbors
// BGP address family.
AddressFamilies BgpStateData_AddressFamilies
// BGP VRFs.
BgpRouteVrfs BgpStateData_BgpRouteVrfs
// BGP RDs.
BgpRouteRds BgpStateData_BgpRouteRds
}
func (bgpStateData *BgpStateData) GetEntityData() *types.CommonEntityData {
bgpStateData.EntityData.YFilter = bgpStateData.YFilter
bgpStateData.EntityData.YangName = "bgp-state-data"
bgpStateData.EntityData.BundleName = "cisco_ios_xe"
bgpStateData.EntityData.ParentYangName = "Cisco-IOS-XE-bgp-oper"
bgpStateData.EntityData.SegmentPath = "Cisco-IOS-XE-bgp-oper:bgp-state-data"
bgpStateData.EntityData.AbsolutePath = bgpStateData.EntityData.SegmentPath
bgpStateData.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
bgpStateData.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
bgpStateData.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
bgpStateData.EntityData.Children = types.NewOrderedMap()
bgpStateData.EntityData.Children.Append("neighbors", types.YChild{"Neighbors", &bgpStateData.Neighbors})
bgpStateData.EntityData.Children.Append("address-families", types.YChild{"AddressFamilies", &bgpStateData.AddressFamilies})
bgpStateData.EntityData.Children.Append("bgp-route-vrfs", types.YChild{"BgpRouteVrfs", &bgpStateData.BgpRouteVrfs})
bgpStateData.EntityData.Children.Append("bgp-route-rds", types.YChild{"BgpRouteRds", &bgpStateData.BgpRouteRds})
bgpStateData.EntityData.Leafs = types.NewOrderedMap()
bgpStateData.EntityData.YListKeys = []string {}
return &(bgpStateData.EntityData)
}
// BgpStateData_Neighbors
// BGP neighbor information
type BgpStateData_Neighbors struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of BGP neighbors. The type is slice of
// BgpStateData_Neighbors_Neighbor.
Neighbor []*BgpStateData_Neighbors_Neighbor
}
func (neighbors *BgpStateData_Neighbors) GetEntityData() *types.CommonEntityData {
neighbors.EntityData.YFilter = neighbors.YFilter
neighbors.EntityData.YangName = "neighbors"
neighbors.EntityData.BundleName = "cisco_ios_xe"
neighbors.EntityData.ParentYangName = "bgp-state-data"
neighbors.EntityData.SegmentPath = "neighbors"
neighbors.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/" + neighbors.EntityData.SegmentPath
neighbors.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
neighbors.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
neighbors.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
neighbors.EntityData.Children = types.NewOrderedMap()
neighbors.EntityData.Children.Append("neighbor", types.YChild{"Neighbor", nil})
for i := range neighbors.Neighbor {
neighbors.EntityData.Children.Append(types.GetSegmentPath(neighbors.Neighbor[i]), types.YChild{"Neighbor", neighbors.Neighbor[i]})
}
neighbors.EntityData.Leafs = types.NewOrderedMap()
neighbors.EntityData.YListKeys = []string {}
return &(neighbors.EntityData)
}
// BgpStateData_Neighbors_Neighbor
// List of BGP neighbors
type BgpStateData_Neighbors_Neighbor struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Afi-safi key. The type is AfiSafi.
AfiSafi interface{}
// This attribute is a key. VRF name. The type is string.
VrfName interface{}
// This attribute is a key. Neighbor identifier. The type is string.
NeighborId interface{}
// Neighbor description string. The type is string.
Description interface{}
// BGP version being used to communicate with the remote router. The type is
// interface{} with range: 0..65535.
BgpVersion interface{}
// Neighbor link type. The type is BgpLink.
Link interface{}
// Amout of time the bgp session has been up since being established. The type
// is string.
UpTime interface{}
// Time since BGP last sent a message to the neighbor. The type is string.
LastWrite interface{}
// Time since BGP last received a message from the neighbor. The type is
// string.
LastRead interface{}
// The number of installed prefixes. The type is interface{} with range:
// 0..4294967295.
InstalledPrefixes interface{}
// BGP neighbor session state. The type is BgpFsmState.
SessionState interface{}
// Negotiated capabilities for neighbor session. The type is slice of string.
NegotiatedCap []interface{}
// BGP neighbor AS number. The type is interface{} with range: 0..4294967295.
As interface{}
// Negotiated keepalive timers status of BGP neighbor.
NegotiatedKeepaliveTimers BgpStateData_Neighbors_Neighbor_NegotiatedKeepaliveTimers
// BGP neighbor session counters.
BgpNeighborCounters BgpStateData_Neighbors_Neighbor_BgpNeighborCounters
// BGP neighbor connection.
Connection BgpStateData_Neighbors_Neighbor_Connection
// BGP neighbor transport.
Transport BgpStateData_Neighbors_Neighbor_Transport
// BGP neighbor activity.
PrefixActivity BgpStateData_Neighbors_Neighbor_PrefixActivity
}
func (neighbor *BgpStateData_Neighbors_Neighbor) GetEntityData() *types.CommonEntityData {
neighbor.EntityData.YFilter = neighbor.YFilter
neighbor.EntityData.YangName = "neighbor"
neighbor.EntityData.BundleName = "cisco_ios_xe"
neighbor.EntityData.ParentYangName = "neighbors"
neighbor.EntityData.SegmentPath = "neighbor" + types.AddKeyToken(neighbor.AfiSafi, "afi-safi") + types.AddKeyToken(neighbor.VrfName, "vrf-name") + types.AddKeyToken(neighbor.NeighborId, "neighbor-id")
neighbor.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/" + neighbor.EntityData.SegmentPath
neighbor.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
neighbor.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
neighbor.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
neighbor.EntityData.Children = types.NewOrderedMap()
neighbor.EntityData.Children.Append("negotiated-keepalive-timers", types.YChild{"NegotiatedKeepaliveTimers", &neighbor.NegotiatedKeepaliveTimers})
neighbor.EntityData.Children.Append("bgp-neighbor-counters", types.YChild{"BgpNeighborCounters", &neighbor.BgpNeighborCounters})
neighbor.EntityData.Children.Append("connection", types.YChild{"Connection", &neighbor.Connection})
neighbor.EntityData.Children.Append("transport", types.YChild{"Transport", &neighbor.Transport})
neighbor.EntityData.Children.Append("prefix-activity", types.YChild{"PrefixActivity", &neighbor.PrefixActivity})
neighbor.EntityData.Leafs = types.NewOrderedMap()
neighbor.EntityData.Leafs.Append("afi-safi", types.YLeaf{"AfiSafi", neighbor.AfiSafi})
neighbor.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", neighbor.VrfName})
neighbor.EntityData.Leafs.Append("neighbor-id", types.YLeaf{"NeighborId", neighbor.NeighborId})
neighbor.EntityData.Leafs.Append("description", types.YLeaf{"Description", neighbor.Description})
neighbor.EntityData.Leafs.Append("bgp-version", types.YLeaf{"BgpVersion", neighbor.BgpVersion})
neighbor.EntityData.Leafs.Append("link", types.YLeaf{"Link", neighbor.Link})
neighbor.EntityData.Leafs.Append("up-time", types.YLeaf{"UpTime", neighbor.UpTime})
neighbor.EntityData.Leafs.Append("last-write", types.YLeaf{"LastWrite", neighbor.LastWrite})
neighbor.EntityData.Leafs.Append("last-read", types.YLeaf{"LastRead", neighbor.LastRead})
neighbor.EntityData.Leafs.Append("installed-prefixes", types.YLeaf{"InstalledPrefixes", neighbor.InstalledPrefixes})
neighbor.EntityData.Leafs.Append("session-state", types.YLeaf{"SessionState", neighbor.SessionState})
neighbor.EntityData.Leafs.Append("negotiated-cap", types.YLeaf{"NegotiatedCap", neighbor.NegotiatedCap})
neighbor.EntityData.Leafs.Append("as", types.YLeaf{"As", neighbor.As})
neighbor.EntityData.YListKeys = []string {"AfiSafi", "VrfName", "NeighborId"}
return &(neighbor.EntityData)
}
// BgpStateData_Neighbors_Neighbor_NegotiatedKeepaliveTimers
// Negotiated keepalive timers status of BGP neighbor
type BgpStateData_Neighbors_Neighbor_NegotiatedKeepaliveTimers struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Hold time. The type is interface{} with range: 0..65535.
HoldTime interface{}
// Keepalive interval. The type is interface{} with range: 0..65535.
KeepaliveInterval interface{}
}
func (negotiatedKeepaliveTimers *BgpStateData_Neighbors_Neighbor_NegotiatedKeepaliveTimers) GetEntityData() *types.CommonEntityData {
negotiatedKeepaliveTimers.EntityData.YFilter = negotiatedKeepaliveTimers.YFilter
negotiatedKeepaliveTimers.EntityData.YangName = "negotiated-keepalive-timers"
negotiatedKeepaliveTimers.EntityData.BundleName = "cisco_ios_xe"
negotiatedKeepaliveTimers.EntityData.ParentYangName = "neighbor"
negotiatedKeepaliveTimers.EntityData.SegmentPath = "negotiated-keepalive-timers"
negotiatedKeepaliveTimers.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/" + negotiatedKeepaliveTimers.EntityData.SegmentPath
negotiatedKeepaliveTimers.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
negotiatedKeepaliveTimers.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
negotiatedKeepaliveTimers.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
negotiatedKeepaliveTimers.EntityData.Children = types.NewOrderedMap()
negotiatedKeepaliveTimers.EntityData.Leafs = types.NewOrderedMap()
negotiatedKeepaliveTimers.EntityData.Leafs.Append("hold-time", types.YLeaf{"HoldTime", negotiatedKeepaliveTimers.HoldTime})
negotiatedKeepaliveTimers.EntityData.Leafs.Append("keepalive-interval", types.YLeaf{"KeepaliveInterval", negotiatedKeepaliveTimers.KeepaliveInterval})
negotiatedKeepaliveTimers.EntityData.YListKeys = []string {}
return &(negotiatedKeepaliveTimers.EntityData)
}
// BgpStateData_Neighbors_Neighbor_BgpNeighborCounters
// BGP neighbor session counters
type BgpStateData_Neighbors_Neighbor_BgpNeighborCounters struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Input Q depth. The type is interface{} with range: 0..4294967295.
InqDepth interface{}
// Output Q depth. The type is interface{} with range: 0..4294967295.
OutqDepth interface{}
// Number of mesaged sent.
Sent BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Sent
// Number of mesaged received.
Received BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Received
}
func (bgpNeighborCounters *BgpStateData_Neighbors_Neighbor_BgpNeighborCounters) GetEntityData() *types.CommonEntityData {
bgpNeighborCounters.EntityData.YFilter = bgpNeighborCounters.YFilter
bgpNeighborCounters.EntityData.YangName = "bgp-neighbor-counters"
bgpNeighborCounters.EntityData.BundleName = "cisco_ios_xe"
bgpNeighborCounters.EntityData.ParentYangName = "neighbor"
bgpNeighborCounters.EntityData.SegmentPath = "bgp-neighbor-counters"
bgpNeighborCounters.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/" + bgpNeighborCounters.EntityData.SegmentPath
bgpNeighborCounters.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
bgpNeighborCounters.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
bgpNeighborCounters.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
bgpNeighborCounters.EntityData.Children = types.NewOrderedMap()
bgpNeighborCounters.EntityData.Children.Append("sent", types.YChild{"Sent", &bgpNeighborCounters.Sent})
bgpNeighborCounters.EntityData.Children.Append("received", types.YChild{"Received", &bgpNeighborCounters.Received})
bgpNeighborCounters.EntityData.Leafs = types.NewOrderedMap()
bgpNeighborCounters.EntityData.Leafs.Append("inq-depth", types.YLeaf{"InqDepth", bgpNeighborCounters.InqDepth})
bgpNeighborCounters.EntityData.Leafs.Append("outq-depth", types.YLeaf{"OutqDepth", bgpNeighborCounters.OutqDepth})
bgpNeighborCounters.EntityData.YListKeys = []string {}
return &(bgpNeighborCounters.EntityData)
}
// BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Sent
// Number of mesaged sent
type BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Sent struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// OPEN message count. The type is interface{} with range: 0..4294967295.
Opens interface{}
// UPDATE message count. The type is interface{} with range: 0..4294967295.
Updates interface{}
// NOTIFICATION message count. The type is interface{} with range:
// 0..4294967295.
Notifications interface{}
// KEEPALIVE message count. The type is interface{} with range: 0..4294967295.
Keepalives interface{}
// Route refresh message count. The type is interface{} with range:
// 0..4294967295.
RouteRefreshes interface{}
}
func (sent *BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Sent) GetEntityData() *types.CommonEntityData {
sent.EntityData.YFilter = sent.YFilter
sent.EntityData.YangName = "sent"
sent.EntityData.BundleName = "cisco_ios_xe"
sent.EntityData.ParentYangName = "bgp-neighbor-counters"
sent.EntityData.SegmentPath = "sent"
sent.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/bgp-neighbor-counters/" + sent.EntityData.SegmentPath
sent.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
sent.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
sent.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
sent.EntityData.Children = types.NewOrderedMap()
sent.EntityData.Leafs = types.NewOrderedMap()
sent.EntityData.Leafs.Append("opens", types.YLeaf{"Opens", sent.Opens})
sent.EntityData.Leafs.Append("updates", types.YLeaf{"Updates", sent.Updates})
sent.EntityData.Leafs.Append("notifications", types.YLeaf{"Notifications", sent.Notifications})
sent.EntityData.Leafs.Append("keepalives", types.YLeaf{"Keepalives", sent.Keepalives})
sent.EntityData.Leafs.Append("route-refreshes", types.YLeaf{"RouteRefreshes", sent.RouteRefreshes})
sent.EntityData.YListKeys = []string {}
return &(sent.EntityData)
}
// BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Received
// Number of mesaged received
type BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Received struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// OPEN message count. The type is interface{} with range: 0..4294967295.
Opens interface{}
// UPDATE message count. The type is interface{} with range: 0..4294967295.
Updates interface{}
// NOTIFICATION message count. The type is interface{} with range:
// 0..4294967295.
Notifications interface{}
// KEEPALIVE message count. The type is interface{} with range: 0..4294967295.
Keepalives interface{}
// Route refresh message count. The type is interface{} with range:
// 0..4294967295.
RouteRefreshes interface{}
}
func (received *BgpStateData_Neighbors_Neighbor_BgpNeighborCounters_Received) GetEntityData() *types.CommonEntityData {
received.EntityData.YFilter = received.YFilter
received.EntityData.YangName = "received"
received.EntityData.BundleName = "cisco_ios_xe"
received.EntityData.ParentYangName = "bgp-neighbor-counters"
received.EntityData.SegmentPath = "received"
received.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/bgp-neighbor-counters/" + received.EntityData.SegmentPath
received.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
received.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
received.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
received.EntityData.Children = types.NewOrderedMap()
received.EntityData.Leafs = types.NewOrderedMap()
received.EntityData.Leafs.Append("opens", types.YLeaf{"Opens", received.Opens})
received.EntityData.Leafs.Append("updates", types.YLeaf{"Updates", received.Updates})
received.EntityData.Leafs.Append("notifications", types.YLeaf{"Notifications", received.Notifications})
received.EntityData.Leafs.Append("keepalives", types.YLeaf{"Keepalives", received.Keepalives})
received.EntityData.Leafs.Append("route-refreshes", types.YLeaf{"RouteRefreshes", received.RouteRefreshes})
received.EntityData.YListKeys = []string {}
return &(received.EntityData)
}
// BgpStateData_Neighbors_Neighbor_Connection
// BGP neighbor connection
type BgpStateData_Neighbors_Neighbor_Connection struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TCP FSM state. The type is TcpFsmState.
State interface{}
// BGP transport connection mode. The type is BgpMode.
Mode interface{}
// The number of times a TCP and BGP connection has been successfully
// established. The type is interface{} with range: 0..4294967295.
TotalEstablished interface{}
// The number of times that a valid session has failed or been taken down. The
// type is interface{} with range: 0..4294967295.
TotalDropped interface{}
// Time since peering session was last reset. The type is string.
LastReset interface{}
// The reason for the last reset. The type is string.
ResetReason interface{}
}
func (connection *BgpStateData_Neighbors_Neighbor_Connection) GetEntityData() *types.CommonEntityData {
connection.EntityData.YFilter = connection.YFilter
connection.EntityData.YangName = "connection"
connection.EntityData.BundleName = "cisco_ios_xe"
connection.EntityData.ParentYangName = "neighbor"
connection.EntityData.SegmentPath = "connection"
connection.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/" + connection.EntityData.SegmentPath
connection.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
connection.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
connection.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
connection.EntityData.Children = types.NewOrderedMap()
connection.EntityData.Leafs = types.NewOrderedMap()
connection.EntityData.Leafs.Append("state", types.YLeaf{"State", connection.State})
connection.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", connection.Mode})
connection.EntityData.Leafs.Append("total-established", types.YLeaf{"TotalEstablished", connection.TotalEstablished})
connection.EntityData.Leafs.Append("total-dropped", types.YLeaf{"TotalDropped", connection.TotalDropped})
connection.EntityData.Leafs.Append("last-reset", types.YLeaf{"LastReset", connection.LastReset})
connection.EntityData.Leafs.Append("reset-reason", types.YLeaf{"ResetReason", connection.ResetReason})
connection.EntityData.YListKeys = []string {}
return &(connection.EntityData)
}
// BgpStateData_Neighbors_Neighbor_Transport
// BGP neighbor transport
type BgpStateData_Neighbors_Neighbor_Transport struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Indication whether path MTU discovrey is enabled. The type is bool.
PathMtuDiscovery interface{}
// Local TCP port used for TCP session. The type is interface{} with range:
// 0..4294967295.
LocalPort interface{}
// Local address used for the TCP session. The type is one of the following
// types: 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}]+)?,
// or 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}]+)?.
LocalHost interface{}
// Remote port used by the peer for the TCP session. The type is interface{}
// with range: 0..4294967295.
ForeignPort interface{}
// Remote address of the BGP session. The type is one of the following types:
// 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}]+)?,
// or 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}]+)?.
ForeignHost interface{}
// Maximum Data segment size. The type is interface{} with range:
// 0..4294967295.
Mss interface{}
}
func (transport *BgpStateData_Neighbors_Neighbor_Transport) GetEntityData() *types.CommonEntityData {
transport.EntityData.YFilter = transport.YFilter
transport.EntityData.YangName = "transport"
transport.EntityData.BundleName = "cisco_ios_xe"
transport.EntityData.ParentYangName = "neighbor"
transport.EntityData.SegmentPath = "transport"
transport.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/" + transport.EntityData.SegmentPath
transport.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
transport.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
transport.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
transport.EntityData.Children = types.NewOrderedMap()
transport.EntityData.Leafs = types.NewOrderedMap()
transport.EntityData.Leafs.Append("path-mtu-discovery", types.YLeaf{"PathMtuDiscovery", transport.PathMtuDiscovery})
transport.EntityData.Leafs.Append("local-port", types.YLeaf{"LocalPort", transport.LocalPort})
transport.EntityData.Leafs.Append("local-host", types.YLeaf{"LocalHost", transport.LocalHost})
transport.EntityData.Leafs.Append("foreign-port", types.YLeaf{"ForeignPort", transport.ForeignPort})
transport.EntityData.Leafs.Append("foreign-host", types.YLeaf{"ForeignHost", transport.ForeignHost})
transport.EntityData.Leafs.Append("mss", types.YLeaf{"Mss", transport.Mss})
transport.EntityData.YListKeys = []string {}
return &(transport.EntityData)
}
// BgpStateData_Neighbors_Neighbor_PrefixActivity
// BGP neighbor activity
type BgpStateData_Neighbors_Neighbor_PrefixActivity struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Number of prefixes sent.
Sent BgpStateData_Neighbors_Neighbor_PrefixActivity_Sent
// Number of prefixes received.
Received BgpStateData_Neighbors_Neighbor_PrefixActivity_Received
}
func (prefixActivity *BgpStateData_Neighbors_Neighbor_PrefixActivity) GetEntityData() *types.CommonEntityData {
prefixActivity.EntityData.YFilter = prefixActivity.YFilter
prefixActivity.EntityData.YangName = "prefix-activity"
prefixActivity.EntityData.BundleName = "cisco_ios_xe"
prefixActivity.EntityData.ParentYangName = "neighbor"
prefixActivity.EntityData.SegmentPath = "prefix-activity"
prefixActivity.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/" + prefixActivity.EntityData.SegmentPath
prefixActivity.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
prefixActivity.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
prefixActivity.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
prefixActivity.EntityData.Children = types.NewOrderedMap()
prefixActivity.EntityData.Children.Append("sent", types.YChild{"Sent", &prefixActivity.Sent})
prefixActivity.EntityData.Children.Append("received", types.YChild{"Received", &prefixActivity.Received})
prefixActivity.EntityData.Leafs = types.NewOrderedMap()
prefixActivity.EntityData.YListKeys = []string {}
return &(prefixActivity.EntityData)
}
// BgpStateData_Neighbors_Neighbor_PrefixActivity_Sent
// Number of prefixes sent
type BgpStateData_Neighbors_Neighbor_PrefixActivity_Sent struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The current number of accepted prefixes. The type is interface{} with
// range: 0..18446744073709551615.
CurrentPrefixes interface{}
// The total number of accepted prefixes. The type is interface{} with range:
// 0..18446744073709551615.
TotalPrefixes interface{}
// The number of times a prefix has been withdrawn and readvertised. The type
// is interface{} with range: 0..18446744073709551615.
ImplicitWithdraw interface{}
// The number of times a prefix has been withdrawn because it is no longer
// feasible. The type is interface{} with range: 0..18446744073709551615.
ExplicitWithdraw interface{}
// The number of received prefixes installed as best paths. The type is
// interface{} with range: 0..18446744073709551615.
Bestpaths interface{}
// The number of received prefixes installed as multipaths. The type is
// interface{} with range: 0..18446744073709551615.
Multipaths interface{}
}
func (sent *BgpStateData_Neighbors_Neighbor_PrefixActivity_Sent) GetEntityData() *types.CommonEntityData {
sent.EntityData.YFilter = sent.YFilter
sent.EntityData.YangName = "sent"
sent.EntityData.BundleName = "cisco_ios_xe"
sent.EntityData.ParentYangName = "prefix-activity"
sent.EntityData.SegmentPath = "sent"
sent.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/prefix-activity/" + sent.EntityData.SegmentPath
sent.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
sent.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
sent.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
sent.EntityData.Children = types.NewOrderedMap()
sent.EntityData.Leafs = types.NewOrderedMap()
sent.EntityData.Leafs.Append("current-prefixes", types.YLeaf{"CurrentPrefixes", sent.CurrentPrefixes})
sent.EntityData.Leafs.Append("total-prefixes", types.YLeaf{"TotalPrefixes", sent.TotalPrefixes})
sent.EntityData.Leafs.Append("implicit-withdraw", types.YLeaf{"ImplicitWithdraw", sent.ImplicitWithdraw})
sent.EntityData.Leafs.Append("explicit-withdraw", types.YLeaf{"ExplicitWithdraw", sent.ExplicitWithdraw})
sent.EntityData.Leafs.Append("bestpaths", types.YLeaf{"Bestpaths", sent.Bestpaths})
sent.EntityData.Leafs.Append("multipaths", types.YLeaf{"Multipaths", sent.Multipaths})
sent.EntityData.YListKeys = []string {}
return &(sent.EntityData)
}
// BgpStateData_Neighbors_Neighbor_PrefixActivity_Received
// Number of prefixes received
type BgpStateData_Neighbors_Neighbor_PrefixActivity_Received struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The current number of accepted prefixes. The type is interface{} with
// range: 0..18446744073709551615.
CurrentPrefixes interface{}
// The total number of accepted prefixes. The type is interface{} with range:
// 0..18446744073709551615.
TotalPrefixes interface{}
// The number of times a prefix has been withdrawn and readvertised. The type
// is interface{} with range: 0..18446744073709551615.
ImplicitWithdraw interface{}
// The number of times a prefix has been withdrawn because it is no longer
// feasible. The type is interface{} with range: 0..18446744073709551615.
ExplicitWithdraw interface{}
// The number of received prefixes installed as best paths. The type is
// interface{} with range: 0..18446744073709551615.
Bestpaths interface{}
// The number of received prefixes installed as multipaths. The type is
// interface{} with range: 0..18446744073709551615.
Multipaths interface{}
}
func (received *BgpStateData_Neighbors_Neighbor_PrefixActivity_Received) GetEntityData() *types.CommonEntityData {
received.EntityData.YFilter = received.YFilter
received.EntityData.YangName = "received"
received.EntityData.BundleName = "cisco_ios_xe"
received.EntityData.ParentYangName = "prefix-activity"
received.EntityData.SegmentPath = "received"
received.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors/neighbor/prefix-activity/" + received.EntityData.SegmentPath
received.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
received.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
received.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
received.EntityData.Children = types.NewOrderedMap()
received.EntityData.Leafs = types.NewOrderedMap()
received.EntityData.Leafs.Append("current-prefixes", types.YLeaf{"CurrentPrefixes", received.CurrentPrefixes})
received.EntityData.Leafs.Append("total-prefixes", types.YLeaf{"TotalPrefixes", received.TotalPrefixes})
received.EntityData.Leafs.Append("implicit-withdraw", types.YLeaf{"ImplicitWithdraw", received.ImplicitWithdraw})
received.EntityData.Leafs.Append("explicit-withdraw", types.YLeaf{"ExplicitWithdraw", received.ExplicitWithdraw})
received.EntityData.Leafs.Append("bestpaths", types.YLeaf{"Bestpaths", received.Bestpaths})
received.EntityData.Leafs.Append("multipaths", types.YLeaf{"Multipaths", received.Multipaths})
received.EntityData.YListKeys = []string {}
return &(received.EntityData)
}
// BgpStateData_AddressFamilies
// BGP address family
type BgpStateData_AddressFamilies struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of BGP address families. The type is slice of
// BgpStateData_AddressFamilies_AddressFamily.
AddressFamily []*BgpStateData_AddressFamilies_AddressFamily
}
func (addressFamilies *BgpStateData_AddressFamilies) GetEntityData() *types.CommonEntityData {
addressFamilies.EntityData.YFilter = addressFamilies.YFilter
addressFamilies.EntityData.YangName = "address-families"
addressFamilies.EntityData.BundleName = "cisco_ios_xe"
addressFamilies.EntityData.ParentYangName = "bgp-state-data"
addressFamilies.EntityData.SegmentPath = "address-families"
addressFamilies.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/" + addressFamilies.EntityData.SegmentPath
addressFamilies.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
addressFamilies.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
addressFamilies.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
addressFamilies.EntityData.Children = types.NewOrderedMap()
addressFamilies.EntityData.Children.Append("address-family", types.YChild{"AddressFamily", nil})
for i := range addressFamilies.AddressFamily {
addressFamilies.EntityData.Children.Append(types.GetSegmentPath(addressFamilies.AddressFamily[i]), types.YChild{"AddressFamily", addressFamilies.AddressFamily[i]})
}
addressFamilies.EntityData.Leafs = types.NewOrderedMap()
addressFamilies.EntityData.YListKeys = []string {}
return &(addressFamilies.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily
// List of BGP address families
type BgpStateData_AddressFamilies_AddressFamily struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Afi-safi value. The type is AfiSafi.
AfiSafi interface{}
// This attribute is a key. VRF name. The type is string.
VrfName interface{}
// Router ID. The type is one of the following types: 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}]+)?,
// or 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}]+)?.
RouterId interface{}
// BGP table version number. The type is interface{} with range:
// 0..18446744073709551615.
BgpTableVersion interface{}
// Routing table version number. The type is interface{} with range:
// 0..18446744073709551615.
RoutingTableVersion interface{}
// Total memory in use. The type is interface{} with range:
// 0..18446744073709551615.
TotalMemory interface{}
// Local AS number. The type is interface{} with range: 0..4294967295.
LocalAs interface{}
// Prefix entry statistics.
Prefixes BgpStateData_AddressFamilies_AddressFamily_Prefixes
// Path entry statistics.
Path BgpStateData_AddressFamilies_AddressFamily_Path
// AS path entry statistics.
AsPath BgpStateData_AddressFamilies_AddressFamily_AsPath
// Route map entry statistics.
RouteMap BgpStateData_AddressFamilies_AddressFamily_RouteMap
// Filter list entry statistics.
FilterList BgpStateData_AddressFamilies_AddressFamily_FilterList
// BGP activity information.
Activities BgpStateData_AddressFamilies_AddressFamily_Activities
// Neighbor summary.
BgpNeighborSummaries BgpStateData_AddressFamilies_AddressFamily_BgpNeighborSummaries
}
func (addressFamily *BgpStateData_AddressFamilies_AddressFamily) GetEntityData() *types.CommonEntityData {
addressFamily.EntityData.YFilter = addressFamily.YFilter
addressFamily.EntityData.YangName = "address-family"
addressFamily.EntityData.BundleName = "cisco_ios_xe"
addressFamily.EntityData.ParentYangName = "address-families"
addressFamily.EntityData.SegmentPath = "address-family" + types.AddKeyToken(addressFamily.AfiSafi, "afi-safi") + types.AddKeyToken(addressFamily.VrfName, "vrf-name")
addressFamily.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/address-families/" + addressFamily.EntityData.SegmentPath
addressFamily.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
addressFamily.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
addressFamily.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
addressFamily.EntityData.Children = types.NewOrderedMap()
addressFamily.EntityData.Children.Append("prefixes", types.YChild{"Prefixes", &addressFamily.Prefixes})
addressFamily.EntityData.Children.Append("path", types.YChild{"Path", &addressFamily.Path})
addressFamily.EntityData.Children.Append("as-path", types.YChild{"AsPath", &addressFamily.AsPath})
addressFamily.EntityData.Children.Append("route-map", types.YChild{"RouteMap", &addressFamily.RouteMap})
addressFamily.EntityData.Children.Append("filter-list", types.YChild{"FilterList", &addressFamily.FilterList})
addressFamily.EntityData.Children.Append("activities", types.YChild{"Activities", &addressFamily.Activities})
addressFamily.EntityData.Children.Append("bgp-neighbor-summaries", types.YChild{"BgpNeighborSummaries", &addressFamily.BgpNeighborSummaries})
addressFamily.EntityData.Leafs = types.NewOrderedMap()
addressFamily.EntityData.Leafs.Append("afi-safi", types.YLeaf{"AfiSafi", addressFamily.AfiSafi})
addressFamily.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", addressFamily.VrfName})
addressFamily.EntityData.Leafs.Append("router-id", types.YLeaf{"RouterId", addressFamily.RouterId})
addressFamily.EntityData.Leafs.Append("bgp-table-version", types.YLeaf{"BgpTableVersion", addressFamily.BgpTableVersion})
addressFamily.EntityData.Leafs.Append("routing-table-version", types.YLeaf{"RoutingTableVersion", addressFamily.RoutingTableVersion})
addressFamily.EntityData.Leafs.Append("total-memory", types.YLeaf{"TotalMemory", addressFamily.TotalMemory})
addressFamily.EntityData.Leafs.Append("local-as", types.YLeaf{"LocalAs", addressFamily.LocalAs})
addressFamily.EntityData.YListKeys = []string {"AfiSafi", "VrfName"}
return &(addressFamily.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily_Prefixes
// Prefix entry statistics
type BgpStateData_AddressFamilies_AddressFamily_Prefixes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The total number of prefix entries. The type is interface{} with range:
// 0..18446744073709551615.
TotalEntries interface{}
// Total memory usage in byte. The type is interface{} with range:
// 0..18446744073709551615.
MemoryUsage interface{}
}
func (prefixes *BgpStateData_AddressFamilies_AddressFamily_Prefixes) GetEntityData() *types.CommonEntityData {
prefixes.EntityData.YFilter = prefixes.YFilter
prefixes.EntityData.YangName = "prefixes"
prefixes.EntityData.BundleName = "cisco_ios_xe"
prefixes.EntityData.ParentYangName = "address-family"
prefixes.EntityData.SegmentPath = "prefixes"
prefixes.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/address-families/address-family/" + prefixes.EntityData.SegmentPath
prefixes.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
prefixes.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
prefixes.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
prefixes.EntityData.Children = types.NewOrderedMap()
prefixes.EntityData.Leafs = types.NewOrderedMap()
prefixes.EntityData.Leafs.Append("total-entries", types.YLeaf{"TotalEntries", prefixes.TotalEntries})
prefixes.EntityData.Leafs.Append("memory-usage", types.YLeaf{"MemoryUsage", prefixes.MemoryUsage})
prefixes.EntityData.YListKeys = []string {}
return &(prefixes.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily_Path
// Path entry statistics
type BgpStateData_AddressFamilies_AddressFamily_Path struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The total number of prefix entries. The type is interface{} with range:
// 0..18446744073709551615.
TotalEntries interface{}
// Total memory usage in byte. The type is interface{} with range:
// 0..18446744073709551615.
MemoryUsage interface{}
}
func (path *BgpStateData_AddressFamilies_AddressFamily_Path) GetEntityData() *types.CommonEntityData {
path.EntityData.YFilter = path.YFilter
path.EntityData.YangName = "path"
path.EntityData.BundleName = "cisco_ios_xe"
path.EntityData.ParentYangName = "address-family"
path.EntityData.SegmentPath = "path"
path.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/address-families/address-family/" + path.EntityData.SegmentPath
path.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
path.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
path.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
path.EntityData.Children = types.NewOrderedMap()
path.EntityData.Leafs = types.NewOrderedMap()
path.EntityData.Leafs.Append("total-entries", types.YLeaf{"TotalEntries", path.TotalEntries})
path.EntityData.Leafs.Append("memory-usage", types.YLeaf{"MemoryUsage", path.MemoryUsage})
path.EntityData.YListKeys = []string {}
return &(path.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily_AsPath
// AS path entry statistics
type BgpStateData_AddressFamilies_AddressFamily_AsPath struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The total number of prefix entries. The type is interface{} with range:
// 0..18446744073709551615.
TotalEntries interface{}
// Total memory usage in byte. The type is interface{} with range:
// 0..18446744073709551615.
MemoryUsage interface{}
}
func (asPath *BgpStateData_AddressFamilies_AddressFamily_AsPath) GetEntityData() *types.CommonEntityData {
asPath.EntityData.YFilter = asPath.YFilter
asPath.EntityData.YangName = "as-path"
asPath.EntityData.BundleName = "cisco_ios_xe"
asPath.EntityData.ParentYangName = "address-family"
asPath.EntityData.SegmentPath = "as-path"
asPath.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/address-families/address-family/" + asPath.EntityData.SegmentPath
asPath.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
asPath.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
asPath.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
asPath.EntityData.Children = types.NewOrderedMap()
asPath.EntityData.Leafs = types.NewOrderedMap()
asPath.EntityData.Leafs.Append("total-entries", types.YLeaf{"TotalEntries", asPath.TotalEntries})
asPath.EntityData.Leafs.Append("memory-usage", types.YLeaf{"MemoryUsage", asPath.MemoryUsage})
asPath.EntityData.YListKeys = []string {}
return &(asPath.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily_RouteMap
// Route map entry statistics
type BgpStateData_AddressFamilies_AddressFamily_RouteMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The total number of prefix entries. The type is interface{} with range:
// 0..18446744073709551615.
TotalEntries interface{}
// Total memory usage in byte. The type is interface{} with range:
// 0..18446744073709551615.
MemoryUsage interface{}
}
func (routeMap *BgpStateData_AddressFamilies_AddressFamily_RouteMap) GetEntityData() *types.CommonEntityData {
routeMap.EntityData.YFilter = routeMap.YFilter
routeMap.EntityData.YangName = "route-map"
routeMap.EntityData.BundleName = "cisco_ios_xe"
routeMap.EntityData.ParentYangName = "address-family"
routeMap.EntityData.SegmentPath = "route-map"
routeMap.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/address-families/address-family/" + routeMap.EntityData.SegmentPath
routeMap.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
routeMap.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
routeMap.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
routeMap.EntityData.Children = types.NewOrderedMap()
routeMap.EntityData.Leafs = types.NewOrderedMap()
routeMap.EntityData.Leafs.Append("total-entries", types.YLeaf{"TotalEntries", routeMap.TotalEntries})
routeMap.EntityData.Leafs.Append("memory-usage", types.YLeaf{"MemoryUsage", routeMap.MemoryUsage})
routeMap.EntityData.YListKeys = []string {}
return &(routeMap.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily_FilterList
// Filter list entry statistics
type BgpStateData_AddressFamilies_AddressFamily_FilterList struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The total number of prefix entries. The type is interface{} with range:
// 0..18446744073709551615.
TotalEntries interface{}
// Total memory usage in byte. The type is interface{} with range:
// 0..18446744073709551615.
MemoryUsage interface{}
}
func (filterList *BgpStateData_AddressFamilies_AddressFamily_FilterList) GetEntityData() *types.CommonEntityData {
filterList.EntityData.YFilter = filterList.YFilter
filterList.EntityData.YangName = "filter-list"
filterList.EntityData.BundleName = "cisco_ios_xe"
filterList.EntityData.ParentYangName = "address-family"
filterList.EntityData.SegmentPath = "filter-list"
filterList.EntityData.AbsolutePath = "Cisco-IOS-XE-bgp-oper:bgp-state-data/address-families/address-family/" + filterList.EntityData.SegmentPath
filterList.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
filterList.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
filterList.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
filterList.EntityData.Children = types.NewOrderedMap()
filterList.EntityData.Leafs = types.NewOrderedMap()
filterList.EntityData.Leafs.Append("total-entries", types.YLeaf{"TotalEntries", filterList.TotalEntries})
filterList.EntityData.Leafs.Append("memory-usage", types.YLeaf{"MemoryUsage", filterList.MemoryUsage})
filterList.EntityData.YListKeys = []string {}
return &(filterList.EntityData)
}
// BgpStateData_AddressFamilies_AddressFamily_Activities
// BGP activity information
type BgpStateData_AddressFamilies_AddressFamily_Activities struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Total number of prefixes. The type is interface{} with range:
// 0..18446744073709551615.
Prefixes interface{}
// Total number of paths. The type is interface{} with range:
// 0..18446744073709551615.
Paths interface{}
// Scan interval in seconds. The type is string.
ScanInterval interface{}
}