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
/
mpls_ldp_cfg.go
5290 lines (4251 loc) · 241 KB
/
mpls_ldp_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 mpls-ldp package configuration.
//
// This module contains definitions
// for the following management objects:
// mpls-ldp: MPLS LDP configuration
//
// This YANG module augments the
// Cisco-IOS-XR-snmp-agent-cfg
// module with configuration data.
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package mpls_ldp_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 mpls_ldp_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-mpls-ldp-cfg mpls-ldp}", reflect.TypeOf(MplsLdp{}))
ydk.RegisterEntity("Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp", reflect.TypeOf(MplsLdp{}))
}
// MplsLdpLabelAdvertise represents Mpls ldp label advertise
type MplsLdpLabelAdvertise string
const (
// Advertise label for prefix(es) permitted by
// prefix ACL
MplsLdpLabelAdvertise_for_ MplsLdpLabelAdvertise = "for"
// Advertise label for prefix(es) permitted by
// prefix ACL to peer(s) permitted by peer ACL
MplsLdpLabelAdvertise_for_to MplsLdpLabelAdvertise = "for-to"
)
// MldpPolicyMode represents Mldp policy mode
type MldpPolicyMode string
const (
// Inbound route policy
MldpPolicyMode_inbound MldpPolicyMode = "inbound"
// Outbound route policy
MldpPolicyMode_outbound MldpPolicyMode = "outbound"
)
// MplsLdpLabelAllocation represents Mpls ldp label allocation
type MplsLdpLabelAllocation string
const (
// Allocate label for prefixes permitted by ACL
MplsLdpLabelAllocation_acl MplsLdpLabelAllocation = "acl"
// Allocate label for host routes only
MplsLdpLabelAllocation_host MplsLdpLabelAllocation = "host"
)
// MplsLdpTargetedAccept represents Mpls ldp targeted accept
type MplsLdpTargetedAccept string
const (
// Accept targeted hello from all
MplsLdpTargetedAccept_all MplsLdpTargetedAccept = "all"
// Accept targeted hello from peer ACL
MplsLdpTargetedAccept_from MplsLdpTargetedAccept = "from"
)
// MplsLdpNbrPassword represents Mpls ldp nbr password
type MplsLdpNbrPassword string
const (
// Disable the global default password for this
// neighbor
MplsLdpNbrPassword_disable MplsLdpNbrPassword = "disable"
// Specify a password for this neighbor
MplsLdpNbrPassword_specified MplsLdpNbrPassword = "specified"
)
// MplsLdpDownstreamOnDemand represents Mpls ldp downstream on demand
type MplsLdpDownstreamOnDemand string
const (
// Downstream on Demand peers permitted by ACL
MplsLdpDownstreamOnDemand_peer_acl MplsLdpDownstreamOnDemand = "peer-acl"
)
// MplsLdpExpNull represents Mpls ldp exp null
type MplsLdpExpNull string
const (
// Advertise explicit-null for all connected
// prefixes to all peers
MplsLdpExpNull_all MplsLdpExpNull = "all"
// Advertise explicit-null for prefix(es)
// permitted by prefix ACL
MplsLdpExpNull_for_ MplsLdpExpNull = "for"
// Advertise explicit-null for all connected
// prefixes to peer(s) permitted by peer ACL
MplsLdpExpNull_to MplsLdpExpNull = "to"
// Advertise explicit-null for prefix(es)
// permitted by prefix ACL to peer(s) permitted by
// peer ACL
MplsLdpExpNull_for_to MplsLdpExpNull = "for-to"
)
// MplsLdpAdvertiseBgpAcl represents Mpls ldp advertise bgp acl
type MplsLdpAdvertiseBgpAcl string
const (
// BGP prefixes advertised to peers permitted by
// ACL
MplsLdpAdvertiseBgpAcl_peer_acl MplsLdpAdvertiseBgpAcl = "peer-acl"
)
// MplsLdpafName represents Mpls ldpaf name
type MplsLdpafName string
const (
// IPv4
MplsLdpafName_ipv4 MplsLdpafName = "ipv4"
// IPv6
MplsLdpafName_ipv6 MplsLdpafName = "ipv6"
)
// MplsLdpTransportAddress represents Mpls ldp transport address
type MplsLdpTransportAddress string
const (
// Use interface IP address
MplsLdpTransportAddress_interface_ MplsLdpTransportAddress = "interface"
// Use given IP address
MplsLdpTransportAddress_address MplsLdpTransportAddress = "address"
)
// MplsLdpSessionProtection represents Mpls ldp session protection
type MplsLdpSessionProtection string
const (
// Protect all peer sessions
MplsLdpSessionProtection_all MplsLdpSessionProtection = "all"
// Protect peer session(s) permitted by peer ACL
MplsLdpSessionProtection_for_ MplsLdpSessionProtection = "for"
// Protect all peer sessions and holdup protection
// for given duration
MplsLdpSessionProtection_all_with_duration MplsLdpSessionProtection = "all-with-duration"
// Protect peer session(s) permitted by peer ACL
// and holdup protection for given duration
MplsLdpSessionProtection_for_with_duration MplsLdpSessionProtection = "for-with-duration"
// Protect all peer sessions and holdup protection
// forever
MplsLdpSessionProtection_all_with_forever MplsLdpSessionProtection = "all-with-forever"
// Protect peer session(s) permitted by peer ACL
// and holdup protection forever
MplsLdpSessionProtection_for_with_forever MplsLdpSessionProtection = "for-with-forever"
)
// MplsLdp
// MPLS LDP configuration
// This type is a presence type.
type MplsLdp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Enable Label Distribution Protocol (LDP) globally.Without creating this
// object the LDP feature will not be enabled. Deleting this object will stop
// the LDP feature. The type is interface{}. This attribute is mandatory.
Enable interface{}
// Global VRF attribute configuration for MPLS LDP.
DefaultVrf MplsLdp_DefaultVrf
// VRF Table attribute configuration for MPLS LDP.
Vrfs MplsLdp_Vrfs
// Global configuration for MPLS LDP.
Global MplsLdp_Global
}
func (mplsLdp *MplsLdp) GetEntityData() *types.CommonEntityData {
mplsLdp.EntityData.YFilter = mplsLdp.YFilter
mplsLdp.EntityData.YangName = "mpls-ldp"
mplsLdp.EntityData.BundleName = "cisco_ios_xr"
mplsLdp.EntityData.ParentYangName = "Cisco-IOS-XR-mpls-ldp-cfg"
mplsLdp.EntityData.SegmentPath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp"
mplsLdp.EntityData.AbsolutePath = mplsLdp.EntityData.SegmentPath
mplsLdp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
mplsLdp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
mplsLdp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
mplsLdp.EntityData.Children = types.NewOrderedMap()
mplsLdp.EntityData.Children.Append("default-vrf", types.YChild{"DefaultVrf", &mplsLdp.DefaultVrf})
mplsLdp.EntityData.Children.Append("vrfs", types.YChild{"Vrfs", &mplsLdp.Vrfs})
mplsLdp.EntityData.Children.Append("global", types.YChild{"Global", &mplsLdp.Global})
mplsLdp.EntityData.Leafs = types.NewOrderedMap()
mplsLdp.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", mplsLdp.Enable})
mplsLdp.EntityData.YListKeys = []string {}
return &(mplsLdp.EntityData)
}
// MplsLdp_DefaultVrf
// Global VRF attribute configuration for MPLS LDP
type MplsLdp_DefaultVrf struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Address Family specific configuration for MPLS LDP.
Afs MplsLdp_DefaultVrf_Afs
// Default VRF Global configuration for MPLS LDP.
Global MplsLdp_DefaultVrf_Global
// MPLS LDP configuration pertaining to interfaces.
Interfaces MplsLdp_DefaultVrf_Interfaces
}
func (defaultVrf *MplsLdp_DefaultVrf) GetEntityData() *types.CommonEntityData {
defaultVrf.EntityData.YFilter = defaultVrf.YFilter
defaultVrf.EntityData.YangName = "default-vrf"
defaultVrf.EntityData.BundleName = "cisco_ios_xr"
defaultVrf.EntityData.ParentYangName = "mpls-ldp"
defaultVrf.EntityData.SegmentPath = "default-vrf"
defaultVrf.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/" + 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("afs", types.YChild{"Afs", &defaultVrf.Afs})
defaultVrf.EntityData.Children.Append("global", types.YChild{"Global", &defaultVrf.Global})
defaultVrf.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &defaultVrf.Interfaces})
defaultVrf.EntityData.Leafs = types.NewOrderedMap()
defaultVrf.EntityData.YListKeys = []string {}
return &(defaultVrf.EntityData)
}
// MplsLdp_DefaultVrf_Afs
// Address Family specific configuration for MPLS
// LDP
type MplsLdp_DefaultVrf_Afs struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure data for given Address Family. The type is slice of
// MplsLdp_DefaultVrf_Afs_Af.
Af []*MplsLdp_DefaultVrf_Afs_Af
}
func (afs *MplsLdp_DefaultVrf_Afs) GetEntityData() *types.CommonEntityData {
afs.EntityData.YFilter = afs.YFilter
afs.EntityData.YangName = "afs"
afs.EntityData.BundleName = "cisco_ios_xr"
afs.EntityData.ParentYangName = "default-vrf"
afs.EntityData.SegmentPath = "afs"
afs.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/" + afs.EntityData.SegmentPath
afs.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
afs.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
afs.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
afs.EntityData.Children = types.NewOrderedMap()
afs.EntityData.Children.Append("af", types.YChild{"Af", nil})
for i := range afs.Af {
afs.EntityData.Children.Append(types.GetSegmentPath(afs.Af[i]), types.YChild{"Af", afs.Af[i]})
}
afs.EntityData.Leafs = types.NewOrderedMap()
afs.EntityData.YListKeys = []string {}
return &(afs.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af
// Configure data for given Address Family
type MplsLdp_DefaultVrf_Afs_Af struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Address Family type. The type is MplsLdpafName.
AfName interface{}
// Enable Address Family. The type is interface{}.
Enable interface{}
// Configure Label policies and control.
Label MplsLdp_DefaultVrf_Afs_Af_Label
// Configure Discovery parameters.
Discovery MplsLdp_DefaultVrf_Afs_Af_Discovery
// MPLS Traffic Engingeering parameters for LDP.
TrafficEngineering MplsLdp_DefaultVrf_Afs_Af_TrafficEngineering
// Configuration related to Neighbors.
Neighbor MplsLdp_DefaultVrf_Afs_Af_Neighbor
// MPLS LDP configuration for protocol redistribution.
RedistributionProtocol MplsLdp_DefaultVrf_Afs_Af_RedistributionProtocol
}
func (af *MplsLdp_DefaultVrf_Afs_Af) GetEntityData() *types.CommonEntityData {
af.EntityData.YFilter = af.YFilter
af.EntityData.YangName = "af"
af.EntityData.BundleName = "cisco_ios_xr"
af.EntityData.ParentYangName = "afs"
af.EntityData.SegmentPath = "af" + types.AddKeyToken(af.AfName, "af-name")
af.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/" + af.EntityData.SegmentPath
af.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
af.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
af.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
af.EntityData.Children = types.NewOrderedMap()
af.EntityData.Children.Append("label", types.YChild{"Label", &af.Label})
af.EntityData.Children.Append("discovery", types.YChild{"Discovery", &af.Discovery})
af.EntityData.Children.Append("traffic-engineering", types.YChild{"TrafficEngineering", &af.TrafficEngineering})
af.EntityData.Children.Append("neighbor", types.YChild{"Neighbor", &af.Neighbor})
af.EntityData.Children.Append("redistribution-protocol", types.YChild{"RedistributionProtocol", &af.RedistributionProtocol})
af.EntityData.Leafs = types.NewOrderedMap()
af.EntityData.Leafs.Append("af-name", types.YLeaf{"AfName", af.AfName})
af.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", af.Enable})
af.EntityData.YListKeys = []string {"AfName"}
return &(af.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label
// Configure Label policies and control
type MplsLdp_DefaultVrf_Afs_Af_Label struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure remote/peer label policies and control.
Remote MplsLdp_DefaultVrf_Afs_Af_Label_Remote
// Configure local label policies and control.
Local MplsLdp_DefaultVrf_Afs_Af_Label_Local
}
func (label *MplsLdp_DefaultVrf_Afs_Af_Label) GetEntityData() *types.CommonEntityData {
label.EntityData.YFilter = label.YFilter
label.EntityData.YangName = "label"
label.EntityData.BundleName = "cisco_ios_xr"
label.EntityData.ParentYangName = "af"
label.EntityData.SegmentPath = "label"
label.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/" + label.EntityData.SegmentPath
label.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
label.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
label.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
label.EntityData.Children = types.NewOrderedMap()
label.EntityData.Children.Append("remote", types.YChild{"Remote", &label.Remote})
label.EntityData.Children.Append("local", types.YChild{"Local", &label.Local})
label.EntityData.Leafs = types.NewOrderedMap()
label.EntityData.YListKeys = []string {}
return &(label.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Remote
// Configure remote/peer label policies and
// control
type MplsLdp_DefaultVrf_Afs_Af_Label_Remote struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure inbound label acceptance.
Accept MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept
}
func (remote *MplsLdp_DefaultVrf_Afs_Af_Label_Remote) GetEntityData() *types.CommonEntityData {
remote.EntityData.YFilter = remote.YFilter
remote.EntityData.YangName = "remote"
remote.EntityData.BundleName = "cisco_ios_xr"
remote.EntityData.ParentYangName = "label"
remote.EntityData.SegmentPath = "remote"
remote.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/" + remote.EntityData.SegmentPath
remote.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
remote.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
remote.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
remote.EntityData.Children = types.NewOrderedMap()
remote.EntityData.Children.Append("accept", types.YChild{"Accept", &remote.Accept})
remote.EntityData.Leafs = types.NewOrderedMap()
remote.EntityData.YListKeys = []string {}
return &(remote.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept
// Configure inbound label acceptance
type MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configuration related to neighbors for inbound label acceptance.
PeerAcceptPolicies MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies
}
func (accept *MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept) GetEntityData() *types.CommonEntityData {
accept.EntityData.YFilter = accept.YFilter
accept.EntityData.YangName = "accept"
accept.EntityData.BundleName = "cisco_ios_xr"
accept.EntityData.ParentYangName = "remote"
accept.EntityData.SegmentPath = "accept"
accept.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/remote/" + accept.EntityData.SegmentPath
accept.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
accept.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
accept.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
accept.EntityData.Children = types.NewOrderedMap()
accept.EntityData.Children.Append("peer-accept-policies", types.YChild{"PeerAcceptPolicies", &accept.PeerAcceptPolicies})
accept.EntityData.Leafs = types.NewOrderedMap()
accept.EntityData.YListKeys = []string {}
return &(accept.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies
// Configuration related to neighbors for
// inbound label acceptance
type MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Control acceptance of labels from a neighbor for prefix(es) using ACL. The
// type is slice of
// MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies_PeerAcceptPolicy.
PeerAcceptPolicy []*MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies_PeerAcceptPolicy
}
func (peerAcceptPolicies *MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies) GetEntityData() *types.CommonEntityData {
peerAcceptPolicies.EntityData.YFilter = peerAcceptPolicies.YFilter
peerAcceptPolicies.EntityData.YangName = "peer-accept-policies"
peerAcceptPolicies.EntityData.BundleName = "cisco_ios_xr"
peerAcceptPolicies.EntityData.ParentYangName = "accept"
peerAcceptPolicies.EntityData.SegmentPath = "peer-accept-policies"
peerAcceptPolicies.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/remote/accept/" + peerAcceptPolicies.EntityData.SegmentPath
peerAcceptPolicies.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
peerAcceptPolicies.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
peerAcceptPolicies.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
peerAcceptPolicies.EntityData.Children = types.NewOrderedMap()
peerAcceptPolicies.EntityData.Children.Append("peer-accept-policy", types.YChild{"PeerAcceptPolicy", nil})
for i := range peerAcceptPolicies.PeerAcceptPolicy {
peerAcceptPolicies.EntityData.Children.Append(types.GetSegmentPath(peerAcceptPolicies.PeerAcceptPolicy[i]), types.YChild{"PeerAcceptPolicy", peerAcceptPolicies.PeerAcceptPolicy[i]})
}
peerAcceptPolicies.EntityData.Leafs = types.NewOrderedMap()
peerAcceptPolicies.EntityData.YListKeys = []string {}
return &(peerAcceptPolicies.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies_PeerAcceptPolicy
// Control acceptance of labels from a
// neighbor for prefix(es) using ACL
type MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies_PeerAcceptPolicy struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. LSR ID of neighbor. 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}]+)?.
LsrId interface{}
// This attribute is a key. Label space ID of neighbor. The type is
// interface{} with range: 0..4294967295.
LabelSpaceId interface{}
// Name of prefix ACL. The type is string. This attribute is mandatory.
PrefixAclName interface{}
}
func (peerAcceptPolicy *MplsLdp_DefaultVrf_Afs_Af_Label_Remote_Accept_PeerAcceptPolicies_PeerAcceptPolicy) GetEntityData() *types.CommonEntityData {
peerAcceptPolicy.EntityData.YFilter = peerAcceptPolicy.YFilter
peerAcceptPolicy.EntityData.YangName = "peer-accept-policy"
peerAcceptPolicy.EntityData.BundleName = "cisco_ios_xr"
peerAcceptPolicy.EntityData.ParentYangName = "peer-accept-policies"
peerAcceptPolicy.EntityData.SegmentPath = "peer-accept-policy" + types.AddKeyToken(peerAcceptPolicy.LsrId, "lsr-id") + types.AddKeyToken(peerAcceptPolicy.LabelSpaceId, "label-space-id")
peerAcceptPolicy.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/remote/accept/peer-accept-policies/" + peerAcceptPolicy.EntityData.SegmentPath
peerAcceptPolicy.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
peerAcceptPolicy.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
peerAcceptPolicy.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
peerAcceptPolicy.EntityData.Children = types.NewOrderedMap()
peerAcceptPolicy.EntityData.Leafs = types.NewOrderedMap()
peerAcceptPolicy.EntityData.Leafs.Append("lsr-id", types.YLeaf{"LsrId", peerAcceptPolicy.LsrId})
peerAcceptPolicy.EntityData.Leafs.Append("label-space-id", types.YLeaf{"LabelSpaceId", peerAcceptPolicy.LabelSpaceId})
peerAcceptPolicy.EntityData.Leafs.Append("prefix-acl-name", types.YLeaf{"PrefixAclName", peerAcceptPolicy.PrefixAclName})
peerAcceptPolicy.EntityData.YListKeys = []string {"LsrId", "LabelSpaceId"}
return &(peerAcceptPolicy.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local
// Configure local label policies and control
type MplsLdp_DefaultVrf_Afs_Af_Label_Local struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Control use of implicit-null label for set of prefix(es). The type is
// string.
ImplicitNullOverride interface{}
// Enable MPLS forwarding for default route. The type is interface{}.
DefaultRoute interface{}
// Configure outbound label advertisement.
Advertise MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise
// Control local label allocation for prefix(es).
Allocate MplsLdp_DefaultVrf_Afs_Af_Label_Local_Allocate
}
func (local *MplsLdp_DefaultVrf_Afs_Af_Label_Local) GetEntityData() *types.CommonEntityData {
local.EntityData.YFilter = local.YFilter
local.EntityData.YangName = "local"
local.EntityData.BundleName = "cisco_ios_xr"
local.EntityData.ParentYangName = "label"
local.EntityData.SegmentPath = "local"
local.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/" + local.EntityData.SegmentPath
local.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
local.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
local.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
local.EntityData.Children = types.NewOrderedMap()
local.EntityData.Children.Append("advertise", types.YChild{"Advertise", &local.Advertise})
local.EntityData.Children.Append("allocate", types.YChild{"Allocate", &local.Allocate})
local.EntityData.Leafs = types.NewOrderedMap()
local.EntityData.Leafs.Append("implicit-null-override", types.YLeaf{"ImplicitNullOverride", local.ImplicitNullOverride})
local.EntityData.Leafs.Append("default-route", types.YLeaf{"DefaultRoute", local.DefaultRoute})
local.EntityData.YListKeys = []string {}
return &(local.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise
// Configure outbound label advertisement
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Disable label advertisement. The type is interface{}.
Disable interface{}
// Configure peer centric outbound label advertisement using ACL.
PeerAdvertisePolicies MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies
// Configure prefix centric outbound label advertisement using ACL.
PrefixAdvertisePolicies MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies
// Configure advertisment of explicit-null for connected prefixes.
ExplicitNull MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_ExplicitNull
// Configure outbound label advertisement for an interface.
Interfaces MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces
}
func (advertise *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise) GetEntityData() *types.CommonEntityData {
advertise.EntityData.YFilter = advertise.YFilter
advertise.EntityData.YangName = "advertise"
advertise.EntityData.BundleName = "cisco_ios_xr"
advertise.EntityData.ParentYangName = "local"
advertise.EntityData.SegmentPath = "advertise"
advertise.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/" + advertise.EntityData.SegmentPath
advertise.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
advertise.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
advertise.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
advertise.EntityData.Children = types.NewOrderedMap()
advertise.EntityData.Children.Append("peer-advertise-policies", types.YChild{"PeerAdvertisePolicies", &advertise.PeerAdvertisePolicies})
advertise.EntityData.Children.Append("prefix-advertise-policies", types.YChild{"PrefixAdvertisePolicies", &advertise.PrefixAdvertisePolicies})
advertise.EntityData.Children.Append("explicit-null", types.YChild{"ExplicitNull", &advertise.ExplicitNull})
advertise.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &advertise.Interfaces})
advertise.EntityData.Leafs = types.NewOrderedMap()
advertise.EntityData.Leafs.Append("disable", types.YLeaf{"Disable", advertise.Disable})
advertise.EntityData.YListKeys = []string {}
return &(advertise.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies
// Configure peer centric outbound label
// advertisement using ACL
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Control advertisement of prefix(es) using ACL. The type is slice of
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies_PeerAdvertisePolicy.
PeerAdvertisePolicy []*MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies_PeerAdvertisePolicy
}
func (peerAdvertisePolicies *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies) GetEntityData() *types.CommonEntityData {
peerAdvertisePolicies.EntityData.YFilter = peerAdvertisePolicies.YFilter
peerAdvertisePolicies.EntityData.YangName = "peer-advertise-policies"
peerAdvertisePolicies.EntityData.BundleName = "cisco_ios_xr"
peerAdvertisePolicies.EntityData.ParentYangName = "advertise"
peerAdvertisePolicies.EntityData.SegmentPath = "peer-advertise-policies"
peerAdvertisePolicies.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/" + peerAdvertisePolicies.EntityData.SegmentPath
peerAdvertisePolicies.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
peerAdvertisePolicies.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
peerAdvertisePolicies.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
peerAdvertisePolicies.EntityData.Children = types.NewOrderedMap()
peerAdvertisePolicies.EntityData.Children.Append("peer-advertise-policy", types.YChild{"PeerAdvertisePolicy", nil})
for i := range peerAdvertisePolicies.PeerAdvertisePolicy {
peerAdvertisePolicies.EntityData.Children.Append(types.GetSegmentPath(peerAdvertisePolicies.PeerAdvertisePolicy[i]), types.YChild{"PeerAdvertisePolicy", peerAdvertisePolicies.PeerAdvertisePolicy[i]})
}
peerAdvertisePolicies.EntityData.Leafs = types.NewOrderedMap()
peerAdvertisePolicies.EntityData.YListKeys = []string {}
return &(peerAdvertisePolicies.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies_PeerAdvertisePolicy
// Control advertisement of prefix(es) using
// ACL
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies_PeerAdvertisePolicy struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. LSR ID of neighbor. 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}]+)?.
LsrId interface{}
// This attribute is a key. Label space ID of neighbor. The type is
// interface{} with range: 0..4294967295.
LabelSpaceId interface{}
// Name of prefix ACL. The type is string. This attribute is mandatory.
PrefixAclName interface{}
}
func (peerAdvertisePolicy *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PeerAdvertisePolicies_PeerAdvertisePolicy) GetEntityData() *types.CommonEntityData {
peerAdvertisePolicy.EntityData.YFilter = peerAdvertisePolicy.YFilter
peerAdvertisePolicy.EntityData.YangName = "peer-advertise-policy"
peerAdvertisePolicy.EntityData.BundleName = "cisco_ios_xr"
peerAdvertisePolicy.EntityData.ParentYangName = "peer-advertise-policies"
peerAdvertisePolicy.EntityData.SegmentPath = "peer-advertise-policy" + types.AddKeyToken(peerAdvertisePolicy.LsrId, "lsr-id") + types.AddKeyToken(peerAdvertisePolicy.LabelSpaceId, "label-space-id")
peerAdvertisePolicy.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/peer-advertise-policies/" + peerAdvertisePolicy.EntityData.SegmentPath
peerAdvertisePolicy.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
peerAdvertisePolicy.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
peerAdvertisePolicy.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
peerAdvertisePolicy.EntityData.Children = types.NewOrderedMap()
peerAdvertisePolicy.EntityData.Leafs = types.NewOrderedMap()
peerAdvertisePolicy.EntityData.Leafs.Append("lsr-id", types.YLeaf{"LsrId", peerAdvertisePolicy.LsrId})
peerAdvertisePolicy.EntityData.Leafs.Append("label-space-id", types.YLeaf{"LabelSpaceId", peerAdvertisePolicy.LabelSpaceId})
peerAdvertisePolicy.EntityData.Leafs.Append("prefix-acl-name", types.YLeaf{"PrefixAclName", peerAdvertisePolicy.PrefixAclName})
peerAdvertisePolicy.EntityData.YListKeys = []string {"LsrId", "LabelSpaceId"}
return &(peerAdvertisePolicy.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies
// Configure prefix centric outbound label
// advertisement using ACL
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Control advertisement of prefix(es) using ACL. The type is slice of
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies_PrefixAdvertisePolicy.
PrefixAdvertisePolicy []*MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies_PrefixAdvertisePolicy
}
func (prefixAdvertisePolicies *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies) GetEntityData() *types.CommonEntityData {
prefixAdvertisePolicies.EntityData.YFilter = prefixAdvertisePolicies.YFilter
prefixAdvertisePolicies.EntityData.YangName = "prefix-advertise-policies"
prefixAdvertisePolicies.EntityData.BundleName = "cisco_ios_xr"
prefixAdvertisePolicies.EntityData.ParentYangName = "advertise"
prefixAdvertisePolicies.EntityData.SegmentPath = "prefix-advertise-policies"
prefixAdvertisePolicies.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/" + prefixAdvertisePolicies.EntityData.SegmentPath
prefixAdvertisePolicies.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
prefixAdvertisePolicies.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
prefixAdvertisePolicies.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
prefixAdvertisePolicies.EntityData.Children = types.NewOrderedMap()
prefixAdvertisePolicies.EntityData.Children.Append("prefix-advertise-policy", types.YChild{"PrefixAdvertisePolicy", nil})
for i := range prefixAdvertisePolicies.PrefixAdvertisePolicy {
prefixAdvertisePolicies.EntityData.Children.Append(types.GetSegmentPath(prefixAdvertisePolicies.PrefixAdvertisePolicy[i]), types.YChild{"PrefixAdvertisePolicy", prefixAdvertisePolicies.PrefixAdvertisePolicy[i]})
}
prefixAdvertisePolicies.EntityData.Leafs = types.NewOrderedMap()
prefixAdvertisePolicies.EntityData.YListKeys = []string {}
return &(prefixAdvertisePolicies.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies_PrefixAdvertisePolicy
// Control advertisement of prefix(es) using
// ACL
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies_PrefixAdvertisePolicy struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Name of prefix ACL. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
PrefixAclName interface{}
// Label advertise type. The type is MplsLdpLabelAdvertise.
AdvertiseType interface{}
// Name of peer ACL. The type is string.
PeerAclName interface{}
}
func (prefixAdvertisePolicy *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_PrefixAdvertisePolicies_PrefixAdvertisePolicy) GetEntityData() *types.CommonEntityData {
prefixAdvertisePolicy.EntityData.YFilter = prefixAdvertisePolicy.YFilter
prefixAdvertisePolicy.EntityData.YangName = "prefix-advertise-policy"
prefixAdvertisePolicy.EntityData.BundleName = "cisco_ios_xr"
prefixAdvertisePolicy.EntityData.ParentYangName = "prefix-advertise-policies"
prefixAdvertisePolicy.EntityData.SegmentPath = "prefix-advertise-policy" + types.AddKeyToken(prefixAdvertisePolicy.PrefixAclName, "prefix-acl-name")
prefixAdvertisePolicy.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/prefix-advertise-policies/" + prefixAdvertisePolicy.EntityData.SegmentPath
prefixAdvertisePolicy.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
prefixAdvertisePolicy.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
prefixAdvertisePolicy.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
prefixAdvertisePolicy.EntityData.Children = types.NewOrderedMap()
prefixAdvertisePolicy.EntityData.Leafs = types.NewOrderedMap()
prefixAdvertisePolicy.EntityData.Leafs.Append("prefix-acl-name", types.YLeaf{"PrefixAclName", prefixAdvertisePolicy.PrefixAclName})
prefixAdvertisePolicy.EntityData.Leafs.Append("advertise-type", types.YLeaf{"AdvertiseType", prefixAdvertisePolicy.AdvertiseType})
prefixAdvertisePolicy.EntityData.Leafs.Append("peer-acl-name", types.YLeaf{"PeerAclName", prefixAdvertisePolicy.PeerAclName})
prefixAdvertisePolicy.EntityData.YListKeys = []string {"PrefixAclName"}
return &(prefixAdvertisePolicy.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_ExplicitNull
// Configure advertisment of explicit-null
// for connected prefixes.
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_ExplicitNull struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Explicit Null command variant. The type is MplsLdpExpNull.
ExplicitNullType interface{}
// Name of prefix ACL. The type is string.
PrefixAclName interface{}
// Name of peer ACL. The type is string.
PeerAclName interface{}
}
func (explicitNull *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_ExplicitNull) GetEntityData() *types.CommonEntityData {
explicitNull.EntityData.YFilter = explicitNull.YFilter
explicitNull.EntityData.YangName = "explicit-null"
explicitNull.EntityData.BundleName = "cisco_ios_xr"
explicitNull.EntityData.ParentYangName = "advertise"
explicitNull.EntityData.SegmentPath = "explicit-null"
explicitNull.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/" + explicitNull.EntityData.SegmentPath
explicitNull.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
explicitNull.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
explicitNull.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
explicitNull.EntityData.Children = types.NewOrderedMap()
explicitNull.EntityData.Leafs = types.NewOrderedMap()
explicitNull.EntityData.Leafs.Append("explicit-null-type", types.YLeaf{"ExplicitNullType", explicitNull.ExplicitNullType})
explicitNull.EntityData.Leafs.Append("prefix-acl-name", types.YLeaf{"PrefixAclName", explicitNull.PrefixAclName})
explicitNull.EntityData.Leafs.Append("peer-acl-name", types.YLeaf{"PeerAclName", explicitNull.PeerAclName})
explicitNull.EntityData.YListKeys = []string {}
return &(explicitNull.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces
// Configure outbound label advertisement for
// an interface
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Control advertisement of interface's host IP address. The type is slice of
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces_Interface.
Interface []*MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces_Interface
}
func (interfaces *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "advertise"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/" + 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)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces_Interface
// Control advertisement of interface's host
// IP address
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Name of interface. The type is string with
// pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
}
func (self *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Advertise_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-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/advertise/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", self.InterfaceName})
self.EntityData.YListKeys = []string {"InterfaceName"}
return &(self.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Label_Local_Allocate
// Control local label allocation for
// prefix(es)
type MplsLdp_DefaultVrf_Afs_Af_Label_Local_Allocate struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Label allocation type. The type is MplsLdpLabelAllocation.
AllocationType interface{}
// Name of prefix ACL. The type is string.
PrefixAclName interface{}
}
func (allocate *MplsLdp_DefaultVrf_Afs_Af_Label_Local_Allocate) GetEntityData() *types.CommonEntityData {
allocate.EntityData.YFilter = allocate.YFilter
allocate.EntityData.YangName = "allocate"
allocate.EntityData.BundleName = "cisco_ios_xr"
allocate.EntityData.ParentYangName = "local"
allocate.EntityData.SegmentPath = "allocate"
allocate.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/label/local/" + allocate.EntityData.SegmentPath
allocate.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
allocate.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
allocate.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
allocate.EntityData.Children = types.NewOrderedMap()
allocate.EntityData.Leafs = types.NewOrderedMap()
allocate.EntityData.Leafs.Append("allocation-type", types.YLeaf{"AllocationType", allocate.AllocationType})
allocate.EntityData.Leafs.Append("prefix-acl-name", types.YLeaf{"PrefixAclName", allocate.PrefixAclName})
allocate.EntityData.YListKeys = []string {}
return &(allocate.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Discovery
// Configure Discovery parameters
type MplsLdp_DefaultVrf_Afs_Af_Discovery struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Global discovery transport address for address family. The type is one of
// the following types: string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
// or string with pattern:
// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
TransportAddress interface{}
// Configure acceptance from and responding to targeted hellos.
TargetedHelloAccept MplsLdp_DefaultVrf_Afs_Af_Discovery_TargetedHelloAccept
}
func (discovery *MplsLdp_DefaultVrf_Afs_Af_Discovery) GetEntityData() *types.CommonEntityData {
discovery.EntityData.YFilter = discovery.YFilter
discovery.EntityData.YangName = "discovery"
discovery.EntityData.BundleName = "cisco_ios_xr"
discovery.EntityData.ParentYangName = "af"
discovery.EntityData.SegmentPath = "discovery"
discovery.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/" + discovery.EntityData.SegmentPath
discovery.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
discovery.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
discovery.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
discovery.EntityData.Children = types.NewOrderedMap()
discovery.EntityData.Children.Append("targeted-hello-accept", types.YChild{"TargetedHelloAccept", &discovery.TargetedHelloAccept})
discovery.EntityData.Leafs = types.NewOrderedMap()
discovery.EntityData.Leafs.Append("transport-address", types.YLeaf{"TransportAddress", discovery.TransportAddress})
discovery.EntityData.YListKeys = []string {}
return &(discovery.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_Discovery_TargetedHelloAccept
// Configure acceptance from and responding to
// targeted hellos.
type MplsLdp_DefaultVrf_Afs_Af_Discovery_TargetedHelloAccept struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Type of acceptance. The type is MplsLdpTargetedAccept.
AcceptType interface{}
// Name of peer ACL. The type is string.
PeerAclName interface{}
}
func (targetedHelloAccept *MplsLdp_DefaultVrf_Afs_Af_Discovery_TargetedHelloAccept) GetEntityData() *types.CommonEntityData {
targetedHelloAccept.EntityData.YFilter = targetedHelloAccept.YFilter
targetedHelloAccept.EntityData.YangName = "targeted-hello-accept"
targetedHelloAccept.EntityData.BundleName = "cisco_ios_xr"
targetedHelloAccept.EntityData.ParentYangName = "discovery"
targetedHelloAccept.EntityData.SegmentPath = "targeted-hello-accept"
targetedHelloAccept.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/discovery/" + targetedHelloAccept.EntityData.SegmentPath
targetedHelloAccept.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
targetedHelloAccept.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
targetedHelloAccept.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
targetedHelloAccept.EntityData.Children = types.NewOrderedMap()
targetedHelloAccept.EntityData.Leafs = types.NewOrderedMap()
targetedHelloAccept.EntityData.Leafs.Append("accept-type", types.YLeaf{"AcceptType", targetedHelloAccept.AcceptType})
targetedHelloAccept.EntityData.Leafs.Append("peer-acl-name", types.YLeaf{"PeerAclName", targetedHelloAccept.PeerAclName})
targetedHelloAccept.EntityData.YListKeys = []string {}
return &(targetedHelloAccept.EntityData)
}
// MplsLdp_DefaultVrf_Afs_Af_TrafficEngineering
// MPLS Traffic Engingeering parameters for LDP
type MplsLdp_DefaultVrf_Afs_Af_TrafficEngineering struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// MPLS Traffic Engineering auto-tunnel mesh parameters for LDP.
AutoTunnelMesh MplsLdp_DefaultVrf_Afs_Af_TrafficEngineering_AutoTunnelMesh
}
func (trafficEngineering *MplsLdp_DefaultVrf_Afs_Af_TrafficEngineering) GetEntityData() *types.CommonEntityData {
trafficEngineering.EntityData.YFilter = trafficEngineering.YFilter
trafficEngineering.EntityData.YangName = "traffic-engineering"
trafficEngineering.EntityData.BundleName = "cisco_ios_xr"
trafficEngineering.EntityData.ParentYangName = "af"
trafficEngineering.EntityData.SegmentPath = "traffic-engineering"
trafficEngineering.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-ldp-cfg:mpls-ldp/default-vrf/afs/af/" + trafficEngineering.EntityData.SegmentPath
trafficEngineering.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()