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
/
ipv4_acl_cfg.go
1191 lines (968 loc) · 61.8 KB
/
ipv4_acl_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 ipv4-acl package configuration.
//
// This module contains definitions
// for the following management objects:
// ipv4-acl-and-prefix-list: IPv4 ACL configuration data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ipv4_acl_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 ipv4_acl_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-acl-cfg ipv4-acl-and-prefix-list}", reflect.TypeOf(Ipv4AclAndPrefixList{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list", reflect.TypeOf(Ipv4AclAndPrefixList{}))
}
// NextHopType represents Next-hop type.
type NextHopType string
const (
// Regular next-hop.
NextHopType_regular_next_hop NextHopType = "regular-next-hop"
// Default next-hop.
NextHopType_default_next_hop NextHopType = "default-next-hop"
)
// Ipv4AclAndPrefixList
// IPv4 ACL configuration data
type Ipv4AclAndPrefixList struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Table of access lists. Entries in this table and the
// AccessListExistenceTable table must be kept consistent.
Accesses Ipv4AclAndPrefixList_Accesses
// Table of ACL prefix lists. Entries in this table and the
// PrefixListExistenceTable table must be kept consistent.
Prefixes Ipv4AclAndPrefixList_Prefixes
// Control access lists log updates.
LogUpdate Ipv4AclAndPrefixList_LogUpdate
}
func (ipv4AclAndPrefixList *Ipv4AclAndPrefixList) GetEntityData() *types.CommonEntityData {
ipv4AclAndPrefixList.EntityData.YFilter = ipv4AclAndPrefixList.YFilter
ipv4AclAndPrefixList.EntityData.YangName = "ipv4-acl-and-prefix-list"
ipv4AclAndPrefixList.EntityData.BundleName = "cisco_ios_xr"
ipv4AclAndPrefixList.EntityData.ParentYangName = "Cisco-IOS-XR-ipv4-acl-cfg"
ipv4AclAndPrefixList.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list"
ipv4AclAndPrefixList.EntityData.AbsolutePath = ipv4AclAndPrefixList.EntityData.SegmentPath
ipv4AclAndPrefixList.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv4AclAndPrefixList.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv4AclAndPrefixList.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv4AclAndPrefixList.EntityData.Children = types.NewOrderedMap()
ipv4AclAndPrefixList.EntityData.Children.Append("accesses", types.YChild{"Accesses", &ipv4AclAndPrefixList.Accesses})
ipv4AclAndPrefixList.EntityData.Children.Append("prefixes", types.YChild{"Prefixes", &ipv4AclAndPrefixList.Prefixes})
ipv4AclAndPrefixList.EntityData.Children.Append("log-update", types.YChild{"LogUpdate", &ipv4AclAndPrefixList.LogUpdate})
ipv4AclAndPrefixList.EntityData.Leafs = types.NewOrderedMap()
ipv4AclAndPrefixList.EntityData.YListKeys = []string {}
return &(ipv4AclAndPrefixList.EntityData)
}
// Ipv4AclAndPrefixList_Accesses
// Table of access lists. Entries in this table
// and the AccessListExistenceTable table must be
// kept consistent
type Ipv4AclAndPrefixList_Accesses struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An ACL. The type is slice of Ipv4AclAndPrefixList_Accesses_Access.
Access []*Ipv4AclAndPrefixList_Accesses_Access
}
func (accesses *Ipv4AclAndPrefixList_Accesses) GetEntityData() *types.CommonEntityData {
accesses.EntityData.YFilter = accesses.YFilter
accesses.EntityData.YangName = "accesses"
accesses.EntityData.BundleName = "cisco_ios_xr"
accesses.EntityData.ParentYangName = "ipv4-acl-and-prefix-list"
accesses.EntityData.SegmentPath = "accesses"
accesses.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/" + accesses.EntityData.SegmentPath
accesses.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
accesses.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
accesses.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
accesses.EntityData.Children = types.NewOrderedMap()
accesses.EntityData.Children.Append("access", types.YChild{"Access", nil})
for i := range accesses.Access {
accesses.EntityData.Children.Append(types.GetSegmentPath(accesses.Access[i]), types.YChild{"Access", accesses.Access[i]})
}
accesses.EntityData.Leafs = types.NewOrderedMap()
accesses.EntityData.YListKeys = []string {}
return &(accesses.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access
// An ACL
type Ipv4AclAndPrefixList_Accesses_Access struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Access list name - 64 characters max. The type is
// string with length: 1..64.
AccessListName interface{}
// ACL entry table; contains list of ACEs.
AccessListEntries Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries
}
func (access *Ipv4AclAndPrefixList_Accesses_Access) GetEntityData() *types.CommonEntityData {
access.EntityData.YFilter = access.YFilter
access.EntityData.YangName = "access"
access.EntityData.BundleName = "cisco_ios_xr"
access.EntityData.ParentYangName = "accesses"
access.EntityData.SegmentPath = "access" + types.AddKeyToken(access.AccessListName, "access-list-name")
access.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/" + access.EntityData.SegmentPath
access.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
access.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
access.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
access.EntityData.Children = types.NewOrderedMap()
access.EntityData.Children.Append("access-list-entries", types.YChild{"AccessListEntries", &access.AccessListEntries})
access.EntityData.Leafs = types.NewOrderedMap()
access.EntityData.Leafs.Append("access-list-name", types.YLeaf{"AccessListName", access.AccessListName})
access.EntityData.YListKeys = []string {"AccessListName"}
return &(access.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries
// ACL entry table; contains list of ACEs
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An ACL entry; either a description (remark) or an ACE to match against. The
// type is slice of
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry.
AccessListEntry []*Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry
}
func (accessListEntries *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries) GetEntityData() *types.CommonEntityData {
accessListEntries.EntityData.YFilter = accessListEntries.YFilter
accessListEntries.EntityData.YangName = "access-list-entries"
accessListEntries.EntityData.BundleName = "cisco_ios_xr"
accessListEntries.EntityData.ParentYangName = "access"
accessListEntries.EntityData.SegmentPath = "access-list-entries"
accessListEntries.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/" + accessListEntries.EntityData.SegmentPath
accessListEntries.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
accessListEntries.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
accessListEntries.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
accessListEntries.EntityData.Children = types.NewOrderedMap()
accessListEntries.EntityData.Children.Append("access-list-entry", types.YChild{"AccessListEntry", nil})
for i := range accessListEntries.AccessListEntry {
accessListEntries.EntityData.Children.Append(types.GetSegmentPath(accessListEntries.AccessListEntry[i]), types.YChild{"AccessListEntry", accessListEntries.AccessListEntry[i]})
}
accessListEntries.EntityData.Leafs = types.NewOrderedMap()
accessListEntries.EntityData.YListKeys = []string {}
return &(accessListEntries.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry
// An ACL entry; either a description (remark)
// or an ACE to match against
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Sequence number for this entry. The type is
// interface{} with range: 1..2147483643.
SequenceNumber interface{}
// Forwarding action for the packet. This is required for any non-remark ACE.
// Leave unspecified otherwise. The type is Ipv4AclGrantEnum.
Grant interface{}
// Protocol operator. User can specify equal or leave it unspecified for
// singleton protocol match, or specify range for protocol range match. The
// type is Ipv4AclOperatorEnum.
ProtocolOperator interface{}
// Protocol number to match. It can be used for the lower bound (range
// operator) or single value (equal operator). Any value not in the
// permissible range will be rejected. When leave unspecified, default value
// is ipv4. The type is one of the following types: enumeration
// Ipv4AclProtocolNumber, or int with range: 0..255.
Protocol interface{}
// Protocol2 to match. It is used in upper bound (range operator). Any value
// not in the permissible range will be rejected. The type is one of the
// following types: enumeration Ipv4AclProtocolNumber, or int with range:
// 0..255.
Protocol2 interface{}
// Fragment flags, such as dont-fragment, is-fragment, first-fragment and
// last-fragment. The type is one of the following types: enumeration
// Ipv4AclFragFlags, or int with range: 1..9.
FragmentType interface{}
// Name of counter to aggregate hardware statistics. The type is string with
// length: 1..64.
CounterName interface{}
// IGMP message type to match. Leave unspecified if no message type comparison
// is to be done. The type is one of the following types: enumeration
// Ipv4AclIgmpNumber, or int with range: 0..255.
IgmpMessageType interface{}
// Precedence value to match (if a protocol was specified). Any value not in
// the permissible range will be rejected. Leave unspecified if precedence
// comparion is not to be performed. The type is one of the following types:
// enumeration Ipv4AclPrecedenceNumber, or int with range: 0..7.
Precedence interface{}
// Log the packet on this access-list-entry/rule. The type is
// Ipv4AclLoggingEnum.
LogOption interface{}
// Enable capture if set to TRUE. The type is bool.
Capture interface{}
// To turn off ICMP generation for deny ACEs. The type is interface{}.
IcmpOff interface{}
// Set qos-group number. Any value not in the permissible range will be
// rejected. The type is interface{} with range: 0..512.
QosGroup interface{}
// Set TTL Value. Any value not in the permissible range will be rejected. The
// type is interface{} with range: 0..255.
SetTtl interface{}
// Check non-initial fragments. Item is mutually exclusive with TCP, SCTP,
// UDP, IGMP and ICMP comparions and with logging. The type is interface{}.
Fragments interface{}
// Description for the access-list-entry/rule. The type is string with length:
// 0..255.
Remark interface{}
// IPv4 source network object group name. The type is string with length:
// 1..64.
SourcePrefixGroup interface{}
// IPv4 destination network object group name. The type is string with length:
// 1..64.
DestinationPrefixGroup interface{}
// Source port object group name. The type is string with length: 1..64.
SourcePortGroup interface{}
// Destination port object group name. The type is string with length: 1..64.
DestinationPortGroup interface{}
// Sequence String for the ace. The type is string with length: 1..64.
SequenceStr interface{}
// Source network settings.
SourceNetwork Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourceNetwork
// Destination network settings.
DestinationNetwork Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationNetwork
// Source port settings.
SourcePort Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourcePort
// Destination port settings.
DestinationPort Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationPort
// ICMP settings.
Icmp Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Icmp
// TCP settings.
Tcp Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Tcp
// Packet length settings.
PacketLength Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_PacketLength
// TTL settings.
TimeToLive Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_TimeToLive
// Fragment-offset settings.
FragmentOffset Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_FragmentOffset
// Next-hop settings.
NextHop Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop
// DSCP settings.
Dscp Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Dscp
}
func (accessListEntry *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry) GetEntityData() *types.CommonEntityData {
accessListEntry.EntityData.YFilter = accessListEntry.YFilter
accessListEntry.EntityData.YangName = "access-list-entry"
accessListEntry.EntityData.BundleName = "cisco_ios_xr"
accessListEntry.EntityData.ParentYangName = "access-list-entries"
accessListEntry.EntityData.SegmentPath = "access-list-entry" + types.AddKeyToken(accessListEntry.SequenceNumber, "sequence-number")
accessListEntry.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/" + accessListEntry.EntityData.SegmentPath
accessListEntry.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
accessListEntry.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
accessListEntry.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
accessListEntry.EntityData.Children = types.NewOrderedMap()
accessListEntry.EntityData.Children.Append("source-network", types.YChild{"SourceNetwork", &accessListEntry.SourceNetwork})
accessListEntry.EntityData.Children.Append("destination-network", types.YChild{"DestinationNetwork", &accessListEntry.DestinationNetwork})
accessListEntry.EntityData.Children.Append("source-port", types.YChild{"SourcePort", &accessListEntry.SourcePort})
accessListEntry.EntityData.Children.Append("destination-port", types.YChild{"DestinationPort", &accessListEntry.DestinationPort})
accessListEntry.EntityData.Children.Append("icmp", types.YChild{"Icmp", &accessListEntry.Icmp})
accessListEntry.EntityData.Children.Append("tcp", types.YChild{"Tcp", &accessListEntry.Tcp})
accessListEntry.EntityData.Children.Append("packet-length", types.YChild{"PacketLength", &accessListEntry.PacketLength})
accessListEntry.EntityData.Children.Append("time-to-live", types.YChild{"TimeToLive", &accessListEntry.TimeToLive})
accessListEntry.EntityData.Children.Append("fragment-offset", types.YChild{"FragmentOffset", &accessListEntry.FragmentOffset})
accessListEntry.EntityData.Children.Append("next-hop", types.YChild{"NextHop", &accessListEntry.NextHop})
accessListEntry.EntityData.Children.Append("dscp", types.YChild{"Dscp", &accessListEntry.Dscp})
accessListEntry.EntityData.Leafs = types.NewOrderedMap()
accessListEntry.EntityData.Leafs.Append("sequence-number", types.YLeaf{"SequenceNumber", accessListEntry.SequenceNumber})
accessListEntry.EntityData.Leafs.Append("grant", types.YLeaf{"Grant", accessListEntry.Grant})
accessListEntry.EntityData.Leafs.Append("protocol-operator", types.YLeaf{"ProtocolOperator", accessListEntry.ProtocolOperator})
accessListEntry.EntityData.Leafs.Append("protocol", types.YLeaf{"Protocol", accessListEntry.Protocol})
accessListEntry.EntityData.Leafs.Append("protocol2", types.YLeaf{"Protocol2", accessListEntry.Protocol2})
accessListEntry.EntityData.Leafs.Append("fragment-type", types.YLeaf{"FragmentType", accessListEntry.FragmentType})
accessListEntry.EntityData.Leafs.Append("counter-name", types.YLeaf{"CounterName", accessListEntry.CounterName})
accessListEntry.EntityData.Leafs.Append("igmp-message-type", types.YLeaf{"IgmpMessageType", accessListEntry.IgmpMessageType})
accessListEntry.EntityData.Leafs.Append("precedence", types.YLeaf{"Precedence", accessListEntry.Precedence})
accessListEntry.EntityData.Leafs.Append("log-option", types.YLeaf{"LogOption", accessListEntry.LogOption})
accessListEntry.EntityData.Leafs.Append("capture", types.YLeaf{"Capture", accessListEntry.Capture})
accessListEntry.EntityData.Leafs.Append("icmp-off", types.YLeaf{"IcmpOff", accessListEntry.IcmpOff})
accessListEntry.EntityData.Leafs.Append("qos-group", types.YLeaf{"QosGroup", accessListEntry.QosGroup})
accessListEntry.EntityData.Leafs.Append("set-ttl", types.YLeaf{"SetTtl", accessListEntry.SetTtl})
accessListEntry.EntityData.Leafs.Append("fragments", types.YLeaf{"Fragments", accessListEntry.Fragments})
accessListEntry.EntityData.Leafs.Append("remark", types.YLeaf{"Remark", accessListEntry.Remark})
accessListEntry.EntityData.Leafs.Append("source-prefix-group", types.YLeaf{"SourcePrefixGroup", accessListEntry.SourcePrefixGroup})
accessListEntry.EntityData.Leafs.Append("destination-prefix-group", types.YLeaf{"DestinationPrefixGroup", accessListEntry.DestinationPrefixGroup})
accessListEntry.EntityData.Leafs.Append("source-port-group", types.YLeaf{"SourcePortGroup", accessListEntry.SourcePortGroup})
accessListEntry.EntityData.Leafs.Append("destination-port-group", types.YLeaf{"DestinationPortGroup", accessListEntry.DestinationPortGroup})
accessListEntry.EntityData.Leafs.Append("sequence-str", types.YLeaf{"SequenceStr", accessListEntry.SequenceStr})
accessListEntry.EntityData.YListKeys = []string {"SequenceNumber"}
return &(accessListEntry.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourceNetwork
// Source network settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourceNetwork struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Source IPv4 address to match, leave unspecified for any. 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}]+)?.
SourceAddress interface{}
// Wildcard bits to apply to source address (if specified), leave unspecified
// for no wildcarding. 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}]+)?.
SourceWildCardBits interface{}
// Prefix length to apply to source address (if specified), leave unspecified
// for no wildcarding. The type is interface{} with range: 0..32.
SourcePrefixLength interface{}
}
func (sourceNetwork *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourceNetwork) GetEntityData() *types.CommonEntityData {
sourceNetwork.EntityData.YFilter = sourceNetwork.YFilter
sourceNetwork.EntityData.YangName = "source-network"
sourceNetwork.EntityData.BundleName = "cisco_ios_xr"
sourceNetwork.EntityData.ParentYangName = "access-list-entry"
sourceNetwork.EntityData.SegmentPath = "source-network"
sourceNetwork.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + sourceNetwork.EntityData.SegmentPath
sourceNetwork.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sourceNetwork.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sourceNetwork.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sourceNetwork.EntityData.Children = types.NewOrderedMap()
sourceNetwork.EntityData.Leafs = types.NewOrderedMap()
sourceNetwork.EntityData.Leafs.Append("source-address", types.YLeaf{"SourceAddress", sourceNetwork.SourceAddress})
sourceNetwork.EntityData.Leafs.Append("source-wild-card-bits", types.YLeaf{"SourceWildCardBits", sourceNetwork.SourceWildCardBits})
sourceNetwork.EntityData.Leafs.Append("source-prefix-length", types.YLeaf{"SourcePrefixLength", sourceNetwork.SourcePrefixLength})
sourceNetwork.EntityData.YListKeys = []string {}
return &(sourceNetwork.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationNetwork
// Destination network settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationNetwork struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Destination IPv4 address to match (if a protocol was specified), leave
// unspecified for any. 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}]+)?.
DestinationAddress interface{}
// Wildcard bits to apply to destination address (if specified), leave
// unspecified for no wildcarding. 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}]+)?.
DestinationWildCardBits interface{}
// Prefix length to apply to destination address (if specified), leave
// unspecified for no wildcarding. The type is interface{} with range: 0..32.
DestinationPrefixLength interface{}
}
func (destinationNetwork *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationNetwork) GetEntityData() *types.CommonEntityData {
destinationNetwork.EntityData.YFilter = destinationNetwork.YFilter
destinationNetwork.EntityData.YangName = "destination-network"
destinationNetwork.EntityData.BundleName = "cisco_ios_xr"
destinationNetwork.EntityData.ParentYangName = "access-list-entry"
destinationNetwork.EntityData.SegmentPath = "destination-network"
destinationNetwork.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + destinationNetwork.EntityData.SegmentPath
destinationNetwork.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destinationNetwork.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destinationNetwork.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destinationNetwork.EntityData.Children = types.NewOrderedMap()
destinationNetwork.EntityData.Leafs = types.NewOrderedMap()
destinationNetwork.EntityData.Leafs.Append("destination-address", types.YLeaf{"DestinationAddress", destinationNetwork.DestinationAddress})
destinationNetwork.EntityData.Leafs.Append("destination-wild-card-bits", types.YLeaf{"DestinationWildCardBits", destinationNetwork.DestinationWildCardBits})
destinationNetwork.EntityData.Leafs.Append("destination-prefix-length", types.YLeaf{"DestinationPrefixLength", destinationNetwork.DestinationPrefixLength})
destinationNetwork.EntityData.YListKeys = []string {}
return &(destinationNetwork.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourcePort
// Source port settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourcePort struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Source port comparison operator. This is a required field if any source
// port value is given, otherwise, config will be rejected. Leave unspecified
// if no source port comparison is to be done. The type is
// Ipv4AclOperatorEnum.
SourceOperator interface{}
// Lower source port for comparison. It can be used for the lower bound (range
// operator) or single value (equal, less, greater..etc). Any value not in the
// permissible range will be rejected. Leave unspecified otherwise. The type
// is one of the following types: enumeration Ipv4AclPortNumber, or int with
// range: 0..65535.
FirstSourcePort interface{}
// Upper source port for comparion. It is used in the upper bound (range
// operator). Any value not in the permissible range will be rejected. Leave
// unspecified otherwise. The type is one of the following types: enumeration
// Ipv4AclPortNumber, or int with range: 0..65535.
SecondSourcePort interface{}
}
func (sourcePort *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_SourcePort) GetEntityData() *types.CommonEntityData {
sourcePort.EntityData.YFilter = sourcePort.YFilter
sourcePort.EntityData.YangName = "source-port"
sourcePort.EntityData.BundleName = "cisco_ios_xr"
sourcePort.EntityData.ParentYangName = "access-list-entry"
sourcePort.EntityData.SegmentPath = "source-port"
sourcePort.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + sourcePort.EntityData.SegmentPath
sourcePort.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sourcePort.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sourcePort.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sourcePort.EntityData.Children = types.NewOrderedMap()
sourcePort.EntityData.Leafs = types.NewOrderedMap()
sourcePort.EntityData.Leafs.Append("source-operator", types.YLeaf{"SourceOperator", sourcePort.SourceOperator})
sourcePort.EntityData.Leafs.Append("first-source-port", types.YLeaf{"FirstSourcePort", sourcePort.FirstSourcePort})
sourcePort.EntityData.Leafs.Append("second-source-port", types.YLeaf{"SecondSourcePort", sourcePort.SecondSourcePort})
sourcePort.EntityData.YListKeys = []string {}
return &(sourcePort.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationPort
// Destination port settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationPort struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Destination port comparison operator. This is a required field if any
// destination port value is given, otherwise, config will be rejected. Leave
// unspecified if no destination port comparison is to be done. The type is
// Ipv4AclOperatorEnum.
DestinationOperator interface{}
// Lower destination port for comparison. It can be used for the lower bound
// (range operator) or single value (equal, less, greater..etc). Any value not
// in the permissible range will be rejected. Leave unspecified otherwise. The
// type is one of the following types: enumeration Ipv4AclPortNumber, or int
// with range: 0..65535.
FirstDestinationPort interface{}
// Upper destination port for comparison. It is used in the upper bound (range
// operator). Any value not in the permissible range will be rejected. Leave
// unspecified otherwise. The type is one of the following types: enumeration
// Ipv4AclPortNumber, or int with range: 0..65535.
SecondDestinationPort interface{}
}
func (destinationPort *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_DestinationPort) GetEntityData() *types.CommonEntityData {
destinationPort.EntityData.YFilter = destinationPort.YFilter
destinationPort.EntityData.YangName = "destination-port"
destinationPort.EntityData.BundleName = "cisco_ios_xr"
destinationPort.EntityData.ParentYangName = "access-list-entry"
destinationPort.EntityData.SegmentPath = "destination-port"
destinationPort.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + destinationPort.EntityData.SegmentPath
destinationPort.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destinationPort.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destinationPort.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destinationPort.EntityData.Children = types.NewOrderedMap()
destinationPort.EntityData.Leafs = types.NewOrderedMap()
destinationPort.EntityData.Leafs.Append("destination-operator", types.YLeaf{"DestinationOperator", destinationPort.DestinationOperator})
destinationPort.EntityData.Leafs.Append("first-destination-port", types.YLeaf{"FirstDestinationPort", destinationPort.FirstDestinationPort})
destinationPort.EntityData.Leafs.Append("second-destination-port", types.YLeaf{"SecondDestinationPort", destinationPort.SecondDestinationPort})
destinationPort.EntityData.YListKeys = []string {}
return &(destinationPort.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Icmp
// ICMP settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Icmp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Well known ICMP message code types to match, leave unspecified if ICMP
// message code type comparion is not to be performed. The type is
// Ipv4AclIcmpTypeCodeEnum.
IcmpTypeCode interface{}
}
func (icmp *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Icmp) GetEntityData() *types.CommonEntityData {
icmp.EntityData.YFilter = icmp.YFilter
icmp.EntityData.YangName = "icmp"
icmp.EntityData.BundleName = "cisco_ios_xr"
icmp.EntityData.ParentYangName = "access-list-entry"
icmp.EntityData.SegmentPath = "icmp"
icmp.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + icmp.EntityData.SegmentPath
icmp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
icmp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
icmp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
icmp.EntityData.Children = types.NewOrderedMap()
icmp.EntityData.Leafs = types.NewOrderedMap()
icmp.EntityData.Leafs.Append("icmp-type-code", types.YLeaf{"IcmpTypeCode", icmp.IcmpTypeCode})
icmp.EntityData.YListKeys = []string {}
return &(icmp.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Tcp
// TCP settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Tcp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TCP Bits match operator. Leave unspecified if flexible comparison of TCP
// bits is not required. The type is Ipv4AclTcpMatchOperatorEnum.
TcpBitsMatchOperator interface{}
// TCP bits to match. Leave unspecified if comparison of TCP bits is not
// required. The type is map[string]bool.
TcpBits interface{}
// TCP bits mask to use for flexible TCP matching. Leave unspecified if
// tcp-bits-match-operator is unspecified. The type is map[string]bool.
TcpBitsMask interface{}
}
func (tcp *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Tcp) GetEntityData() *types.CommonEntityData {
tcp.EntityData.YFilter = tcp.YFilter
tcp.EntityData.YangName = "tcp"
tcp.EntityData.BundleName = "cisco_ios_xr"
tcp.EntityData.ParentYangName = "access-list-entry"
tcp.EntityData.SegmentPath = "tcp"
tcp.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + tcp.EntityData.SegmentPath
tcp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
tcp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
tcp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
tcp.EntityData.Children = types.NewOrderedMap()
tcp.EntityData.Leafs = types.NewOrderedMap()
tcp.EntityData.Leafs.Append("tcp-bits-match-operator", types.YLeaf{"TcpBitsMatchOperator", tcp.TcpBitsMatchOperator})
tcp.EntityData.Leafs.Append("tcp-bits", types.YLeaf{"TcpBits", tcp.TcpBits})
tcp.EntityData.Leafs.Append("tcp-bits-mask", types.YLeaf{"TcpBitsMask", tcp.TcpBitsMask})
tcp.EntityData.YListKeys = []string {}
return &(tcp.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_PacketLength
// Packet length settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_PacketLength struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Packet length operator applicable if packet length is to be compared. This
// is a required field if any packet-length value is given, otherwise, config
// will be rejected. The type is Ipv4AclOperatorEnum.
PacketLengthOperator interface{}
// Mininum packet length value for comparison. It can be used for the lower
// bound (range operator) or single value (equal, less, greater..etc). Any
// value not in the permissible range will be rejected. Leave unspecified
// otherwise. The type is interface{} with range: 0..65535.
PacketLengthMin interface{}
// Maximum packet length value for comparison. It is used in the upper bound
// (range operator). Any value not in the permissible range will be rejected.
// Leave unspecified otherwise. The type is interface{} with range: 0..65535.
PacketLengthMax interface{}
}
func (packetLength *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_PacketLength) GetEntityData() *types.CommonEntityData {
packetLength.EntityData.YFilter = packetLength.YFilter
packetLength.EntityData.YangName = "packet-length"
packetLength.EntityData.BundleName = "cisco_ios_xr"
packetLength.EntityData.ParentYangName = "access-list-entry"
packetLength.EntityData.SegmentPath = "packet-length"
packetLength.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + packetLength.EntityData.SegmentPath
packetLength.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
packetLength.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
packetLength.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
packetLength.EntityData.Children = types.NewOrderedMap()
packetLength.EntityData.Leafs = types.NewOrderedMap()
packetLength.EntityData.Leafs.Append("packet-length-operator", types.YLeaf{"PacketLengthOperator", packetLength.PacketLengthOperator})
packetLength.EntityData.Leafs.Append("packet-length-min", types.YLeaf{"PacketLengthMin", packetLength.PacketLengthMin})
packetLength.EntityData.Leafs.Append("packet-length-max", types.YLeaf{"PacketLengthMax", packetLength.PacketLengthMax})
packetLength.EntityData.YListKeys = []string {}
return &(packetLength.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_TimeToLive
// TTL settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_TimeToLive struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TTL operator is applicable if TTL is to be compared. This is a required
// field if any TTL value is given, otherwise, config will be rejected. Leave
// unspecified if TTL classification is not required. The type is
// Ipv4AclOperatorEnum.
TimeToLiveOperator interface{}
// Mininum TTL value for comparison. It can be used for the lower bound (range
// operator) or single value (equal, less, greater..etc). Any value not in the
// permissible range will be rejected. Leave unspecified otherwise. The type
// is interface{} with range: 0..255.
TimeToLiveMin interface{}
// Maximum TTL value for comparison. It is used in the upper bound (range
// operator). Any value not in the permissible range will be rejected. Leave
// unspecified otherwise. The type is interface{} with range: 0..255.
TimeToLiveMax interface{}
}
func (timeToLive *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_TimeToLive) GetEntityData() *types.CommonEntityData {
timeToLive.EntityData.YFilter = timeToLive.YFilter
timeToLive.EntityData.YangName = "time-to-live"
timeToLive.EntityData.BundleName = "cisco_ios_xr"
timeToLive.EntityData.ParentYangName = "access-list-entry"
timeToLive.EntityData.SegmentPath = "time-to-live"
timeToLive.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + timeToLive.EntityData.SegmentPath
timeToLive.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
timeToLive.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
timeToLive.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
timeToLive.EntityData.Children = types.NewOrderedMap()
timeToLive.EntityData.Leafs = types.NewOrderedMap()
timeToLive.EntityData.Leafs.Append("time-to-live-operator", types.YLeaf{"TimeToLiveOperator", timeToLive.TimeToLiveOperator})
timeToLive.EntityData.Leafs.Append("time-to-live-min", types.YLeaf{"TimeToLiveMin", timeToLive.TimeToLiveMin})
timeToLive.EntityData.Leafs.Append("time-to-live-max", types.YLeaf{"TimeToLiveMax", timeToLive.TimeToLiveMax})
timeToLive.EntityData.YListKeys = []string {}
return &(timeToLive.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_FragmentOffset
// Fragment-offset settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_FragmentOffset struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Fragment-offset operator if fragment-offset is to be compared. This is a
// required field if any fragment-offset value is given, otherwise, config
// will be rejected. Leave unspecified if fragment-offset classification is
// not required. The type is Ipv4AclOperatorEnum.
FragmentOffsetOperator interface{}
// Fragment-offset value for comparison. It can be used for the lower bound
// (range operator) or single value (equal, less, greater..etc). Any value not
// in the permissible range will be rejected. Leave unspecified otherwise. The
// type is interface{} with range: 0..8191.
FragmentOffset1 interface{}
// Second fragment-offset value for comparison. It is used in the upper bound
// (range operator). Any value not in the permissible range will be rejected.
// Leave unspecified otherwise. The type is interface{} with range: 0..8191.
FragmentOffset2 interface{}
}
func (fragmentOffset *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_FragmentOffset) GetEntityData() *types.CommonEntityData {
fragmentOffset.EntityData.YFilter = fragmentOffset.YFilter
fragmentOffset.EntityData.YangName = "fragment-offset"
fragmentOffset.EntityData.BundleName = "cisco_ios_xr"
fragmentOffset.EntityData.ParentYangName = "access-list-entry"
fragmentOffset.EntityData.SegmentPath = "fragment-offset"
fragmentOffset.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + fragmentOffset.EntityData.SegmentPath
fragmentOffset.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
fragmentOffset.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
fragmentOffset.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
fragmentOffset.EntityData.Children = types.NewOrderedMap()
fragmentOffset.EntityData.Leafs = types.NewOrderedMap()
fragmentOffset.EntityData.Leafs.Append("fragment-offset-operator", types.YLeaf{"FragmentOffsetOperator", fragmentOffset.FragmentOffsetOperator})
fragmentOffset.EntityData.Leafs.Append("fragment-offset-1", types.YLeaf{"FragmentOffset1", fragmentOffset.FragmentOffset1})
fragmentOffset.EntityData.Leafs.Append("fragment-offset-2", types.YLeaf{"FragmentOffset2", fragmentOffset.FragmentOffset2})
fragmentOffset.EntityData.YListKeys = []string {}
return &(fragmentOffset.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop
// Next-hop settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The nexthop type. The type is NextHopType.
NextHopType interface{}
// The first next-hop settings.
NextHop1 Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop1
// The second next-hop settings.
NextHop2 Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop2
// The third next-hop settings.
NextHop3 Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop3
}
func (nextHop *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop) GetEntityData() *types.CommonEntityData {
nextHop.EntityData.YFilter = nextHop.YFilter
nextHop.EntityData.YangName = "next-hop"
nextHop.EntityData.BundleName = "cisco_ios_xr"
nextHop.EntityData.ParentYangName = "access-list-entry"
nextHop.EntityData.SegmentPath = "next-hop"
nextHop.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + nextHop.EntityData.SegmentPath
nextHop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nextHop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nextHop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nextHop.EntityData.Children = types.NewOrderedMap()
nextHop.EntityData.Children.Append("next-hop-1", types.YChild{"NextHop1", &nextHop.NextHop1})
nextHop.EntityData.Children.Append("next-hop-2", types.YChild{"NextHop2", &nextHop.NextHop2})
nextHop.EntityData.Children.Append("next-hop-3", types.YChild{"NextHop3", &nextHop.NextHop3})
nextHop.EntityData.Leafs = types.NewOrderedMap()
nextHop.EntityData.Leafs.Append("next-hop-type", types.YLeaf{"NextHopType", nextHop.NextHopType})
nextHop.EntityData.YListKeys = []string {}
return &(nextHop.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop1
// The first next-hop settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop1 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The IPv4 address of the next-hop. 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}]+)?.
NextHop interface{}
// The VRF name of the next-hop. The type is string with length: 1..32.
VrfName interface{}
// The object tracking name for the next-hop. The type is string with length:
// 1..32.
TrackName interface{}
}
func (nextHop1 *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop1) GetEntityData() *types.CommonEntityData {
nextHop1.EntityData.YFilter = nextHop1.YFilter
nextHop1.EntityData.YangName = "next-hop-1"
nextHop1.EntityData.BundleName = "cisco_ios_xr"
nextHop1.EntityData.ParentYangName = "next-hop"
nextHop1.EntityData.SegmentPath = "next-hop-1"
nextHop1.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/next-hop/" + nextHop1.EntityData.SegmentPath
nextHop1.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nextHop1.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nextHop1.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nextHop1.EntityData.Children = types.NewOrderedMap()
nextHop1.EntityData.Leafs = types.NewOrderedMap()
nextHop1.EntityData.Leafs.Append("next-hop", types.YLeaf{"NextHop", nextHop1.NextHop})
nextHop1.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", nextHop1.VrfName})
nextHop1.EntityData.Leafs.Append("track-name", types.YLeaf{"TrackName", nextHop1.TrackName})
nextHop1.EntityData.YListKeys = []string {}
return &(nextHop1.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop2
// The second next-hop settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop2 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The IPv4 address of the next-hop. 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}]+)?.
NextHop interface{}
// The VRF name of the next-hop. The type is string with length: 1..32.
VrfName interface{}
// The object tracking name for the next-hop. The type is string with length:
// 1..32.
TrackName interface{}
}
func (nextHop2 *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop2) GetEntityData() *types.CommonEntityData {
nextHop2.EntityData.YFilter = nextHop2.YFilter
nextHop2.EntityData.YangName = "next-hop-2"
nextHop2.EntityData.BundleName = "cisco_ios_xr"
nextHop2.EntityData.ParentYangName = "next-hop"
nextHop2.EntityData.SegmentPath = "next-hop-2"
nextHop2.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/next-hop/" + nextHop2.EntityData.SegmentPath
nextHop2.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nextHop2.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nextHop2.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nextHop2.EntityData.Children = types.NewOrderedMap()
nextHop2.EntityData.Leafs = types.NewOrderedMap()
nextHop2.EntityData.Leafs.Append("next-hop", types.YLeaf{"NextHop", nextHop2.NextHop})
nextHop2.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", nextHop2.VrfName})
nextHop2.EntityData.Leafs.Append("track-name", types.YLeaf{"TrackName", nextHop2.TrackName})
nextHop2.EntityData.YListKeys = []string {}
return &(nextHop2.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop3
// The third next-hop settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop3 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The IPv4 address of the next-hop. 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}]+)?.
NextHop interface{}
// The VRF name of the next-hop. The type is string with length: 1..32.
VrfName interface{}
// The object tracking name for the next-hop. The type is string with length:
// 1..32.
TrackName interface{}
}
func (nextHop3 *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_NextHop_NextHop3) GetEntityData() *types.CommonEntityData {
nextHop3.EntityData.YFilter = nextHop3.YFilter
nextHop3.EntityData.YangName = "next-hop-3"
nextHop3.EntityData.BundleName = "cisco_ios_xr"
nextHop3.EntityData.ParentYangName = "next-hop"
nextHop3.EntityData.SegmentPath = "next-hop-3"
nextHop3.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/next-hop/" + nextHop3.EntityData.SegmentPath
nextHop3.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nextHop3.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nextHop3.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nextHop3.EntityData.Children = types.NewOrderedMap()
nextHop3.EntityData.Leafs = types.NewOrderedMap()
nextHop3.EntityData.Leafs.Append("next-hop", types.YLeaf{"NextHop", nextHop3.NextHop})
nextHop3.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", nextHop3.VrfName})
nextHop3.EntityData.Leafs.Append("track-name", types.YLeaf{"TrackName", nextHop3.TrackName})
nextHop3.EntityData.YListKeys = []string {}
return &(nextHop3.EntityData)
}
// Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Dscp
// DSCP settings.
type Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Dscp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// DSCP operator is applicable only when DSCP range is configured. Leave
// unspecified if DSCP range is not required. The type is Ipv4AclOperatorEnum.
DscpOperator interface{}
// Mininum DSCP value for comparison. It can be used for the lower bound
// (range operator) or single value (equal, less, greater..etc). Any value not
// in the permissible range will be rejected. Leave unspecified otherwise. The
// type is one of the following types: enumeration Ipv4AclDscpNumber, or int
// with range: 0..63.
DscpMin interface{}
// Maximum DSCP value for comparison. It is used in the upper bound (range
// operator). Any value not in the permissible range will be rejected. Leave
// unspecified otherwise. The type is one of the following types: enumeration
// Ipv4AclDscpNumber, or int with range: 0..63.
DscpMax interface{}
}
func (dscp *Ipv4AclAndPrefixList_Accesses_Access_AccessListEntries_AccessListEntry_Dscp) GetEntityData() *types.CommonEntityData {
dscp.EntityData.YFilter = dscp.YFilter
dscp.EntityData.YangName = "dscp"
dscp.EntityData.BundleName = "cisco_ios_xr"
dscp.EntityData.ParentYangName = "access-list-entry"
dscp.EntityData.SegmentPath = "dscp"
dscp.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/accesses/access/access-list-entries/access-list-entry/" + dscp.EntityData.SegmentPath
dscp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
dscp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
dscp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
dscp.EntityData.Children = types.NewOrderedMap()
dscp.EntityData.Leafs = types.NewOrderedMap()
dscp.EntityData.Leafs.Append("dscp-operator", types.YLeaf{"DscpOperator", dscp.DscpOperator})
dscp.EntityData.Leafs.Append("dscp-min", types.YLeaf{"DscpMin", dscp.DscpMin})
dscp.EntityData.Leafs.Append("dscp-max", types.YLeaf{"DscpMax", dscp.DscpMax})
dscp.EntityData.YListKeys = []string {}
return &(dscp.EntityData)
}
// Ipv4AclAndPrefixList_Prefixes
// Table of ACL prefix lists. Entries in this
// table and the PrefixListExistenceTable table
// must be kept consistent
type Ipv4AclAndPrefixList_Prefixes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Name of a prefix list. The type is slice of
// Ipv4AclAndPrefixList_Prefixes_Prefix.
Prefix []*Ipv4AclAndPrefixList_Prefixes_Prefix
}
func (prefixes *Ipv4AclAndPrefixList_Prefixes) GetEntityData() *types.CommonEntityData {
prefixes.EntityData.YFilter = prefixes.YFilter
prefixes.EntityData.YangName = "prefixes"
prefixes.EntityData.BundleName = "cisco_ios_xr"
prefixes.EntityData.ParentYangName = "ipv4-acl-and-prefix-list"
prefixes.EntityData.SegmentPath = "prefixes"
prefixes.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-acl-cfg:ipv4-acl-and-prefix-list/" + prefixes.EntityData.SegmentPath
prefixes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
prefixes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
prefixes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
prefixes.EntityData.Children = types.NewOrderedMap()
prefixes.EntityData.Children.Append("prefix", types.YChild{"Prefix", nil})
for i := range prefixes.Prefix {
prefixes.EntityData.Children.Append(types.GetSegmentPath(prefixes.Prefix[i]), types.YChild{"Prefix", prefixes.Prefix[i]})
}
prefixes.EntityData.Leafs = types.NewOrderedMap()
prefixes.EntityData.YListKeys = []string {}
return &(prefixes.EntityData)
}