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
/
lisp_oper.go
2034 lines (1655 loc) · 105 KB
/
lisp_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
// LISP operational data.
// Copyright (c) 2017-2018 by Cisco Systems, Inc.
// All rights reserved.
package lisp_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 lisp_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XE-lisp-oper lisp-state}", reflect.TypeOf(LispState{}))
ydk.RegisterEntity("Cisco-IOS-XE-lisp-oper:lisp-state", reflect.TypeOf(LispState{}))
}
// LispAddressFamilyType represents Address-family of a LISP address or prefix
type LispAddressFamilyType string
const (
// IANA IPv4 address family
LispAddressFamilyType_ipv4_afi LispAddressFamilyType = "ipv4-afi"
// IANA IPv6 address family
LispAddressFamilyType_ipv6_afi LispAddressFamilyType = "ipv6-afi"
// IANA MAC address family
LispAddressFamilyType_mac_afi LispAddressFamilyType = "mac-afi"
)
// LispRlocStateType represents Reachability state of a RLOC
type LispRlocStateType string
const (
// Locator is down or unreachable
LispRlocStateType_lisp_rloc_state_down LispRlocStateType = "lisp-rloc-state-down"
// Locator is up and reachable
LispRlocStateType_lisp_rloc_state_up LispRlocStateType = "lisp-rloc-state-up"
)
// LispMapReplyActionType represents for negative map-cache entries
type LispMapReplyActionType string
const (
// Mapping is kept alive and no encapsulation occurs
LispMapReplyActionType_no_action LispMapReplyActionType = "no-action"
// Matching packets are forwarded without
// LISP encapsulation
LispMapReplyActionType_natively_forward LispMapReplyActionType = "natively-forward"
// Matching packets trigger sending Map-Requests
LispMapReplyActionType_send_map_request LispMapReplyActionType = "send-map-request"
// Matching packets are dropped
LispMapReplyActionType_drop LispMapReplyActionType = "drop"
)
// LispIaftypeType represents LISP instance
type LispIaftypeType string
const (
// IPv4 instance service
LispIaftypeType_iaf_ipv4 LispIaftypeType = "iaf-ipv4"
// IPv6 instance service
LispIaftypeType_iaf_ipv6 LispIaftypeType = "iaf-ipv6"
// MAC (L2) instance service
LispIaftypeType_iaf_mac LispIaftypeType = "iaf-mac"
// Address Resolution (L3 address-to-MAC) instance
// service
LispIaftypeType_iaf_ar LispIaftypeType = "iaf-ar"
// Reverse Address Resolution (MAC-to-L3 address)
// instance service
LispIaftypeType_iaf_rar LispIaftypeType = "iaf-rar"
)
// LispSessionStateType represents State of a TCP session
type LispSessionStateType string
const (
// Session parameters are incomplete
LispSessionStateType_lisp_session_state_incomplete LispSessionStateType = "lisp-session-state-incomplete"
// Session represents the passively listening socket
LispSessionStateType_lisp_session_state_listening LispSessionStateType = "lisp-session-state-listening"
// Session is down
LispSessionStateType_lisp_session_state_down LispSessionStateType = "lisp-session-state-down"
// Session is up
LispSessionStateType_lisp_session_state_up LispSessionStateType = "lisp-session-state-up"
)
// LispState
// Operational state of the LISP subsystem
type LispState struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of LISP routers. The type is slice of LispState_LispRouters.
LispRouters []*LispState_LispRouters
}
func (lispState *LispState) GetEntityData() *types.CommonEntityData {
lispState.EntityData.YFilter = lispState.YFilter
lispState.EntityData.YangName = "lisp-state"
lispState.EntityData.BundleName = "cisco_ios_xe"
lispState.EntityData.ParentYangName = "Cisco-IOS-XE-lisp-oper"
lispState.EntityData.SegmentPath = "Cisco-IOS-XE-lisp-oper:lisp-state"
lispState.EntityData.AbsolutePath = lispState.EntityData.SegmentPath
lispState.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
lispState.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
lispState.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
lispState.EntityData.Children = types.NewOrderedMap()
lispState.EntityData.Children.Append("lisp-routers", types.YChild{"LispRouters", nil})
for i := range lispState.LispRouters {
lispState.EntityData.Children.Append(types.GetSegmentPath(lispState.LispRouters[i]), types.YChild{"LispRouters", lispState.LispRouters[i]})
}
lispState.EntityData.Leafs = types.NewOrderedMap()
lispState.EntityData.YListKeys = []string {}
return &(lispState.EntityData)
}
// LispState_LispRouters
// List of LISP routers
type LispState_LispRouters struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. ID number of the LISP router. The type is
// interface{} with range: 0..4294967295.
TopId interface{}
// Site-ID common to all devices attached to the same site. The type is
// interface{} with range: 0..18446744073709551615.
SiteId interface{}
// xTR-ID of the device. The type is slice of interface{} with range: 0..255.
XtrId []interface{}
// List of LISP instances. The type is slice of
// LispState_LispRouters_Instances.
Instances []*LispState_LispRouters_Instances
// List of Reliable Registration sessions. The type is slice of
// LispState_LispRouters_Sessions.
Sessions []*LispState_LispRouters_Sessions
// This list represents the set of routing locators configured on this device.
// The type is slice of LispState_LispRouters_LocalRlocs.
LocalRlocs []*LispState_LispRouters_LocalRlocs
// This list represents list of prefix-lists configured on this device. The
// type is slice of LispState_LispRouters_PrefixLists.
PrefixLists []*LispState_LispRouters_PrefixLists
}
func (lispRouters *LispState_LispRouters) GetEntityData() *types.CommonEntityData {
lispRouters.EntityData.YFilter = lispRouters.YFilter
lispRouters.EntityData.YangName = "lisp-routers"
lispRouters.EntityData.BundleName = "cisco_ios_xe"
lispRouters.EntityData.ParentYangName = "lisp-state"
lispRouters.EntityData.SegmentPath = "lisp-routers" + types.AddKeyToken(lispRouters.TopId, "top-id")
lispRouters.EntityData.AbsolutePath = "Cisco-IOS-XE-lisp-oper:lisp-state/" + lispRouters.EntityData.SegmentPath
lispRouters.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
lispRouters.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
lispRouters.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
lispRouters.EntityData.Children = types.NewOrderedMap()
lispRouters.EntityData.Children.Append("instances", types.YChild{"Instances", nil})
for i := range lispRouters.Instances {
lispRouters.EntityData.Children.Append(types.GetSegmentPath(lispRouters.Instances[i]), types.YChild{"Instances", lispRouters.Instances[i]})
}
lispRouters.EntityData.Children.Append("sessions", types.YChild{"Sessions", nil})
for i := range lispRouters.Sessions {
lispRouters.EntityData.Children.Append(types.GetSegmentPath(lispRouters.Sessions[i]), types.YChild{"Sessions", lispRouters.Sessions[i]})
}
lispRouters.EntityData.Children.Append("local-rlocs", types.YChild{"LocalRlocs", nil})
for i := range lispRouters.LocalRlocs {
lispRouters.EntityData.Children.Append(types.GetSegmentPath(lispRouters.LocalRlocs[i]), types.YChild{"LocalRlocs", lispRouters.LocalRlocs[i]})
}
lispRouters.EntityData.Children.Append("prefix-lists", types.YChild{"PrefixLists", nil})
for i := range lispRouters.PrefixLists {
lispRouters.EntityData.Children.Append(types.GetSegmentPath(lispRouters.PrefixLists[i]), types.YChild{"PrefixLists", lispRouters.PrefixLists[i]})
}
lispRouters.EntityData.Leafs = types.NewOrderedMap()
lispRouters.EntityData.Leafs.Append("top-id", types.YLeaf{"TopId", lispRouters.TopId})
lispRouters.EntityData.Leafs.Append("site-id", types.YLeaf{"SiteId", lispRouters.SiteId})
lispRouters.EntityData.Leafs.Append("xtr-id", types.YLeaf{"XtrId", lispRouters.XtrId})
lispRouters.EntityData.YListKeys = []string {"TopId"}
return &(lispRouters.EntityData)
}
// LispState_LispRouters_Instances
// List of LISP instances
type LispState_LispRouters_Instances struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. LISP Instance ID. The type is interface{} with
// range: 0..16777215.
Iid interface{}
// Name of VRF that is mapped to the given LISP Instance ID. The type is
// string.
VrfName interface{}
// Status of RLOC Probing. The type is bool.
IsRlocProbing interface{}
// List of Address-Families enabled in this LISP instance. The type is slice
// of LispState_LispRouters_Instances_Af.
Af []*LispState_LispRouters_Instances_Af
// MS registration EID membership list (list of locators known to the MS as
// allowed to send traffic in the instance). The type is slice of
// LispState_LispRouters_Instances_MsEidMembership.
MsEidMembership []*LispState_LispRouters_Instances_MsEidMembership
// ETR EID membership list (list of locators known to the ETR as allowed to
// send traffic in the instance). The type is slice of
// LispState_LispRouters_Instances_EtrEidMembership.
EtrEidMembership []*LispState_LispRouters_Instances_EtrEidMembership
}
func (instances *LispState_LispRouters_Instances) GetEntityData() *types.CommonEntityData {
instances.EntityData.YFilter = instances.YFilter
instances.EntityData.YangName = "instances"
instances.EntityData.BundleName = "cisco_ios_xe"
instances.EntityData.ParentYangName = "lisp-routers"
instances.EntityData.SegmentPath = "instances" + types.AddKeyToken(instances.Iid, "iid")
instances.EntityData.AbsolutePath = "Cisco-IOS-XE-lisp-oper:lisp-state/lisp-routers/" + instances.EntityData.SegmentPath
instances.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
instances.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
instances.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
instances.EntityData.Children = types.NewOrderedMap()
instances.EntityData.Children.Append("af", types.YChild{"Af", nil})
for i := range instances.Af {
instances.EntityData.Children.Append(types.GetSegmentPath(instances.Af[i]), types.YChild{"Af", instances.Af[i]})
}
instances.EntityData.Children.Append("ms-eid-membership", types.YChild{"MsEidMembership", nil})
for i := range instances.MsEidMembership {
instances.EntityData.Children.Append(types.GetSegmentPath(instances.MsEidMembership[i]), types.YChild{"MsEidMembership", instances.MsEidMembership[i]})
}
instances.EntityData.Children.Append("etr-eid-membership", types.YChild{"EtrEidMembership", nil})
for i := range instances.EtrEidMembership {
instances.EntityData.Children.Append(types.GetSegmentPath(instances.EtrEidMembership[i]), types.YChild{"EtrEidMembership", instances.EtrEidMembership[i]})
}
instances.EntityData.Leafs = types.NewOrderedMap()
instances.EntityData.Leafs.Append("iid", types.YLeaf{"Iid", instances.Iid})
instances.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", instances.VrfName})
instances.EntityData.Leafs.Append("is-rloc-probing", types.YLeaf{"IsRlocProbing", instances.IsRlocProbing})
instances.EntityData.YListKeys = []string {"Iid"}
return &(instances.EntityData)
}
// LispState_LispRouters_Instances_Af
// List of Address-Families enabled in this LISP instance
type LispState_LispRouters_Instances_Af struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Instance-specific service type. The type is
// LispIaftypeType.
Iaftype interface{}
// ID of Vlan or Bridge-Domain that is mapped to the given L2 LISP Instance
// ID. The type is interface{} with range: 0..4294967295.
L2DomainId interface{}
// Current size of EID-to-RLOC map-cache on this device. The type is
// interface{} with range: 0..4294967295.
MapCacheSize interface{}
// Maximum permissible number of entries in EID-to-RLOC map-cache on this
// device. The type is interface{} with range: 0..4294967295.
MapCacheLimit interface{}
// TTL of the EID-to-RLOC map record provided by the local device in mapping
// records. The type is interface{} with range: 0..4294967295. Units are
// minutes.
EtrMapCacheTtl interface{}
// Number of EID prefix registrations that were accepted as a result of the
// 'accept-more-specific' configuration. The type is interface{} with range:
// 0..4294967295.
RegistrationMoreSpecific interface{}
// The warning threshold for the 'accept-more-specific' registration count on
// the Map-Server. The type is interface{} with range: 0..4294967295.
RegistrationMoreSpecificWarningThreshold interface{}
// Maximum number of registrations on the Map-Server which could be accepted
// due to configuration of 'accept-more-specific'. The type is interface{}
// with range: 0..4294967295.
RegistrationMoreSpecificLimit interface{}
// The map-cache utilization warning threshold on the xTR. The type is
// interface{} with range: 0..4294967295.
MapCacheThreshold interface{}
// Total number of map requests received by this device for any EID-Prefix of
// the given address family and Instance ID. The type is interface{} with
// range: 0..18446744073709551615.
MapRequestsIn interface{}
// Total number of map requests sent by this device for any EID-Prefix of the
// given address family and Instance ID. The type is interface{} with range:
// 0..18446744073709551615.
MapRequestsOut interface{}
// Total number of encapsulated Map-Requests received by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
EncapsulatedMapRequestsIn interface{}
// Total number of encapsulated Map-Requests sent by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
EncapsulatedMapRequestsOut interface{}
// Total number of RLOC probe Map-Requests received by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
RlocProbeMapRequestsIn interface{}
// Total number of RLOC probe Map-Requests sent by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
RlocProbeMapRequestsOut interface{}
// Total number of Map-Requests for any EID-Prefix of the given address family
// and Instance ID which were not sent out by this device because they timed
// out while on the transmit queue. The type is interface{} with range:
// 0..18446744073709551615.
MapRequestsExpiredOnQueue interface{}
// Total number of Map-Requests attempted by this device for any EID-Prefix of
// the given address family and Instance ID without reciving a Map-Reply. The
// type is interface{} with range: 0..18446744073709551615.
MapRequestsNoReply interface{}
// Total number of Map-Request messages for any EID-Prefix of the given
// address family and Instance ID dropped by this device due to configuration
// 'map-resolver allowed-locator'. The type is interface{} with range:
// 0..18446744073709551615.
MapRequestsFromDisallowedLocators interface{}
// Total number of SMR Map-Requests received by this device for any EID-Prefix
// of the given address family and Instance ID. The type is interface{} with
// range: 0..18446744073709551615.
SmrMapRequestsIn interface{}
// Total number of SMR Map-Requests sent by this device for any EID-Prefix of
// the given address family and Instance ID. The type is interface{} with
// range: 0..18446744073709551615.
SmrMapRequestsOut interface{}
// Total number of ITR's Map-Request messages for any EID-Prefix of the given
// address family and Instance ID dropped by the DDT Map-Resolver. The type is
// interface{} with range: 0..18446744073709551615.
DdtItrMapRequestsDropped interface{}
// Total number of ITR's Map-Request messages for any EID-Prefix of the given
// address family and Instance ID dropped by the DDT Map-Resolver due to nonce
// conflict. The type is interface{} with range: 0..18446744073709551615.
DdtItrMapRequestsNonceCollision interface{}
// Total number of ITR's Map-Request messages for any EID-Prefix of the given
// address family and Instance ID dropped by the DDT Map-Resolver due bad
// nonce. The type is interface{} with range: 0..18446744073709551615.
DdtItrMapRequestsBadXtrNonce interface{}
// Total number of Map-Requests for any EID-Prefix of the given address family
// and Instance ID forwarded by this device to Map-Resolver on ALT. The type
// is interface{} with range: 0..18446744073709551615.
MrMapRequestsForwarded interface{}
// Total number of Map-Requests for any EID-Prefix of the given address family
// and Instance ID forwarded by this device to ETR. The type is interface{}
// with range: 0..18446744073709551615.
MsMapRequestsForwarded interface{}
// Total number of Map-Requests for any EID-Prefix of the given address family
// and Instance ID forwarded by this device to ALT. The type is interface{}
// with range: 0..18446744073709551615.
ToAltMapRequestsOut interface{}
// Total number of Map-Reply records received by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
MapReplyRecordsIn interface{}
// Total number of Map-Reply records sent by this device for any EID-Prefix of
// the given address family and Instance ID. The type is interface{} with
// range: 0..18446744073709551615.
MapReplyRecordsOut interface{}
// Total number of authoritative Map-Reply records received by this device for
// any EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
AuthoritativeRecordsIn interface{}
// Total number of authoritative Map-Reply records sent by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
AuthoritativeRecordsOut interface{}
// Total number of non authoritative Map-Reply records received by this device
// for any EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
NonAuthoritativeRecordsIn interface{}
// Total number of non authoritative Map-Reply records sent by this device for
// any EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
NonAuthoritativeRecordsOut interface{}
// Total number of negative Map-Reply records received by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
NegativeRecordsIn interface{}
// Total number of negative Map-Reply records sent by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
NegativeRecordsOut interface{}
// Total number of RLOC probe Map-Replies for any EID-Prefix of the given
// address family and Instance ID received by this device. The type is
// interface{} with range: 0..18446744073709551615.
RlocProbeRecordsIn interface{}
// Total number of RLOC probe Map-Replies for any EID-Prefix of the given
// address family and Instance ID sent by this device. The type is interface{}
// with range: 0..18446744073709551615.
RlocProbeRecordsOut interface{}
// Total number of MS proxy Map-Replies for any EID-Prefix of the given
// address family and Instance ID sent by this device. The type is interface{}
// with range: 0..18446744073709551615.
MsProxyReplyRecordsOut interface{}
// Total number of WLC Subscribe messages received by this device for the
// given address family and Instance ID. The type is interface{} with range:
// 0..18446744073709551615.
WlcSubscribeIn interface{}
// Total number of WLC Subscribe messages sent by this device for the given
// address family and Instance ID. The type is interface{} with range:
// 0..18446744073709551615.
WlcSubscribeOut interface{}
// Total number of received WLC Subscribe messages for the given address
// family and Instance ID with incorrect formatting. The type is interface{}
// with range: 0..18446744073709551615.
WlcSubscribeInFailure interface{}
// Total number of WLC Subscribe messages for the given address family and
// Instance ID which were not sent due to internal errors. The type is
// interface{} with range: 0..18446744073709551615.
WlcSubscribeOutFailure interface{}
// Total number of WLC Unsubscribe messages received by this device for the
// given address family and Instance ID. The type is interface{} with range:
// 0..18446744073709551615.
WlcUnsubscribeIn interface{}
// Total number of WLC Unsubscribe messages sent by this device for the given
// address family and Instance ID. The type is interface{} with range:
// 0..18446744073709551615.
WlcUnsubscribeOut interface{}
// Total number of received WLC Unsubscribe messages for the given address
// family and Instance ID with incorrect formatting. The type is interface{}
// with range: 0..18446744073709551615.
WlcUnsubscribeInFailure interface{}
// Total number of WLC Unsubscribe messages for the given address family and
// Instance ID which were not sent due to internal errors. The type is
// interface{} with range: 0..18446744073709551615.
WlcUnsubscribeOutFailure interface{}
// Total number of Map-Register records for any EID-Prefix of the given
// address family and Instance ID received by this device. The type is
// interface{} with range: 0..18446744073709551615.
MapRegisterRecordsIn interface{}
// Total number of Map-Registers records sent by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
MapRegisterRecordsOut interface{}
// Total number of Map-Register messages dropped due to Map-Server
// functionality not enabled for the given address family and Instance ID. The
// type is interface{} with range: 0..18446744073709551615.
MapRegistersMsDisabled interface{}
// Total number of Map-Register messages for any EID-Prefix of the given
// address family and Instance ID dropped due to authentication failure. The
// type is interface{} with range: 0..18446744073709551615.
MapRegistersAuthFailed interface{}
// Total number of Map-Register messages received from disallowed locators.
// The type is interface{} with range: 0..18446744073709551615.
MapRegistersFromDisallowedLocators interface{}
// Total number of WLC Map-Register messages received by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapRegisterRecordsIn interface{}
// Total number of WLC Map-Register messages sent by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapRegisterRecordsOut interface{}
// Total number of WLC Map-Register messages received by this device for AP
// join in the given address family and Instance ID. The type is interface{}
// with range: 0..18446744073709551615.
WlcMapRegisterRecordsInAp interface{}
// Total number of WLC Map-Register messages sent by this device for AP join
// in the given address family and Instance ID. The type is interface{} with
// range: 0..18446744073709551615.
WlcMapRegisterRecordsOutAp interface{}
// Total number of WLC Map-Register messages received by this device for
// wireless client join in the given address family and Instance ID. The type
// is interface{} with range: 0..18446744073709551615.
WlcMapRegisterRecordsInClient interface{}
// Total number of WLC Map-Register messages sent by this device for wireless
// client join in the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapRegisterRecordsOutClient interface{}
// Total number of WLC Map-Register messages received in the given address
// family and Instance ID and discarded due to parsing error. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapRegisterRecordsInFailure interface{}
// Total number of WLC Map-Register messages for any EID-Prefix of the given
// address family and Instance ID which were not sent because of internal
// error. The type is interface{} with range: 0..18446744073709551615.
WlcMapRegisterRecordsOutFailure interface{}
// Total number of Map-Notify records for any EID-Prefix of the given address
// family and Instance ID received by this device. The type is interface{}
// with range: 0..18446744073709551615.
MapNotifyRecordsIn interface{}
// Total number of Map-Notify records for any EID-Prefix of the given address
// family and Instance ID sent by this device. The type is interface{} with
// range: 0..18446744073709551615.
MapNotifyRecordsOut interface{}
// Total number of Map-Notify messages for any EID-Prefix of the given address
// family and Instance ID dropped due to authentication failure. The type is
// interface{} with range: 0..18446744073709551615.
MapNotifyAuthFailed interface{}
// Total number of WLC Map-Notify records for any EID-Prefix of the given
// address family and Instance ID received by this device. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsIn interface{}
// Total number of WLC Map-Notify records for any EID-Prefix of the given
// address family and Instance ID sent by this device. The type is interface{}
// with range: 0..18446744073709551615.
WlcMapNotifyRecordsOut interface{}
// Total number of WLC Map-Notify records for any EID-Prefix of the given
// address family and Instance ID received by this device for AP join. The
// type is interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsInAp interface{}
// Total number of WLC Map-Notify records for any EID-Prefix of the given
// address family and Instance ID sent by this device for AP join. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsOutAp interface{}
// Total number of WLC Map-Notify records for any EID-Prefix of the given
// address family and Instance ID received by this device for wireless client
// join. The type is interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsInClient interface{}
// Total number of WLC Map-Notify records for any EID-Prefix of the given
// address family and Instance ID sent by this device for wireless client
// join. The type is interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsOutClient interface{}
// Total number of WLC Map-Notify messages received in the given address
// family and Instance ID and discarded due to parsing error. The type is
// interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsInFailure interface{}
// Total number of WLC Map-Notify messages for any EID-Prefix of the given
// address family and Instance ID which were not sent because of internal
// error. The type is interface{} with range: 0..18446744073709551615.
WlcMapNotifyRecordsOutFailure interface{}
// Total number of mapping records received by this device for any EID-Prefix
// of the given address family and Instance ID with TTL exceeding 7 days. The
// type is interface{} with range: 0..18446744073709551615.
MappingRecordTtlAlerts interface{}
// Total number of remote EID map-cache entries created by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
RemoteEidEntriesCreated interface{}
// Total number of remote EID map-cache entries deleted by this device for any
// EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
RemoteEidEntriesDeleted interface{}
// Total number of remote EID map-cache entries for any EID-Prefix of the
// given address family and Instance ID recreated by this device after NSF
// switchover. The type is interface{} with range: 0..18446744073709551615.
RemoteEidNsfReplayEntriesCreated interface{}
// Total number of forwarding plane data signals processed by this device for
// any EID-Prefix of the given address family and Instance ID. The type is
// interface{} with range: 0..18446744073709551615.
ForwardingDataSignalsProcessed interface{}
// Total number of forwarding plane data signals for any EID-Prefix of the
// given address family and Instance ID dropped by this device. The type is
// interface{} with range: 0..18446744073709551615.
ForwardingDataSignalsDropped interface{}
// Total number of forwarding plane reachability reports for any EID-Prefix of
// the given address family and Instance ID processed by this device. The type
// is interface{} with range: 0..18446744073709551615.
ForwardingReachabilityReportsProcessed interface{}
// Total number of forwarding plane reachability reports for any EID-Prefix of
// the given address family and Instance ID dropped by this device. The type
// is interface{} with range: 0..18446744073709551615.
ForwardingReachabilityReportsDropped interface{}
// Indicates whether the ETR accepts piggybacked mapping records received in a
// Map-Request. The type is bool.
IsEtrAcceptMapping interface{}
// Indicates if ETR will try to verify accepted piggybacked mapping records
// received in a Map-Request. The type is bool.
IsEtrAcceptMappingVerify interface{}
// LISP device role for this service.
Role LispState_LispRouters_Instances_Af_Role
// Map-cache for this service instance. The type is slice of
// LispState_LispRouters_Instances_Af_MapCache.
MapCache []*LispState_LispRouters_Instances_Af_MapCache
// ETR's database of local EID prefixes. The type is slice of
// LispState_LispRouters_Instances_Af_LocalDbase.
LocalDbase []*LispState_LispRouters_Instances_Af_LocalDbase
// Map-Server database of registered EID Prefixes. The type is slice of
// LispState_LispRouters_Instances_Af_MsRegistrations.
MsRegistrations []*LispState_LispRouters_Instances_Af_MsRegistrations
// List of Map-Servers to which the ETR should register. The type is slice of
// LispState_LispRouters_Instances_Af_MapServers.
MapServers []*LispState_LispRouters_Instances_Af_MapServers
// List of Map-Resolvers where [P]ITR should send its Map-Requests. The type
// is slice of LispState_LispRouters_Instances_Af_MapResolvers.
MapResolvers []*LispState_LispRouters_Instances_Af_MapResolvers
// List of all Proxy ETRs that this device is configured to use. The type is
// slice of LispState_LispRouters_Instances_Af_ProxyEtrs.
ProxyEtrs []*LispState_LispRouters_Instances_Af_ProxyEtrs
}
func (af *LispState_LispRouters_Instances_Af) GetEntityData() *types.CommonEntityData {
af.EntityData.YFilter = af.YFilter
af.EntityData.YangName = "af"
af.EntityData.BundleName = "cisco_ios_xe"
af.EntityData.ParentYangName = "instances"
af.EntityData.SegmentPath = "af" + types.AddKeyToken(af.Iaftype, "iaftype")
af.EntityData.AbsolutePath = "Cisco-IOS-XE-lisp-oper:lisp-state/lisp-routers/instances/" + af.EntityData.SegmentPath
af.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
af.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
af.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
af.EntityData.Children = types.NewOrderedMap()
af.EntityData.Children.Append("role", types.YChild{"Role", &af.Role})
af.EntityData.Children.Append("map-cache", types.YChild{"MapCache", nil})
for i := range af.MapCache {
af.EntityData.Children.Append(types.GetSegmentPath(af.MapCache[i]), types.YChild{"MapCache", af.MapCache[i]})
}
af.EntityData.Children.Append("local-dbase", types.YChild{"LocalDbase", nil})
for i := range af.LocalDbase {
af.EntityData.Children.Append(types.GetSegmentPath(af.LocalDbase[i]), types.YChild{"LocalDbase", af.LocalDbase[i]})
}
af.EntityData.Children.Append("ms-registrations", types.YChild{"MsRegistrations", nil})
for i := range af.MsRegistrations {
af.EntityData.Children.Append(types.GetSegmentPath(af.MsRegistrations[i]), types.YChild{"MsRegistrations", af.MsRegistrations[i]})
}
af.EntityData.Children.Append("map-servers", types.YChild{"MapServers", nil})
for i := range af.MapServers {
af.EntityData.Children.Append(types.GetSegmentPath(af.MapServers[i]), types.YChild{"MapServers", af.MapServers[i]})
}
af.EntityData.Children.Append("map-resolvers", types.YChild{"MapResolvers", nil})
for i := range af.MapResolvers {
af.EntityData.Children.Append(types.GetSegmentPath(af.MapResolvers[i]), types.YChild{"MapResolvers", af.MapResolvers[i]})
}
af.EntityData.Children.Append("proxy-etrs", types.YChild{"ProxyEtrs", nil})
for i := range af.ProxyEtrs {
af.EntityData.Children.Append(types.GetSegmentPath(af.ProxyEtrs[i]), types.YChild{"ProxyEtrs", af.ProxyEtrs[i]})
}
af.EntityData.Leafs = types.NewOrderedMap()
af.EntityData.Leafs.Append("iaftype", types.YLeaf{"Iaftype", af.Iaftype})
af.EntityData.Leafs.Append("l2-domain-id", types.YLeaf{"L2DomainId", af.L2DomainId})
af.EntityData.Leafs.Append("map-cache-size", types.YLeaf{"MapCacheSize", af.MapCacheSize})
af.EntityData.Leafs.Append("map-cache-limit", types.YLeaf{"MapCacheLimit", af.MapCacheLimit})
af.EntityData.Leafs.Append("etr-map-cache-ttl", types.YLeaf{"EtrMapCacheTtl", af.EtrMapCacheTtl})
af.EntityData.Leafs.Append("registration-more-specific", types.YLeaf{"RegistrationMoreSpecific", af.RegistrationMoreSpecific})
af.EntityData.Leafs.Append("registration-more-specific-warning-threshold", types.YLeaf{"RegistrationMoreSpecificWarningThreshold", af.RegistrationMoreSpecificWarningThreshold})
af.EntityData.Leafs.Append("registration-more-specific-limit", types.YLeaf{"RegistrationMoreSpecificLimit", af.RegistrationMoreSpecificLimit})
af.EntityData.Leafs.Append("map-cache-threshold", types.YLeaf{"MapCacheThreshold", af.MapCacheThreshold})
af.EntityData.Leafs.Append("map-requests-in", types.YLeaf{"MapRequestsIn", af.MapRequestsIn})
af.EntityData.Leafs.Append("map-requests-out", types.YLeaf{"MapRequestsOut", af.MapRequestsOut})
af.EntityData.Leafs.Append("encapsulated-map-requests-in", types.YLeaf{"EncapsulatedMapRequestsIn", af.EncapsulatedMapRequestsIn})
af.EntityData.Leafs.Append("encapsulated-map-requests-out", types.YLeaf{"EncapsulatedMapRequestsOut", af.EncapsulatedMapRequestsOut})
af.EntityData.Leafs.Append("rloc-probe-map-requests-in", types.YLeaf{"RlocProbeMapRequestsIn", af.RlocProbeMapRequestsIn})
af.EntityData.Leafs.Append("rloc-probe-map-requests-out", types.YLeaf{"RlocProbeMapRequestsOut", af.RlocProbeMapRequestsOut})
af.EntityData.Leafs.Append("map-requests-expired-on-queue", types.YLeaf{"MapRequestsExpiredOnQueue", af.MapRequestsExpiredOnQueue})
af.EntityData.Leafs.Append("map-requests-no-reply", types.YLeaf{"MapRequestsNoReply", af.MapRequestsNoReply})
af.EntityData.Leafs.Append("map-requests-from-disallowed-locators", types.YLeaf{"MapRequestsFromDisallowedLocators", af.MapRequestsFromDisallowedLocators})
af.EntityData.Leafs.Append("smr-map-requests-in", types.YLeaf{"SmrMapRequestsIn", af.SmrMapRequestsIn})
af.EntityData.Leafs.Append("smr-map-requests-out", types.YLeaf{"SmrMapRequestsOut", af.SmrMapRequestsOut})
af.EntityData.Leafs.Append("ddt-itr-map-requests-dropped", types.YLeaf{"DdtItrMapRequestsDropped", af.DdtItrMapRequestsDropped})
af.EntityData.Leafs.Append("ddt-itr-map-requests-nonce-collision", types.YLeaf{"DdtItrMapRequestsNonceCollision", af.DdtItrMapRequestsNonceCollision})
af.EntityData.Leafs.Append("ddt-itr-map-requests-bad-xtr-nonce", types.YLeaf{"DdtItrMapRequestsBadXtrNonce", af.DdtItrMapRequestsBadXtrNonce})
af.EntityData.Leafs.Append("mr-map-requests-forwarded", types.YLeaf{"MrMapRequestsForwarded", af.MrMapRequestsForwarded})
af.EntityData.Leafs.Append("ms-map-requests-forwarded", types.YLeaf{"MsMapRequestsForwarded", af.MsMapRequestsForwarded})
af.EntityData.Leafs.Append("to-alt-map-requests-out", types.YLeaf{"ToAltMapRequestsOut", af.ToAltMapRequestsOut})
af.EntityData.Leafs.Append("map-reply-records-in", types.YLeaf{"MapReplyRecordsIn", af.MapReplyRecordsIn})
af.EntityData.Leafs.Append("map-reply-records-out", types.YLeaf{"MapReplyRecordsOut", af.MapReplyRecordsOut})
af.EntityData.Leafs.Append("authoritative-records-in", types.YLeaf{"AuthoritativeRecordsIn", af.AuthoritativeRecordsIn})
af.EntityData.Leafs.Append("authoritative-records-out", types.YLeaf{"AuthoritativeRecordsOut", af.AuthoritativeRecordsOut})
af.EntityData.Leafs.Append("non-authoritative-records-in", types.YLeaf{"NonAuthoritativeRecordsIn", af.NonAuthoritativeRecordsIn})
af.EntityData.Leafs.Append("non-authoritative-records-out", types.YLeaf{"NonAuthoritativeRecordsOut", af.NonAuthoritativeRecordsOut})
af.EntityData.Leafs.Append("negative-records-in", types.YLeaf{"NegativeRecordsIn", af.NegativeRecordsIn})
af.EntityData.Leafs.Append("negative-records-out", types.YLeaf{"NegativeRecordsOut", af.NegativeRecordsOut})
af.EntityData.Leafs.Append("rloc-probe-records-in", types.YLeaf{"RlocProbeRecordsIn", af.RlocProbeRecordsIn})
af.EntityData.Leafs.Append("rloc-probe-records-out", types.YLeaf{"RlocProbeRecordsOut", af.RlocProbeRecordsOut})
af.EntityData.Leafs.Append("ms-proxy-reply-records-out", types.YLeaf{"MsProxyReplyRecordsOut", af.MsProxyReplyRecordsOut})
af.EntityData.Leafs.Append("wlc-subscribe-in", types.YLeaf{"WlcSubscribeIn", af.WlcSubscribeIn})
af.EntityData.Leafs.Append("wlc-subscribe-out", types.YLeaf{"WlcSubscribeOut", af.WlcSubscribeOut})
af.EntityData.Leafs.Append("wlc-subscribe-in-failure", types.YLeaf{"WlcSubscribeInFailure", af.WlcSubscribeInFailure})
af.EntityData.Leafs.Append("wlc-subscribe-out-failure", types.YLeaf{"WlcSubscribeOutFailure", af.WlcSubscribeOutFailure})
af.EntityData.Leafs.Append("wlc-unsubscribe-in", types.YLeaf{"WlcUnsubscribeIn", af.WlcUnsubscribeIn})
af.EntityData.Leafs.Append("wlc-unsubscribe-out", types.YLeaf{"WlcUnsubscribeOut", af.WlcUnsubscribeOut})
af.EntityData.Leafs.Append("wlc-unsubscribe-in-failure", types.YLeaf{"WlcUnsubscribeInFailure", af.WlcUnsubscribeInFailure})
af.EntityData.Leafs.Append("wlc-unsubscribe-out-failure", types.YLeaf{"WlcUnsubscribeOutFailure", af.WlcUnsubscribeOutFailure})
af.EntityData.Leafs.Append("map-register-records-in", types.YLeaf{"MapRegisterRecordsIn", af.MapRegisterRecordsIn})
af.EntityData.Leafs.Append("map-register-records-out", types.YLeaf{"MapRegisterRecordsOut", af.MapRegisterRecordsOut})
af.EntityData.Leafs.Append("map-registers-ms-disabled", types.YLeaf{"MapRegistersMsDisabled", af.MapRegistersMsDisabled})
af.EntityData.Leafs.Append("map-registers-auth-failed", types.YLeaf{"MapRegistersAuthFailed", af.MapRegistersAuthFailed})
af.EntityData.Leafs.Append("map-registers-from-disallowed-locators", types.YLeaf{"MapRegistersFromDisallowedLocators", af.MapRegistersFromDisallowedLocators})
af.EntityData.Leafs.Append("wlc-map-register-records-in", types.YLeaf{"WlcMapRegisterRecordsIn", af.WlcMapRegisterRecordsIn})
af.EntityData.Leafs.Append("wlc-map-register-records-out", types.YLeaf{"WlcMapRegisterRecordsOut", af.WlcMapRegisterRecordsOut})
af.EntityData.Leafs.Append("wlc-map-register-records-in-ap", types.YLeaf{"WlcMapRegisterRecordsInAp", af.WlcMapRegisterRecordsInAp})
af.EntityData.Leafs.Append("wlc-map-register-records-out-ap", types.YLeaf{"WlcMapRegisterRecordsOutAp", af.WlcMapRegisterRecordsOutAp})
af.EntityData.Leafs.Append("wlc-map-register-records-in-client", types.YLeaf{"WlcMapRegisterRecordsInClient", af.WlcMapRegisterRecordsInClient})
af.EntityData.Leafs.Append("wlc-map-register-records-out-client", types.YLeaf{"WlcMapRegisterRecordsOutClient", af.WlcMapRegisterRecordsOutClient})
af.EntityData.Leafs.Append("wlc-map-register-records-in-failure", types.YLeaf{"WlcMapRegisterRecordsInFailure", af.WlcMapRegisterRecordsInFailure})
af.EntityData.Leafs.Append("wlc-map-register-records-out-failure", types.YLeaf{"WlcMapRegisterRecordsOutFailure", af.WlcMapRegisterRecordsOutFailure})
af.EntityData.Leafs.Append("map-notify-records-in", types.YLeaf{"MapNotifyRecordsIn", af.MapNotifyRecordsIn})
af.EntityData.Leafs.Append("map-notify-records-out", types.YLeaf{"MapNotifyRecordsOut", af.MapNotifyRecordsOut})
af.EntityData.Leafs.Append("map-notify-auth-failed", types.YLeaf{"MapNotifyAuthFailed", af.MapNotifyAuthFailed})
af.EntityData.Leafs.Append("wlc-map-notify-records-in", types.YLeaf{"WlcMapNotifyRecordsIn", af.WlcMapNotifyRecordsIn})
af.EntityData.Leafs.Append("wlc-map-notify-records-out", types.YLeaf{"WlcMapNotifyRecordsOut", af.WlcMapNotifyRecordsOut})
af.EntityData.Leafs.Append("wlc-map-notify-records-in-ap", types.YLeaf{"WlcMapNotifyRecordsInAp", af.WlcMapNotifyRecordsInAp})
af.EntityData.Leafs.Append("wlc-map-notify-records-out-ap", types.YLeaf{"WlcMapNotifyRecordsOutAp", af.WlcMapNotifyRecordsOutAp})
af.EntityData.Leafs.Append("wlc-map-notify-records-in-client", types.YLeaf{"WlcMapNotifyRecordsInClient", af.WlcMapNotifyRecordsInClient})
af.EntityData.Leafs.Append("wlc-map-notify-records-out-client", types.YLeaf{"WlcMapNotifyRecordsOutClient", af.WlcMapNotifyRecordsOutClient})
af.EntityData.Leafs.Append("wlc-map-notify-records-in-failure", types.YLeaf{"WlcMapNotifyRecordsInFailure", af.WlcMapNotifyRecordsInFailure})
af.EntityData.Leafs.Append("wlc-map-notify-records-out-failure", types.YLeaf{"WlcMapNotifyRecordsOutFailure", af.WlcMapNotifyRecordsOutFailure})
af.EntityData.Leafs.Append("mapping-record-ttl-alerts", types.YLeaf{"MappingRecordTtlAlerts", af.MappingRecordTtlAlerts})
af.EntityData.Leafs.Append("remote-eid-entries-created", types.YLeaf{"RemoteEidEntriesCreated", af.RemoteEidEntriesCreated})
af.EntityData.Leafs.Append("remote-eid-entries-deleted", types.YLeaf{"RemoteEidEntriesDeleted", af.RemoteEidEntriesDeleted})
af.EntityData.Leafs.Append("remote-eid-nsf-replay-entries-created", types.YLeaf{"RemoteEidNsfReplayEntriesCreated", af.RemoteEidNsfReplayEntriesCreated})
af.EntityData.Leafs.Append("forwarding-data-signals-processed", types.YLeaf{"ForwardingDataSignalsProcessed", af.ForwardingDataSignalsProcessed})
af.EntityData.Leafs.Append("forwarding-data-signals-dropped", types.YLeaf{"ForwardingDataSignalsDropped", af.ForwardingDataSignalsDropped})
af.EntityData.Leafs.Append("forwarding-reachability-reports-processed", types.YLeaf{"ForwardingReachabilityReportsProcessed", af.ForwardingReachabilityReportsProcessed})
af.EntityData.Leafs.Append("forwarding-reachability-reports-dropped", types.YLeaf{"ForwardingReachabilityReportsDropped", af.ForwardingReachabilityReportsDropped})
af.EntityData.Leafs.Append("is-etr-accept-mapping", types.YLeaf{"IsEtrAcceptMapping", af.IsEtrAcceptMapping})
af.EntityData.Leafs.Append("is-etr-accept-mapping-verify", types.YLeaf{"IsEtrAcceptMappingVerify", af.IsEtrAcceptMappingVerify})
af.EntityData.YListKeys = []string {"Iaftype"}
return &(af.EntityData)
}
// LispState_LispRouters_Instances_Af_Role
// LISP device role for this service
type LispState_LispRouters_Instances_Af_Role struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// LISP Map-Server. The type is bool.
IsMs interface{}
// LISP Map-Resolver. The type is bool.
IsMr interface{}
// LISP ITR. The type is bool.
IsItr interface{}
// LISP ETR. The type is bool.
IsEtr interface{}
// LISP Proxy-ITR. The type is bool.
IsPitr interface{}
// LISP Proxy-ETR. The type is bool.
IsPetr interface{}
}
func (role *LispState_LispRouters_Instances_Af_Role) GetEntityData() *types.CommonEntityData {
role.EntityData.YFilter = role.YFilter
role.EntityData.YangName = "role"
role.EntityData.BundleName = "cisco_ios_xe"
role.EntityData.ParentYangName = "af"
role.EntityData.SegmentPath = "role"
role.EntityData.AbsolutePath = "Cisco-IOS-XE-lisp-oper:lisp-state/lisp-routers/instances/af/" + role.EntityData.SegmentPath
role.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
role.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
role.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
role.EntityData.Children = types.NewOrderedMap()
role.EntityData.Leafs = types.NewOrderedMap()
role.EntityData.Leafs.Append("is-ms", types.YLeaf{"IsMs", role.IsMs})
role.EntityData.Leafs.Append("is-mr", types.YLeaf{"IsMr", role.IsMr})
role.EntityData.Leafs.Append("is-itr", types.YLeaf{"IsItr", role.IsItr})
role.EntityData.Leafs.Append("is-etr", types.YLeaf{"IsEtr", role.IsEtr})
role.EntityData.Leafs.Append("is-pitr", types.YLeaf{"IsPitr", role.IsPitr})
role.EntityData.Leafs.Append("is-petr", types.YLeaf{"IsPetr", role.IsPetr})
role.EntityData.YListKeys = []string {}
return &(role.EntityData)
}
// LispState_LispRouters_Instances_Af_MapCache
// Map-cache for this service instance
type LispState_LispRouters_Instances_Af_MapCache struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. LISP Address-Family of the prefix. The type is
// LispAddressFamilyType.
Afi interface{}
// This attribute is a key. LISP prefix. Format is defined by the AF. The type
// is string.
Prefix interface{}
// Time that this entry was created. The type is string with pattern:
// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
UpTime interface{}
// Last time that the RLOC information or the entry state were modified. The
// type is string with pattern:
// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
LastModifiedTime interface{}
// Last time a mapping record for this entry was received, not valid if the
// entry is static. The type is string with pattern:
// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
LastUpdateTime interface{}
// Mapping validity period. The type is interface{} with range: 0..4294967295.
// Units are milliseconds.
Ttl interface{}
// Indication if the mapping came from an authoritative source. The type is
// bool.
IsAuthoritative interface{}
// Indication if the mapping is static (i.e. configured). The type is bool.
IsStatic interface{}
// Indication if the mapping is negative (i.e. provides no locators for LISP
// encapsulation). The type is bool.
IsNegative interface{}
// Forwarding action in case of negative entry. The type is
// LispMapReplyActionType.
NmrAction interface{}
// Time when this entry will expire if not refreshed; for entries which do not
// have an expiration time this time will be less than the entry creation
// time. The type is string with pattern:
// \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
ExpiryTime interface{}
// Number of packets of the transit traffic which were encapsulated because
// they matched this map-cache entry. The type is interface{} with range:
// 0..18446744073709551615.
EncapsulatedPackets interface{}
// Number of bytes of the transit traffic which were encapsulated because they
// matched this map-cache entry. The type is interface{} with range:
// 0..18446744073709551615.
EncapsulatedOctets interface{}
// Indication if the mapping is active, that is there was transit traffic
// matching this map-cache entry seen in approximately the last minute. The
// type is bool.
IsActive interface{}
// List of locators for positive mapping. The type is slice of
// LispState_LispRouters_Instances_Af_MapCache_MapCacheRloc.
MapCacheRloc []*LispState_LispRouters_Instances_Af_MapCache_MapCacheRloc
}
func (mapCache *LispState_LispRouters_Instances_Af_MapCache) GetEntityData() *types.CommonEntityData {
mapCache.EntityData.YFilter = mapCache.YFilter
mapCache.EntityData.YangName = "map-cache"
mapCache.EntityData.BundleName = "cisco_ios_xe"
mapCache.EntityData.ParentYangName = "af"
mapCache.EntityData.SegmentPath = "map-cache" + types.AddKeyToken(mapCache.Afi, "afi") + types.AddKeyToken(mapCache.Prefix, "prefix")
mapCache.EntityData.AbsolutePath = "Cisco-IOS-XE-lisp-oper:lisp-state/lisp-routers/instances/af/" + mapCache.EntityData.SegmentPath
mapCache.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
mapCache.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
mapCache.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
mapCache.EntityData.Children = types.NewOrderedMap()
mapCache.EntityData.Children.Append("map-cache-rloc", types.YChild{"MapCacheRloc", nil})
for i := range mapCache.MapCacheRloc {
mapCache.EntityData.Children.Append(types.GetSegmentPath(mapCache.MapCacheRloc[i]), types.YChild{"MapCacheRloc", mapCache.MapCacheRloc[i]})
}
mapCache.EntityData.Leafs = types.NewOrderedMap()
mapCache.EntityData.Leafs.Append("afi", types.YLeaf{"Afi", mapCache.Afi})
mapCache.EntityData.Leafs.Append("prefix", types.YLeaf{"Prefix", mapCache.Prefix})
mapCache.EntityData.Leafs.Append("up-time", types.YLeaf{"UpTime", mapCache.UpTime})
mapCache.EntityData.Leafs.Append("last-modified-time", types.YLeaf{"LastModifiedTime", mapCache.LastModifiedTime})
mapCache.EntityData.Leafs.Append("last-update-time", types.YLeaf{"LastUpdateTime", mapCache.LastUpdateTime})
mapCache.EntityData.Leafs.Append("ttl", types.YLeaf{"Ttl", mapCache.Ttl})
mapCache.EntityData.Leafs.Append("is-authoritative", types.YLeaf{"IsAuthoritative", mapCache.IsAuthoritative})
mapCache.EntityData.Leafs.Append("is-static", types.YLeaf{"IsStatic", mapCache.IsStatic})
mapCache.EntityData.Leafs.Append("is-negative", types.YLeaf{"IsNegative", mapCache.IsNegative})
mapCache.EntityData.Leafs.Append("nmr-action", types.YLeaf{"NmrAction", mapCache.NmrAction})
mapCache.EntityData.Leafs.Append("expiry-time", types.YLeaf{"ExpiryTime", mapCache.ExpiryTime})
mapCache.EntityData.Leafs.Append("encapsulated-packets", types.YLeaf{"EncapsulatedPackets", mapCache.EncapsulatedPackets})
mapCache.EntityData.Leafs.Append("encapsulated-octets", types.YLeaf{"EncapsulatedOctets", mapCache.EncapsulatedOctets})
mapCache.EntityData.Leafs.Append("is-active", types.YLeaf{"IsActive", mapCache.IsActive})
mapCache.EntityData.YListKeys = []string {"Afi", "Prefix"}
return &(mapCache.EntityData)
}
// LispState_LispRouters_Instances_Af_MapCache_MapCacheRloc
// List of locators for positive mapping
type LispState_LispRouters_Instances_Af_MapCache_MapCacheRloc struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. LISP Address-Family of the address. The type is
// LispAddressFamilyType.
Afi interface{}
// This attribute is a key. LISP address. Format is defined by the AF. The
// type is string.
Address interface{}
// Up/down state of the locator. The type is LispRlocStateType.
State interface{}