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
/
ip_rip_cfg.go
2253 lines (1803 loc) · 95.9 KB
/
ip_rip_cfg.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ip-rip package configuration.
//
// This module contains definitions
// for the following management objects:
// rip: RIP configuration
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ip_rip_cfg
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"github.com/CiscoDevNet/ydk-go/ydk/types/yfilter"
"github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xr"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package ip_rip_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ip-rip-cfg rip}", reflect.TypeOf(Rip{}))
ydk.RegisterEntity("Cisco-IOS-XR-ip-rip-cfg:rip", reflect.TypeOf(Rip{}))
}
// RipAuthMode represents Rip auth mode
type RipAuthMode string
const (
// Text mode
RipAuthMode_text RipAuthMode = "text"
// MD5 mode
RipAuthMode_md5 RipAuthMode = "md5"
)
// IsisRedistRoute represents Isis redist route
type IsisRedistRoute string
const (
// Level-1 routes only
IsisRedistRoute_level1 IsisRedistRoute = "level1"
// Level-1 routes only
IsisRedistRoute_level2 IsisRedistRoute = "level2"
// Level-1 and level-2 routes
IsisRedistRoute_level1_and2 IsisRedistRoute = "level1-and2"
)
// DefaultInformationOption represents Default information option
type DefaultInformationOption string
const (
// Always
DefaultInformationOption_always DefaultInformationOption = "always"
// Use route-policy
DefaultInformationOption_policy DefaultInformationOption = "policy"
)
// BgpRedistRoute represents Bgp redist route
type BgpRedistRoute string
const (
// All routes
BgpRedistRoute_all BgpRedistRoute = "all"
// Internal routes only
BgpRedistRoute_internal BgpRedistRoute = "internal"
// External routes only
BgpRedistRoute_external BgpRedistRoute = "external"
// Local routes only
BgpRedistRoute_local BgpRedistRoute = "local"
)
// RipExtCommunity represents Rip ext community
type RipExtCommunity string
const (
// AS:nn format
RipExtCommunity_as RipExtCommunity = "as"
// IPV4Address:nn format
RipExtCommunity_ipv4_address RipExtCommunity = "ipv4-address"
// 4-byte ASN format
RipExtCommunity_four_byte_as RipExtCommunity = "four-byte-as"
)
// DefaultRedistRoute represents Default redist route
type DefaultRedistRoute string
const (
// All routes
DefaultRedistRoute_all DefaultRedistRoute = "all"
)
// Rip
// RIP configuration
type Rip struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// RIP configuration for Default VRF.
DefaultVrf Rip_DefaultVrf
// VRF related RIP configuration.
Vrfs Rip_Vrfs
}
func (rip *Rip) GetEntityData() *types.CommonEntityData {
rip.EntityData.YFilter = rip.YFilter
rip.EntityData.YangName = "rip"
rip.EntityData.BundleName = "cisco_ios_xr"
rip.EntityData.ParentYangName = "Cisco-IOS-XR-ip-rip-cfg"
rip.EntityData.SegmentPath = "Cisco-IOS-XR-ip-rip-cfg:rip"
rip.EntityData.AbsolutePath = rip.EntityData.SegmentPath
rip.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rip.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rip.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rip.EntityData.Children = types.NewOrderedMap()
rip.EntityData.Children.Append("default-vrf", types.YChild{"DefaultVrf", &rip.DefaultVrf})
rip.EntityData.Children.Append("vrfs", types.YChild{"Vrfs", &rip.Vrfs})
rip.EntityData.Leafs = types.NewOrderedMap()
rip.EntityData.YListKeys = []string {}
return &(rip.EntityData)
}
// Rip_DefaultVrf
// RIP configuration for Default VRF
type Rip_DefaultVrf struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Starts RIP configuration for Default VRF. The type is interface{}.
Enable interface{}
// Send RIP v2 output packets to broadcast address. The type is interface{}.
BroadcastForV2 interface{}
// Administrative distance. The type is interface{} with range: 0..255. The
// default value is 120.
Distance interface{}
// Default metric of redistributed routes. The type is interface{} with range:
// 0..16.
DefaultMetric interface{}
// Inter-packet delay for RIP updates. The type is interface{} with range:
// 8..50. Units are millisecond.
OutputDelay interface{}
// Enable automatic network number summarization. The type is interface{}.
AutoSummary interface{}
// Route Policy for outbound routing updates. The type is string.
PolicyOut interface{}
// Disable validation of source address of routing updates. The type is
// interface{}.
ValidateSourceDisable interface{}
// Maximum number of paths allowed per route. The type is interface{} with
// range: 1..128. The default value is 4.
MaximumPaths interface{}
// Enable Cisco Non Stop Forwarding. The type is interface{}.
Nsf interface{}
// Route Policy for inbbound routing updates. The type is string.
PolicyIn interface{}
// Controls default information origination.
DefaultInformation Rip_DefaultVrf_DefaultInformation
// Redistribute information from another routing protocol.
Redistribution Rip_DefaultVrf_Redistribution
// Table of IP specific administrative distances.
IpDistances Rip_DefaultVrf_IpDistances
// Table of RIP interfaces.
Interfaces Rip_DefaultVrf_Interfaces
// Configure RIP Neighbors.
Neighbors Rip_DefaultVrf_Neighbors
// Various routing timers.
Timers Rip_DefaultVrf_Timers
}
func (defaultVrf *Rip_DefaultVrf) GetEntityData() *types.CommonEntityData {
defaultVrf.EntityData.YFilter = defaultVrf.YFilter
defaultVrf.EntityData.YangName = "default-vrf"
defaultVrf.EntityData.BundleName = "cisco_ios_xr"
defaultVrf.EntityData.ParentYangName = "rip"
defaultVrf.EntityData.SegmentPath = "default-vrf"
defaultVrf.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/" + defaultVrf.EntityData.SegmentPath
defaultVrf.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
defaultVrf.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
defaultVrf.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
defaultVrf.EntityData.Children = types.NewOrderedMap()
defaultVrf.EntityData.Children.Append("default-information", types.YChild{"DefaultInformation", &defaultVrf.DefaultInformation})
defaultVrf.EntityData.Children.Append("redistribution", types.YChild{"Redistribution", &defaultVrf.Redistribution})
defaultVrf.EntityData.Children.Append("ip-distances", types.YChild{"IpDistances", &defaultVrf.IpDistances})
defaultVrf.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &defaultVrf.Interfaces})
defaultVrf.EntityData.Children.Append("neighbors", types.YChild{"Neighbors", &defaultVrf.Neighbors})
defaultVrf.EntityData.Children.Append("timers", types.YChild{"Timers", &defaultVrf.Timers})
defaultVrf.EntityData.Leafs = types.NewOrderedMap()
defaultVrf.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", defaultVrf.Enable})
defaultVrf.EntityData.Leafs.Append("broadcast-for-v2", types.YLeaf{"BroadcastForV2", defaultVrf.BroadcastForV2})
defaultVrf.EntityData.Leafs.Append("distance", types.YLeaf{"Distance", defaultVrf.Distance})
defaultVrf.EntityData.Leafs.Append("default-metric", types.YLeaf{"DefaultMetric", defaultVrf.DefaultMetric})
defaultVrf.EntityData.Leafs.Append("output-delay", types.YLeaf{"OutputDelay", defaultVrf.OutputDelay})
defaultVrf.EntityData.Leafs.Append("auto-summary", types.YLeaf{"AutoSummary", defaultVrf.AutoSummary})
defaultVrf.EntityData.Leafs.Append("policy-out", types.YLeaf{"PolicyOut", defaultVrf.PolicyOut})
defaultVrf.EntityData.Leafs.Append("validate-source-disable", types.YLeaf{"ValidateSourceDisable", defaultVrf.ValidateSourceDisable})
defaultVrf.EntityData.Leafs.Append("maximum-paths", types.YLeaf{"MaximumPaths", defaultVrf.MaximumPaths})
defaultVrf.EntityData.Leafs.Append("nsf", types.YLeaf{"Nsf", defaultVrf.Nsf})
defaultVrf.EntityData.Leafs.Append("policy-in", types.YLeaf{"PolicyIn", defaultVrf.PolicyIn})
defaultVrf.EntityData.YListKeys = []string {}
return &(defaultVrf.EntityData)
}
// Rip_DefaultVrf_DefaultInformation
// Controls default information origination
// This type is a presence type.
type Rip_DefaultVrf_DefaultInformation struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Route policy name. The type is string.
RoutePolicyName interface{}
// Origination option. The type is DefaultInformationOption. This attribute is
// mandatory.
Option interface{}
}
func (defaultInformation *Rip_DefaultVrf_DefaultInformation) GetEntityData() *types.CommonEntityData {
defaultInformation.EntityData.YFilter = defaultInformation.YFilter
defaultInformation.EntityData.YangName = "default-information"
defaultInformation.EntityData.BundleName = "cisco_ios_xr"
defaultInformation.EntityData.ParentYangName = "default-vrf"
defaultInformation.EntityData.SegmentPath = "default-information"
defaultInformation.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/" + defaultInformation.EntityData.SegmentPath
defaultInformation.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
defaultInformation.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
defaultInformation.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
defaultInformation.EntityData.Children = types.NewOrderedMap()
defaultInformation.EntityData.Leafs = types.NewOrderedMap()
defaultInformation.EntityData.Leafs.Append("route-policy-name", types.YLeaf{"RoutePolicyName", defaultInformation.RoutePolicyName})
defaultInformation.EntityData.Leafs.Append("option", types.YLeaf{"Option", defaultInformation.Option})
defaultInformation.EntityData.YListKeys = []string {}
return &(defaultInformation.EntityData)
}
// Rip_DefaultVrf_Redistribution
// Redistribute information from another routing
// protocol
type Rip_DefaultVrf_Redistribution struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Redistribute connected routes.
Connected Rip_DefaultVrf_Redistribution_Connected
// Redistribute BGP routes.
Bgps Rip_DefaultVrf_Redistribution_Bgps
// Redistribute IS-IS routes.
Isises Rip_DefaultVrf_Redistribution_Isises
// Redistribute EIGRP routes.
EigrpS Rip_DefaultVrf_Redistribution_EigrpS
// Redistribute static routes.
Static Rip_DefaultVrf_Redistribution_Static
// Redistribute OSPF routes.
Ospfs Rip_DefaultVrf_Redistribution_Ospfs
}
func (redistribution *Rip_DefaultVrf_Redistribution) GetEntityData() *types.CommonEntityData {
redistribution.EntityData.YFilter = redistribution.YFilter
redistribution.EntityData.YangName = "redistribution"
redistribution.EntityData.BundleName = "cisco_ios_xr"
redistribution.EntityData.ParentYangName = "default-vrf"
redistribution.EntityData.SegmentPath = "redistribution"
redistribution.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/" + redistribution.EntityData.SegmentPath
redistribution.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
redistribution.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
redistribution.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
redistribution.EntityData.Children = types.NewOrderedMap()
redistribution.EntityData.Children.Append("connected", types.YChild{"Connected", &redistribution.Connected})
redistribution.EntityData.Children.Append("bgps", types.YChild{"Bgps", &redistribution.Bgps})
redistribution.EntityData.Children.Append("isises", types.YChild{"Isises", &redistribution.Isises})
redistribution.EntityData.Children.Append("eigrp-s", types.YChild{"EigrpS", &redistribution.EigrpS})
redistribution.EntityData.Children.Append("static", types.YChild{"Static", &redistribution.Static})
redistribution.EntityData.Children.Append("ospfs", types.YChild{"Ospfs", &redistribution.Ospfs})
redistribution.EntityData.Leafs = types.NewOrderedMap()
redistribution.EntityData.YListKeys = []string {}
return &(redistribution.EntityData)
}
// Rip_DefaultVrf_Redistribution_Connected
// Redistribute connected routes
// This type is a presence type.
type Rip_DefaultVrf_Redistribution_Connected struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Route Policy name. The type is string.
RoutePolicyName interface{}
// Route type. The type is DefaultRedistRoute.
RouteType interface{}
}
func (connected *Rip_DefaultVrf_Redistribution_Connected) GetEntityData() *types.CommonEntityData {
connected.EntityData.YFilter = connected.YFilter
connected.EntityData.YangName = "connected"
connected.EntityData.BundleName = "cisco_ios_xr"
connected.EntityData.ParentYangName = "redistribution"
connected.EntityData.SegmentPath = "connected"
connected.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/" + connected.EntityData.SegmentPath
connected.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
connected.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
connected.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
connected.EntityData.Children = types.NewOrderedMap()
connected.EntityData.Leafs = types.NewOrderedMap()
connected.EntityData.Leafs.Append("route-policy-name", types.YLeaf{"RoutePolicyName", connected.RoutePolicyName})
connected.EntityData.Leafs.Append("route-type", types.YLeaf{"RouteType", connected.RouteType})
connected.EntityData.YListKeys = []string {}
return &(connected.EntityData)
}
// Rip_DefaultVrf_Redistribution_Bgps
// Redistribute BGP routes
type Rip_DefaultVrf_Redistribution_Bgps struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Autonomous system number. The type is slice of
// Rip_DefaultVrf_Redistribution_Bgps_Bgp.
Bgp []*Rip_DefaultVrf_Redistribution_Bgps_Bgp
}
func (bgps *Rip_DefaultVrf_Redistribution_Bgps) GetEntityData() *types.CommonEntityData {
bgps.EntityData.YFilter = bgps.YFilter
bgps.EntityData.YangName = "bgps"
bgps.EntityData.BundleName = "cisco_ios_xr"
bgps.EntityData.ParentYangName = "redistribution"
bgps.EntityData.SegmentPath = "bgps"
bgps.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/" + bgps.EntityData.SegmentPath
bgps.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bgps.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bgps.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bgps.EntityData.Children = types.NewOrderedMap()
bgps.EntityData.Children.Append("bgp", types.YChild{"Bgp", nil})
for i := range bgps.Bgp {
bgps.EntityData.Children.Append(types.GetSegmentPath(bgps.Bgp[i]), types.YChild{"Bgp", bgps.Bgp[i]})
}
bgps.EntityData.Leafs = types.NewOrderedMap()
bgps.EntityData.YListKeys = []string {}
return &(bgps.EntityData)
}
// Rip_DefaultVrf_Redistribution_Bgps_Bgp
// Autonomous system number
type Rip_DefaultVrf_Redistribution_Bgps_Bgp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Higher 16 bits of 4-byte BGP AS number. The type
// is interface{} with range: 0..65535.
Asnxx interface{}
// This attribute is a key. 2-byte or 4-byte BGP AS number. The type is
// interface{} with range: 0..4294967295.
Asnyy interface{}
// Route Policy name. The type is string.
Policy interface{}
// Route type. The type is BgpRedistRoute.
Type interface{}
}
func (bgp *Rip_DefaultVrf_Redistribution_Bgps_Bgp) GetEntityData() *types.CommonEntityData {
bgp.EntityData.YFilter = bgp.YFilter
bgp.EntityData.YangName = "bgp"
bgp.EntityData.BundleName = "cisco_ios_xr"
bgp.EntityData.ParentYangName = "bgps"
bgp.EntityData.SegmentPath = "bgp" + types.AddKeyToken(bgp.Asnxx, "asnxx") + types.AddKeyToken(bgp.Asnyy, "asnyy")
bgp.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/bgps/" + bgp.EntityData.SegmentPath
bgp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bgp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bgp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bgp.EntityData.Children = types.NewOrderedMap()
bgp.EntityData.Leafs = types.NewOrderedMap()
bgp.EntityData.Leafs.Append("asnxx", types.YLeaf{"Asnxx", bgp.Asnxx})
bgp.EntityData.Leafs.Append("asnyy", types.YLeaf{"Asnyy", bgp.Asnyy})
bgp.EntityData.Leafs.Append("policy", types.YLeaf{"Policy", bgp.Policy})
bgp.EntityData.Leafs.Append("type", types.YLeaf{"Type", bgp.Type})
bgp.EntityData.YListKeys = []string {"Asnxx", "Asnyy"}
return &(bgp.EntityData)
}
// Rip_DefaultVrf_Redistribution_Isises
// Redistribute IS-IS routes
type Rip_DefaultVrf_Redistribution_Isises struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Redistribute IS-IS routes. The type is slice of
// Rip_DefaultVrf_Redistribution_Isises_Isis.
Isis []*Rip_DefaultVrf_Redistribution_Isises_Isis
}
func (isises *Rip_DefaultVrf_Redistribution_Isises) GetEntityData() *types.CommonEntityData {
isises.EntityData.YFilter = isises.YFilter
isises.EntityData.YangName = "isises"
isises.EntityData.BundleName = "cisco_ios_xr"
isises.EntityData.ParentYangName = "redistribution"
isises.EntityData.SegmentPath = "isises"
isises.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/" + isises.EntityData.SegmentPath
isises.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
isises.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
isises.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
isises.EntityData.Children = types.NewOrderedMap()
isises.EntityData.Children.Append("isis", types.YChild{"Isis", nil})
for i := range isises.Isis {
isises.EntityData.Children.Append(types.GetSegmentPath(isises.Isis[i]), types.YChild{"Isis", isises.Isis[i]})
}
isises.EntityData.Leafs = types.NewOrderedMap()
isises.EntityData.YListKeys = []string {}
return &(isises.EntityData)
}
// Rip_DefaultVrf_Redistribution_Isises_Isis
// Redistribute IS-IS routes
type Rip_DefaultVrf_Redistribution_Isises_Isis struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. IS-IS instance name. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
IsisName interface{}
// Route Policy name. The type is string.
RoutePolicyName interface{}
// Route type. The type is IsisRedistRoute.
RouteType interface{}
}
func (isis *Rip_DefaultVrf_Redistribution_Isises_Isis) GetEntityData() *types.CommonEntityData {
isis.EntityData.YFilter = isis.YFilter
isis.EntityData.YangName = "isis"
isis.EntityData.BundleName = "cisco_ios_xr"
isis.EntityData.ParentYangName = "isises"
isis.EntityData.SegmentPath = "isis" + types.AddKeyToken(isis.IsisName, "isis-name")
isis.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/isises/" + isis.EntityData.SegmentPath
isis.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
isis.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
isis.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
isis.EntityData.Children = types.NewOrderedMap()
isis.EntityData.Leafs = types.NewOrderedMap()
isis.EntityData.Leafs.Append("isis-name", types.YLeaf{"IsisName", isis.IsisName})
isis.EntityData.Leafs.Append("route-policy-name", types.YLeaf{"RoutePolicyName", isis.RoutePolicyName})
isis.EntityData.Leafs.Append("route-type", types.YLeaf{"RouteType", isis.RouteType})
isis.EntityData.YListKeys = []string {"IsisName"}
return &(isis.EntityData)
}
// Rip_DefaultVrf_Redistribution_EigrpS
// Redistribute EIGRP routes
type Rip_DefaultVrf_Redistribution_EigrpS struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Redistribute EIGRP routes. The type is slice of
// Rip_DefaultVrf_Redistribution_EigrpS_Eigrp.
Eigrp []*Rip_DefaultVrf_Redistribution_EigrpS_Eigrp
}
func (eigrpS *Rip_DefaultVrf_Redistribution_EigrpS) GetEntityData() *types.CommonEntityData {
eigrpS.EntityData.YFilter = eigrpS.YFilter
eigrpS.EntityData.YangName = "eigrp-s"
eigrpS.EntityData.BundleName = "cisco_ios_xr"
eigrpS.EntityData.ParentYangName = "redistribution"
eigrpS.EntityData.SegmentPath = "eigrp-s"
eigrpS.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/" + eigrpS.EntityData.SegmentPath
eigrpS.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
eigrpS.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
eigrpS.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
eigrpS.EntityData.Children = types.NewOrderedMap()
eigrpS.EntityData.Children.Append("eigrp", types.YChild{"Eigrp", nil})
for i := range eigrpS.Eigrp {
eigrpS.EntityData.Children.Append(types.GetSegmentPath(eigrpS.Eigrp[i]), types.YChild{"Eigrp", eigrpS.Eigrp[i]})
}
eigrpS.EntityData.Leafs = types.NewOrderedMap()
eigrpS.EntityData.YListKeys = []string {}
return &(eigrpS.EntityData)
}
// Rip_DefaultVrf_Redistribution_EigrpS_Eigrp
// Redistribute EIGRP routes
type Rip_DefaultVrf_Redistribution_EigrpS_Eigrp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Autonomous system number. The type is interface{}
// with range: 1..65535.
As interface{}
// Route Policy name. The type is string.
RoutePolicyName interface{}
// Route type. The type is DefaultRedistRoute.
RouteType interface{}
}
func (eigrp *Rip_DefaultVrf_Redistribution_EigrpS_Eigrp) GetEntityData() *types.CommonEntityData {
eigrp.EntityData.YFilter = eigrp.YFilter
eigrp.EntityData.YangName = "eigrp"
eigrp.EntityData.BundleName = "cisco_ios_xr"
eigrp.EntityData.ParentYangName = "eigrp-s"
eigrp.EntityData.SegmentPath = "eigrp" + types.AddKeyToken(eigrp.As, "as")
eigrp.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/eigrp-s/" + eigrp.EntityData.SegmentPath
eigrp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
eigrp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
eigrp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
eigrp.EntityData.Children = types.NewOrderedMap()
eigrp.EntityData.Leafs = types.NewOrderedMap()
eigrp.EntityData.Leafs.Append("as", types.YLeaf{"As", eigrp.As})
eigrp.EntityData.Leafs.Append("route-policy-name", types.YLeaf{"RoutePolicyName", eigrp.RoutePolicyName})
eigrp.EntityData.Leafs.Append("route-type", types.YLeaf{"RouteType", eigrp.RouteType})
eigrp.EntityData.YListKeys = []string {"As"}
return &(eigrp.EntityData)
}
// Rip_DefaultVrf_Redistribution_Static
// Redistribute static routes
// This type is a presence type.
type Rip_DefaultVrf_Redistribution_Static struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Route Policy name. The type is string.
RoutePolicyName interface{}
// Route type. The type is DefaultRedistRoute.
RouteType interface{}
}
func (static *Rip_DefaultVrf_Redistribution_Static) GetEntityData() *types.CommonEntityData {
static.EntityData.YFilter = static.YFilter
static.EntityData.YangName = "static"
static.EntityData.BundleName = "cisco_ios_xr"
static.EntityData.ParentYangName = "redistribution"
static.EntityData.SegmentPath = "static"
static.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/" + static.EntityData.SegmentPath
static.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
static.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
static.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
static.EntityData.Children = types.NewOrderedMap()
static.EntityData.Leafs = types.NewOrderedMap()
static.EntityData.Leafs.Append("route-policy-name", types.YLeaf{"RoutePolicyName", static.RoutePolicyName})
static.EntityData.Leafs.Append("route-type", types.YLeaf{"RouteType", static.RouteType})
static.EntityData.YListKeys = []string {}
return &(static.EntityData)
}
// Rip_DefaultVrf_Redistribution_Ospfs
// Redistribute OSPF routes
type Rip_DefaultVrf_Redistribution_Ospfs struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Redistribute OSPF routes. The type is slice of
// Rip_DefaultVrf_Redistribution_Ospfs_Ospf.
Ospf []*Rip_DefaultVrf_Redistribution_Ospfs_Ospf
}
func (ospfs *Rip_DefaultVrf_Redistribution_Ospfs) GetEntityData() *types.CommonEntityData {
ospfs.EntityData.YFilter = ospfs.YFilter
ospfs.EntityData.YangName = "ospfs"
ospfs.EntityData.BundleName = "cisco_ios_xr"
ospfs.EntityData.ParentYangName = "redistribution"
ospfs.EntityData.SegmentPath = "ospfs"
ospfs.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/" + ospfs.EntityData.SegmentPath
ospfs.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ospfs.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ospfs.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ospfs.EntityData.Children = types.NewOrderedMap()
ospfs.EntityData.Children.Append("ospf", types.YChild{"Ospf", nil})
for i := range ospfs.Ospf {
ospfs.EntityData.Children.Append(types.GetSegmentPath(ospfs.Ospf[i]), types.YChild{"Ospf", ospfs.Ospf[i]})
}
ospfs.EntityData.Leafs = types.NewOrderedMap()
ospfs.EntityData.YListKeys = []string {}
return &(ospfs.EntityData)
}
// Rip_DefaultVrf_Redistribution_Ospfs_Ospf
// Redistribute OSPF routes
type Rip_DefaultVrf_Redistribution_Ospfs_Ospf struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Process ID for the OSPF instance. The type is
// string with pattern: [\w\-\.:,_@#%$\+=\|;]+.
OspfName interface{}
// Route Policy name. The type is string.
RoutePolicyName interface{}
// Internal routes. The type is bool.
Internal interface{}
// External routes. The type is bool.
External interface{}
// External route type. The type is interface{} with range: 0..2.
ExternalType interface{}
// NSSA External routes. The type is bool.
NssaExternal interface{}
// NSSA External route type. The type is interface{} with range: 0..2.
NssaExternalType interface{}
}
func (ospf *Rip_DefaultVrf_Redistribution_Ospfs_Ospf) GetEntityData() *types.CommonEntityData {
ospf.EntityData.YFilter = ospf.YFilter
ospf.EntityData.YangName = "ospf"
ospf.EntityData.BundleName = "cisco_ios_xr"
ospf.EntityData.ParentYangName = "ospfs"
ospf.EntityData.SegmentPath = "ospf" + types.AddKeyToken(ospf.OspfName, "ospf-name")
ospf.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/redistribution/ospfs/" + ospf.EntityData.SegmentPath
ospf.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ospf.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ospf.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ospf.EntityData.Children = types.NewOrderedMap()
ospf.EntityData.Leafs = types.NewOrderedMap()
ospf.EntityData.Leafs.Append("ospf-name", types.YLeaf{"OspfName", ospf.OspfName})
ospf.EntityData.Leafs.Append("route-policy-name", types.YLeaf{"RoutePolicyName", ospf.RoutePolicyName})
ospf.EntityData.Leafs.Append("internal", types.YLeaf{"Internal", ospf.Internal})
ospf.EntityData.Leafs.Append("external", types.YLeaf{"External", ospf.External})
ospf.EntityData.Leafs.Append("external-type", types.YLeaf{"ExternalType", ospf.ExternalType})
ospf.EntityData.Leafs.Append("nssa-external", types.YLeaf{"NssaExternal", ospf.NssaExternal})
ospf.EntityData.Leafs.Append("nssa-external-type", types.YLeaf{"NssaExternalType", ospf.NssaExternalType})
ospf.EntityData.YListKeys = []string {"OspfName"}
return &(ospf.EntityData)
}
// Rip_DefaultVrf_IpDistances
// Table of IP specific administrative distances
type Rip_DefaultVrf_IpDistances struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IP specific administrative distance. The type is slice of
// Rip_DefaultVrf_IpDistances_IpDistance.
IpDistance []*Rip_DefaultVrf_IpDistances_IpDistance
}
func (ipDistances *Rip_DefaultVrf_IpDistances) GetEntityData() *types.CommonEntityData {
ipDistances.EntityData.YFilter = ipDistances.YFilter
ipDistances.EntityData.YangName = "ip-distances"
ipDistances.EntityData.BundleName = "cisco_ios_xr"
ipDistances.EntityData.ParentYangName = "default-vrf"
ipDistances.EntityData.SegmentPath = "ip-distances"
ipDistances.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/" + ipDistances.EntityData.SegmentPath
ipDistances.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipDistances.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipDistances.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipDistances.EntityData.Children = types.NewOrderedMap()
ipDistances.EntityData.Children.Append("ip-distance", types.YChild{"IpDistance", nil})
for i := range ipDistances.IpDistance {
ipDistances.EntityData.Children.Append(types.GetSegmentPath(ipDistances.IpDistance[i]), types.YChild{"IpDistance", ipDistances.IpDistance[i]})
}
ipDistances.EntityData.Leafs = types.NewOrderedMap()
ipDistances.EntityData.YListKeys = []string {}
return &(ipDistances.EntityData)
}
// Rip_DefaultVrf_IpDistances_IpDistance
// IP specific administrative distance
type Rip_DefaultVrf_IpDistances_IpDistance struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. IP Source address. The type is string with
// pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Address interface{}
// This attribute is a key. IP address mask. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Netmask interface{}
// Administrative distance. The type is interface{} with range: 0..255. This
// attribute is mandatory.
Distance interface{}
}
func (ipDistance *Rip_DefaultVrf_IpDistances_IpDistance) GetEntityData() *types.CommonEntityData {
ipDistance.EntityData.YFilter = ipDistance.YFilter
ipDistance.EntityData.YangName = "ip-distance"
ipDistance.EntityData.BundleName = "cisco_ios_xr"
ipDistance.EntityData.ParentYangName = "ip-distances"
ipDistance.EntityData.SegmentPath = "ip-distance" + types.AddKeyToken(ipDistance.Address, "address") + types.AddKeyToken(ipDistance.Netmask, "netmask")
ipDistance.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/ip-distances/" + ipDistance.EntityData.SegmentPath
ipDistance.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipDistance.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipDistance.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipDistance.EntityData.Children = types.NewOrderedMap()
ipDistance.EntityData.Leafs = types.NewOrderedMap()
ipDistance.EntityData.Leafs.Append("address", types.YLeaf{"Address", ipDistance.Address})
ipDistance.EntityData.Leafs.Append("netmask", types.YLeaf{"Netmask", ipDistance.Netmask})
ipDistance.EntityData.Leafs.Append("distance", types.YLeaf{"Distance", ipDistance.Distance})
ipDistance.EntityData.YListKeys = []string {"Address", "Netmask"}
return &(ipDistance.EntityData)
}
// Rip_DefaultVrf_Interfaces
// Table of RIP interfaces
type Rip_DefaultVrf_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// RIP interface name. The type is slice of
// Rip_DefaultVrf_Interfaces_Interface.
Interface []*Rip_DefaultVrf_Interfaces_Interface
}
func (interfaces *Rip_DefaultVrf_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "default-vrf"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/" + interfaces.EntityData.SegmentPath
interfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaces.EntityData.Children = types.NewOrderedMap()
interfaces.EntityData.Children.Append("interface", types.YChild{"Interface", nil})
for i := range interfaces.Interface {
interfaces.EntityData.Children.Append(types.GetSegmentPath(interfaces.Interface[i]), types.YChild{"Interface", interfaces.Interface[i]})
}
interfaces.EntityData.Leafs = types.NewOrderedMap()
interfaces.EntityData.YListKeys = []string {}
return &(interfaces.EntityData)
}
// Rip_DefaultVrf_Interfaces_Interface
// RIP interface name
type Rip_DefaultVrf_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface name. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// Send RIP v2 output packets to broadcast address. The type is interface{}.
BroadcastForV2 interface{}
// Enable poison reverse. The type is interface{}.
PoisonReverse interface{}
// Suppress routing updates on this interface. The type is interface{}.
Passive interface{}
// Starts RIP interface configuration. The type is interface{}.
Enable interface{}
// Route Policy for outbound routing updates. The type is string.
PolicyOut interface{}
// Accept RIP updates with metric 0. The type is interface{}.
AcceptMetricZero interface{}
// Route Policy for inbound routing updates. The type is string.
PolicyIn interface{}
// Disable split horizon. The type is interface{}.
SplitHorizonDisable interface{}
// Authentication keychain and mode.
Authentication Rip_DefaultVrf_Interfaces_Interface_Authentication
// SOO community for prefixes learned over this interface.
SiteOfOrigin Rip_DefaultVrf_Interfaces_Interface_SiteOfOrigin
// RIP versions supported for receiving advertisements.
ReceiveVersion Rip_DefaultVrf_Interfaces_Interface_ReceiveVersion
// RIP versions supported for sending advertisements.
SendVersion Rip_DefaultVrf_Interfaces_Interface_SendVersion
}
func (self *Rip_DefaultVrf_Interfaces_Interface) GetEntityData() *types.CommonEntityData {
self.EntityData.YFilter = self.YFilter
self.EntityData.YangName = "interface"
self.EntityData.BundleName = "cisco_ios_xr"
self.EntityData.ParentYangName = "interfaces"
self.EntityData.SegmentPath = "interface" + types.AddKeyToken(self.InterfaceName, "interface-name")
self.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Children.Append("authentication", types.YChild{"Authentication", &self.Authentication})
self.EntityData.Children.Append("site-of-origin", types.YChild{"SiteOfOrigin", &self.SiteOfOrigin})
self.EntityData.Children.Append("receive-version", types.YChild{"ReceiveVersion", &self.ReceiveVersion})
self.EntityData.Children.Append("send-version", types.YChild{"SendVersion", &self.SendVersion})
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", self.InterfaceName})
self.EntityData.Leafs.Append("broadcast-for-v2", types.YLeaf{"BroadcastForV2", self.BroadcastForV2})
self.EntityData.Leafs.Append("poison-reverse", types.YLeaf{"PoisonReverse", self.PoisonReverse})
self.EntityData.Leafs.Append("passive", types.YLeaf{"Passive", self.Passive})
self.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", self.Enable})
self.EntityData.Leafs.Append("policy-out", types.YLeaf{"PolicyOut", self.PolicyOut})
self.EntityData.Leafs.Append("accept-metric-zero", types.YLeaf{"AcceptMetricZero", self.AcceptMetricZero})
self.EntityData.Leafs.Append("policy-in", types.YLeaf{"PolicyIn", self.PolicyIn})
self.EntityData.Leafs.Append("split-horizon-disable", types.YLeaf{"SplitHorizonDisable", self.SplitHorizonDisable})
self.EntityData.YListKeys = []string {"InterfaceName"}
return &(self.EntityData)
}
// Rip_DefaultVrf_Interfaces_Interface_Authentication
// Authentication keychain and mode
// This type is a presence type.
type Rip_DefaultVrf_Interfaces_Interface_Authentication struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Name of keychain. The type is string. This attribute is mandatory.
Keychain interface{}
// Authentication mode. The type is RipAuthMode. This attribute is mandatory.
Mode interface{}
}
func (authentication *Rip_DefaultVrf_Interfaces_Interface_Authentication) GetEntityData() *types.CommonEntityData {
authentication.EntityData.YFilter = authentication.YFilter
authentication.EntityData.YangName = "authentication"
authentication.EntityData.BundleName = "cisco_ios_xr"
authentication.EntityData.ParentYangName = "interface"
authentication.EntityData.SegmentPath = "authentication"
authentication.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/interfaces/interface/" + authentication.EntityData.SegmentPath
authentication.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
authentication.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
authentication.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
authentication.EntityData.Children = types.NewOrderedMap()
authentication.EntityData.Leafs = types.NewOrderedMap()
authentication.EntityData.Leafs.Append("keychain", types.YLeaf{"Keychain", authentication.Keychain})
authentication.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", authentication.Mode})
authentication.EntityData.YListKeys = []string {}
return &(authentication.EntityData)
}
// Rip_DefaultVrf_Interfaces_Interface_SiteOfOrigin
// SOO community for prefixes learned over this
// interface
type Rip_DefaultVrf_Interfaces_Interface_SiteOfOrigin struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Extended community type. The type is RipExtCommunity.
Type interface{}
// AS Number for AS:nn format. The type is interface{} with range: 0..65535.
AsXx interface{}
// 32 bit value for AS:nn format. The type is interface{} with range:
// 0..4294967295.
AsYy interface{}
// AS Number Index. The type is interface{} with range: 0..4294967295.
AsIndex interface{}
// IPV4 address for IPV4Address:nn format. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Address interface{}
// 16bit value for IPV4Address:nn format. The type is interface{} with range:
// 0..65535.
AddressIndex interface{}
}
func (siteOfOrigin *Rip_DefaultVrf_Interfaces_Interface_SiteOfOrigin) GetEntityData() *types.CommonEntityData {
siteOfOrigin.EntityData.YFilter = siteOfOrigin.YFilter
siteOfOrigin.EntityData.YangName = "site-of-origin"
siteOfOrigin.EntityData.BundleName = "cisco_ios_xr"
siteOfOrigin.EntityData.ParentYangName = "interface"
siteOfOrigin.EntityData.SegmentPath = "site-of-origin"
siteOfOrigin.EntityData.AbsolutePath = "Cisco-IOS-XR-ip-rip-cfg:rip/default-vrf/interfaces/interface/" + siteOfOrigin.EntityData.SegmentPath
siteOfOrigin.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
siteOfOrigin.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
siteOfOrigin.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
siteOfOrigin.EntityData.Children = types.NewOrderedMap()
siteOfOrigin.EntityData.Leafs = types.NewOrderedMap()
siteOfOrigin.EntityData.Leafs.Append("type", types.YLeaf{"Type", siteOfOrigin.Type})
siteOfOrigin.EntityData.Leafs.Append("as-xx", types.YLeaf{"AsXx", siteOfOrigin.AsXx})
siteOfOrigin.EntityData.Leafs.Append("as-yy", types.YLeaf{"AsYy", siteOfOrigin.AsYy})
siteOfOrigin.EntityData.Leafs.Append("as-index", types.YLeaf{"AsIndex", siteOfOrigin.AsIndex})
siteOfOrigin.EntityData.Leafs.Append("address", types.YLeaf{"Address", siteOfOrigin.Address})
siteOfOrigin.EntityData.Leafs.Append("address-index", types.YLeaf{"AddressIndex", siteOfOrigin.AddressIndex})
siteOfOrigin.EntityData.YListKeys = []string {}
return &(siteOfOrigin.EntityData)
}
// Rip_DefaultVrf_Interfaces_Interface_ReceiveVersion
// RIP versions supported for receiving
// advertisements
type Rip_DefaultVrf_Interfaces_Interface_ReceiveVersion struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Support RIP version 1. The type is bool.