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
/
infra_policymgr_cfg.go
4506 lines (3594 loc) · 222 KB
/
infra_policymgr_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 ASR9k policy manager configuration.
//
// Copyright (c) 2013, 2015-2018 by Cisco Systems, Inc.
// All rights reserved.
package infra_policymgr_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 infra_policymgr_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-infra-policymgr-cfg policy-manager}", reflect.TypeOf(PolicyManager{}))
ydk.RegisterEntity("Cisco-IOS-XR-infra-policymgr-cfg:policy-manager", reflect.TypeOf(PolicyManager{}))
}
// EventType represents Event type.
type EventType string
const (
// Account logoff event.
EventType_account_logoff EventType = "account-logoff"
// Account logon event.
EventType_account_logon EventType = "account-logon"
// Authentication failure event.
EventType_authentication_failure EventType = "authentication-failure"
// Authentication no response event.
EventType_authentication_no_response EventType = "authentication-no-response"
// Authorization failure event.
EventType_authorization_failure EventType = "authorization-failure"
// Authorization no response event.
EventType_authorization_no_response EventType = "authorization-no-response"
// Credit exhaustion event.
EventType_credit_exhausted EventType = "credit-exhausted"
// Exception event.
EventType_exception EventType = "exception"
// Idle timeout event.
EventType_idle_timeout EventType = "idle-timeout"
// Quota depletion event.
EventType_quota_depleted EventType = "quota-depleted"
// Service start event.
EventType_service_start EventType = "service-start"
// Service stop event.
EventType_service_stop EventType = "service-stop"
// Session activate event.
EventType_session_activate EventType = "session-activate"
// Session start event.
EventType_session_start EventType = "session-start"
// Session stop event.
EventType_session_stop EventType = "session-stop"
// Timer expiry event.
EventType_timer_expiry EventType = "timer-expiry"
)
// ClassMapType represents Policy manager class-map type.
type ClassMapType string
const (
// QoS Classmap.
ClassMapType_qos ClassMapType = "qos"
// TRAFFIC Classmap.
ClassMapType_traffic ClassMapType = "traffic"
// Control Subscriber Classmap.
ClassMapType_control ClassMapType = "control"
)
// ExecutionStrategy represents Executuion strategy.
type ExecutionStrategy string
const (
// Do all actions.
ExecutionStrategy_do_all ExecutionStrategy = "do-all"
// Do all actions until failure.
ExecutionStrategy_do_until_failure ExecutionStrategy = "do-until-failure"
// Do all actions until success.
ExecutionStrategy_do_until_success ExecutionStrategy = "do-until-success"
)
// AuthorizeIdentifier represents Authorize identifier.
type AuthorizeIdentifier string
const (
// Authorize circuit ID.
AuthorizeIdentifier_circuit_id AuthorizeIdentifier = "circuit-id"
// Authorize dhcp client ID.
AuthorizeIdentifier_dhcp_client_id AuthorizeIdentifier = "dhcp-client-id"
// Authorize remote ID.
AuthorizeIdentifier_remote_id AuthorizeIdentifier = "remote-id"
// Authorize source IPv4 address.
AuthorizeIdentifier_source_address_ipv4 AuthorizeIdentifier = "source-address-ipv4"
// Authorize source IPv6 address.
AuthorizeIdentifier_source_address_ipv6 AuthorizeIdentifier = "source-address-ipv6"
// Authorize source MAC address.
AuthorizeIdentifier_source_address_mac AuthorizeIdentifier = "source-address-mac"
// Authorize username.
AuthorizeIdentifier_username AuthorizeIdentifier = "username"
)
// PmapClassMapType represents Policy manager class-map type.
type PmapClassMapType string
const (
// QoS Classmap.
PmapClassMapType_qos PmapClassMapType = "qos"
// TRAFFIC Classmap.
PmapClassMapType_traffic PmapClassMapType = "traffic"
// Subscriber Control Classmap.
PmapClassMapType_subscriber_control PmapClassMapType = "subscriber-control"
)
// PolicyMapType represents Policy manager policy-map type.
type PolicyMapType string
const (
// QoS Policymap
PolicyMapType_qos PolicyMapType = "qos"
// PBR Policymap
PolicyMapType_pbr PolicyMapType = "pbr"
// TRAFFIC Policymap
PolicyMapType_traffic PolicyMapType = "traffic"
// SUBSCRIBER-CONTROL Policymap
PolicyMapType_subscriber_control PolicyMapType = "subscriber-control"
// REDIRECT Policy map
PolicyMapType_redirect PolicyMapType = "redirect"
// FLOWMONITOR Policy map
PolicyMapType_flow_monitor PolicyMapType = "flow-monitor"
)
// PolicyManager
// Global Policy Manager configuration.
type PolicyManager struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Class-maps configuration.
ClassMaps PolicyManager_ClassMaps
// Policy-maps configuration.
PolicyMaps PolicyManager_PolicyMaps
}
func (policyManager *PolicyManager) GetEntityData() *types.CommonEntityData {
policyManager.EntityData.YFilter = policyManager.YFilter
policyManager.EntityData.YangName = "policy-manager"
policyManager.EntityData.BundleName = "cisco_ios_xr"
policyManager.EntityData.ParentYangName = "Cisco-IOS-XR-infra-policymgr-cfg"
policyManager.EntityData.SegmentPath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager"
policyManager.EntityData.AbsolutePath = policyManager.EntityData.SegmentPath
policyManager.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
policyManager.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
policyManager.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
policyManager.EntityData.Children = types.NewOrderedMap()
policyManager.EntityData.Children.Append("class-maps", types.YChild{"ClassMaps", &policyManager.ClassMaps})
policyManager.EntityData.Children.Append("policy-maps", types.YChild{"PolicyMaps", &policyManager.PolicyMaps})
policyManager.EntityData.Leafs = types.NewOrderedMap()
policyManager.EntityData.YListKeys = []string {}
return &(policyManager.EntityData)
}
// PolicyManager_ClassMaps
// Class-maps configuration.
type PolicyManager_ClassMaps struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Class-map configuration. The type is slice of
// PolicyManager_ClassMaps_ClassMap.
ClassMap []*PolicyManager_ClassMaps_ClassMap
}
func (classMaps *PolicyManager_ClassMaps) GetEntityData() *types.CommonEntityData {
classMaps.EntityData.YFilter = classMaps.YFilter
classMaps.EntityData.YangName = "class-maps"
classMaps.EntityData.BundleName = "cisco_ios_xr"
classMaps.EntityData.ParentYangName = "policy-manager"
classMaps.EntityData.SegmentPath = "class-maps"
classMaps.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/" + classMaps.EntityData.SegmentPath
classMaps.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
classMaps.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
classMaps.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
classMaps.EntityData.Children = types.NewOrderedMap()
classMaps.EntityData.Children.Append("class-map", types.YChild{"ClassMap", nil})
for i := range classMaps.ClassMap {
classMaps.EntityData.Children.Append(types.GetSegmentPath(classMaps.ClassMap[i]), types.YChild{"ClassMap", classMaps.ClassMap[i]})
}
classMaps.EntityData.Leafs = types.NewOrderedMap()
classMaps.EntityData.YListKeys = []string {}
return &(classMaps.EntityData)
}
// PolicyManager_ClassMaps_ClassMap
// Class-map configuration.
type PolicyManager_ClassMaps_ClassMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Type of class-map. The type is ClassMapType.
Type interface{}
// This attribute is a key. Name of class-map. The type is string with
// pattern: [a-zA-Z0-9][a-zA-Z0-9\._@$%+#:=<>\-]{0,62}.
Name interface{}
// Match all match criteria. The type is interface{}.
ClassMapModeMatchAny interface{}
// Match any match criteria. The type is interface{}.
ClassMapModeMatchAll interface{}
// Description for this policy-map. The type is string.
Description interface{}
// Match rules.
Match PolicyManager_ClassMaps_ClassMap_Match
// Match not rules.
MatchNot PolicyManager_ClassMaps_ClassMap_MatchNot
}
func (classMap *PolicyManager_ClassMaps_ClassMap) GetEntityData() *types.CommonEntityData {
classMap.EntityData.YFilter = classMap.YFilter
classMap.EntityData.YangName = "class-map"
classMap.EntityData.BundleName = "cisco_ios_xr"
classMap.EntityData.ParentYangName = "class-maps"
classMap.EntityData.SegmentPath = "class-map" + types.AddKeyToken(classMap.Type, "type") + types.AddKeyToken(classMap.Name, "name")
classMap.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/" + classMap.EntityData.SegmentPath
classMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
classMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
classMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
classMap.EntityData.Children = types.NewOrderedMap()
classMap.EntityData.Children.Append("match", types.YChild{"Match", &classMap.Match})
classMap.EntityData.Children.Append("match-not", types.YChild{"MatchNot", &classMap.MatchNot})
classMap.EntityData.Leafs = types.NewOrderedMap()
classMap.EntityData.Leafs.Append("type", types.YLeaf{"Type", classMap.Type})
classMap.EntityData.Leafs.Append("name", types.YLeaf{"Name", classMap.Name})
classMap.EntityData.Leafs.Append("class-map-mode-match-any", types.YLeaf{"ClassMapModeMatchAny", classMap.ClassMapModeMatchAny})
classMap.EntityData.Leafs.Append("class-map-mode-match-all", types.YLeaf{"ClassMapModeMatchAll", classMap.ClassMapModeMatchAll})
classMap.EntityData.Leafs.Append("description", types.YLeaf{"Description", classMap.Description})
classMap.EntityData.YListKeys = []string {"Type", "Name"}
return &(classMap.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match
// Match rules.
type PolicyManager_ClassMaps_ClassMap_Match struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Match IPv4 DSCP. The type is slice of string with pattern:
// ([0-9]|[1-5][0-9]|6[0-3])|(([0-9]|[1-5][0-9]|6[0-3])-([0-9]|[1-5][0-9]|6[0-3]))|(af11)|(af12)|(af13)|(af21)|(af22)|(af23)|(af31)|(af32)|(af33)|(af41)|(af42)|(af43)|(ef)|(default)|(cs1)|(cs2)|(cs3)|(cs4)|(cs5)|(cs6)|(cs7).
Ipv4Dscp []interface{}
// Match IPv6 DSCP. The type is slice of string with pattern:
// ([0-9]|[1-5][0-9]|6[0-3])|(([0-9]|[1-5][0-9]|6[0-3])-([0-9]|[1-5][0-9]|6[0-3]))|(af11)|(af12)|(af13)|(af21)|(af22)|(af23)|(af31)|(af32)|(af33)|(af41)|(af42)|(af43)|(ef)|(default)|(cs1)|(cs2)|(cs3)|(cs4)|(cs5)|(cs6)|(cs7).
Ipv6Dscp []interface{}
// Match DSCP. The type is slice of string with pattern:
// ([0-9]|[1-5][0-9]|6[0-3])|(([0-9]|[1-5][0-9]|6[0-3])-([0-9]|[1-5][0-9]|6[0-3]))|(af11)|(af12)|(af13)|(af21)|(af22)|(af23)|(af31)|(af32)|(af33)|(af41)|(af42)|(af43)|(ef)|(default)|(cs1)|(cs2)|(cs3)|(cs4)|(cs5)|(cs6)|(cs7).
Dscp []interface{}
// Match IPv4 precedence. The type is one of the following types: slice of int
// with range: 0..7, or slice of string with pattern:
// (critical)|(flash)|(flash-override)|(immediate)|(internet)|(network)|(priority)|(routine).
Ipv4Precedence []interface{}
// Match IPv6 precedence. The type is one of the following types: slice of int
// with range: 0..7, or slice of string with pattern:
// (critical)|(flash)|(flash-override)|(immediate)|(internet)|(network)|(priority)|(routine).
Ipv6Precedence []interface{}
// Match precedence. The type is one of the following types: slice of int with
// range: 0..7, or slice of string with pattern:
// (critical)|(flash)|(flash-override)|(immediate)|(internet)|(network)|(priority)|(routine).
Precedence []interface{}
// Match QoS group. Should be value 0..512 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
QosGroup []interface{}
// Match Traffic Class. Should be value 0..63 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
TrafficClass []interface{}
// Match CoS. The type is slice of interface{} with range: 0..7.
Cos []interface{}
// Match inner CoS. The type is slice of interface{} with range: 0..7.
InnerCos []interface{}
// Match DEI bit. The type is interface{} with range: 0..1.
Dei interface{}
// Match DEI INNER bit. The type is interface{} with range: 0..1.
DeiInner interface{}
// Match protocol. The type is slice of string with pattern:
// ([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\-([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))|((ahp)|(dhcpv4)|(dhcpv6)|(eigrp)|(esp)|(gre)|(icmp)|(igmp)|(igrp)|(ipinip)|(ipv4)|(ipv6)|(ipv6icmp)|(mpls)|(nos)|(ospf)|(pcp)|(pim)|(ppp)|(sctp)|(tcp)|(udp)).
Protocol []interface{}
// Match IPv4 ACL. The type is string with length: 1..64.
Ipv4Acl interface{}
// Match IPv6 ACL. The type is string with length: 1..64.
Ipv6Acl interface{}
// Match Ethernet Services. The type is string with length: 1..64.
EthernetServicesAcl interface{}
// Match MPLS experimental topmost label. The type is slice of interface{}
// with range: 0..7.
MplsExperimentalTopmost []interface{}
// Match MPLS experimental imposition label. The type is slice of interface{}
// with range: 0..7.
MplsExperimentalImposition []interface{}
// Match discard class. The type is slice of interface{} with range: 0..7.
DiscardClass []interface{}
// Match IPv4 packet length. Should be value 0..65535 or range. The type is
// slice of string with pattern: (\d+)|(\d+\-\d+).
Ipv4PacketLength []interface{}
// Match IPv6 packet length. Should be value 0..65535 or range. The type is
// slice of string with pattern: (\d+)|(\d+\-\d+).
Ipv6PacketLength []interface{}
// Match packet length. Should be value 0..65535 or range. The type is slice
// of string with pattern: (\d+)|(\d+\-\d+).
PacketLength []interface{}
// Match MPLS Label Disposition IPv4 access list. The type is string with
// length: 1..32.
MplsDispositionIpv4AccessList interface{}
// Match MPLS Label Disposition IPv6 access list. The type is string with
// length: 1..32.
MplsDispositionIpv6AccessList interface{}
// Match VLAN ID. The type is slice of string with pattern: (\d+)|(\d+\-\d+).
Vlan []interface{}
// Match inner VLAN ID. The type is slice of string with pattern:
// (\d+)|(\d+\-\d+).
InnerVlan []interface{}
// Match flow-tag. Should be value 1..63 or range. The type is slice of string
// with pattern: (\d+)|(\d+\-\d+).
FlowTag []interface{}
// Match Ethertype. The type is slice of string with pattern:
// ((153[6-9]|15[4-9][0-9]|1[6-9][0-9][0-9]|[2-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9]|6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9]|655[0-2][0-9]|6553[0-5]))|((arp)|(ipv4)|(ipv6)).
Ethertype []interface{}
// Match destination port. Should be value 0..65535 or range. The type is
// slice of string with pattern: (\d+)|(\d+\-\d+).
DestinationPort []interface{}
// Match fragment type for a packet. The type is slice of string with pattern:
// (dont-fragment)|(first-fragment)|(is-fragment)|(last-fragment).
FragmentType []interface{}
// Match frame-relay DLCI value. Should be value 16..1007 or range. The type
// is slice of string with pattern: (\d+)|(\d+\-\d+).
FrameRelayDlci []interface{}
// Set FrameRelay DE bit. The type is interface{} with range: 0..1.
FrDe interface{}
// Match IPv4 ICMP code. Should be value 0..255 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
Icmpv4Code []interface{}
// Match IPv4 ICMP type. Should be value 0..255 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
Icmpv4Type []interface{}
// Match IPv6 ICMP code. Should be value 0..255 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
Icmpv6Code []interface{}
// Match IPv6 ICMP type. Should be value 0..255 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
Icmpv6Type []interface{}
// Match source port. Should be value 0..65535 or range. The type is slice of
// string with pattern: (\d+)|(\d+\-\d+).
SourcePort []interface{}
// Match TCP flags. The type is interface{} with range: 0..4095.
TcpFlag interface{}
// Match authentication status. The type is string with pattern:
// (authenticated)|(unauthenticated).
AuthenStatus interface{}
// Match Circuit ID. The type is slice of string with length: 1..32.
CircuitId []interface{}
// Match Circuit id regex. The type is slice of string with length: 1..32.
CircuitIdRegex []interface{}
// Match remote ID. The type is slice of string with length: 1..32.
RemoteId []interface{}
// Match remote id regex. The type is slice of string with length: 1..32.
RemoteIdRegex []interface{}
// Match servicve name. The type is slice of string with length: 1..32.
ServiceName []interface{}
// Match servicve name regular expression. The type is slice of string with
// length: 1..32.
ServiceNameRegex []interface{}
// Match timer. The type is slice of string with length: 1..32.
Timer []interface{}
// Match timer regular expression. The type is slice of string with length:
// 1..32.
TimerRegex []interface{}
// Match user name. The type is slice of string with length: 1..32.
UserName []interface{}
// Match user name regular expression. The type is slice of string with
// length: 1..32.
UserNameRegex []interface{}
// Match source MAC address. The type is slice of string.
SourceMac []interface{}
// Match destination MAC address. The type is slice of string.
DestinationMac []interface{}
// Match VPLS control. The type is interface{}.
VplsControl interface{}
// Match VPLS Broadcast. The type is interface{}.
VplsBroadcast interface{}
// Match VPLS Multicast. The type is interface{}.
VplsMulticast interface{}
// Match VPLS Known. The type is interface{}.
VplsKnown interface{}
// Match VPLS Unknown. The type is interface{}.
VplsUnknown interface{}
// Match ATM CLP bit. The type is interface{} with range: 0..1.
AtmClp interface{}
// Match ATM OAM. The type is interface{}.
AtmOam interface{}
// Match CAC admitted. The type is interface{}.
CacAdmit interface{}
// Match CAC unadmitted. The type is interface{}.
CacUnadmit interface{}
// Match destination IPv4 address. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv4.
DestinationAddressIpv4 []*PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv4
// Match destination IPv6 address. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv6.
DestinationAddressIpv6 []*PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv6
// Match source IPv4 address. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv4.
SourceAddressIpv4 []*PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv4
// Match source IPv6 address. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv6.
SourceAddressIpv6 []*PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv6
// Match dhcp client ID. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_DhcpClientId.
DhcpClientId []*PolicyManager_ClassMaps_ClassMap_Match_DhcpClientId
// Match dhcp client id regex. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_DhcpClientIdRegex.
DhcpClientIdRegex []*PolicyManager_ClassMaps_ClassMap_Match_DhcpClientIdRegex
// Match domain name. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_DomainName.
DomainName []*PolicyManager_ClassMaps_ClassMap_Match_DomainName
// Match domain name. The type is slice of
// PolicyManager_ClassMaps_ClassMap_Match_DomainNameRegex.
DomainNameRegex []*PolicyManager_ClassMaps_ClassMap_Match_DomainNameRegex
// Match flow.
Flow PolicyManager_ClassMaps_ClassMap_Match_Flow
}
func (match *PolicyManager_ClassMaps_ClassMap_Match) GetEntityData() *types.CommonEntityData {
match.EntityData.YFilter = match.YFilter
match.EntityData.YangName = "match"
match.EntityData.BundleName = "cisco_ios_xr"
match.EntityData.ParentYangName = "class-map"
match.EntityData.SegmentPath = "match"
match.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/" + match.EntityData.SegmentPath
match.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
match.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
match.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
match.EntityData.Children = types.NewOrderedMap()
match.EntityData.Children.Append("destination-address-ipv4", types.YChild{"DestinationAddressIpv4", nil})
for i := range match.DestinationAddressIpv4 {
match.EntityData.Children.Append(types.GetSegmentPath(match.DestinationAddressIpv4[i]), types.YChild{"DestinationAddressIpv4", match.DestinationAddressIpv4[i]})
}
match.EntityData.Children.Append("destination-address-ipv6", types.YChild{"DestinationAddressIpv6", nil})
for i := range match.DestinationAddressIpv6 {
match.EntityData.Children.Append(types.GetSegmentPath(match.DestinationAddressIpv6[i]), types.YChild{"DestinationAddressIpv6", match.DestinationAddressIpv6[i]})
}
match.EntityData.Children.Append("source-address-ipv4", types.YChild{"SourceAddressIpv4", nil})
for i := range match.SourceAddressIpv4 {
match.EntityData.Children.Append(types.GetSegmentPath(match.SourceAddressIpv4[i]), types.YChild{"SourceAddressIpv4", match.SourceAddressIpv4[i]})
}
match.EntityData.Children.Append("source-address-ipv6", types.YChild{"SourceAddressIpv6", nil})
for i := range match.SourceAddressIpv6 {
match.EntityData.Children.Append(types.GetSegmentPath(match.SourceAddressIpv6[i]), types.YChild{"SourceAddressIpv6", match.SourceAddressIpv6[i]})
}
match.EntityData.Children.Append("dhcp-client-id", types.YChild{"DhcpClientId", nil})
for i := range match.DhcpClientId {
match.EntityData.Children.Append(types.GetSegmentPath(match.DhcpClientId[i]), types.YChild{"DhcpClientId", match.DhcpClientId[i]})
}
match.EntityData.Children.Append("dhcp-client-id-regex", types.YChild{"DhcpClientIdRegex", nil})
for i := range match.DhcpClientIdRegex {
match.EntityData.Children.Append(types.GetSegmentPath(match.DhcpClientIdRegex[i]), types.YChild{"DhcpClientIdRegex", match.DhcpClientIdRegex[i]})
}
match.EntityData.Children.Append("domain-name", types.YChild{"DomainName", nil})
for i := range match.DomainName {
match.EntityData.Children.Append(types.GetSegmentPath(match.DomainName[i]), types.YChild{"DomainName", match.DomainName[i]})
}
match.EntityData.Children.Append("domain-name-regex", types.YChild{"DomainNameRegex", nil})
for i := range match.DomainNameRegex {
match.EntityData.Children.Append(types.GetSegmentPath(match.DomainNameRegex[i]), types.YChild{"DomainNameRegex", match.DomainNameRegex[i]})
}
match.EntityData.Children.Append("flow", types.YChild{"Flow", &match.Flow})
match.EntityData.Leafs = types.NewOrderedMap()
match.EntityData.Leafs.Append("ipv4-dscp", types.YLeaf{"Ipv4Dscp", match.Ipv4Dscp})
match.EntityData.Leafs.Append("ipv6-dscp", types.YLeaf{"Ipv6Dscp", match.Ipv6Dscp})
match.EntityData.Leafs.Append("dscp", types.YLeaf{"Dscp", match.Dscp})
match.EntityData.Leafs.Append("ipv4-precedence", types.YLeaf{"Ipv4Precedence", match.Ipv4Precedence})
match.EntityData.Leafs.Append("ipv6-precedence", types.YLeaf{"Ipv6Precedence", match.Ipv6Precedence})
match.EntityData.Leafs.Append("precedence", types.YLeaf{"Precedence", match.Precedence})
match.EntityData.Leafs.Append("qos-group", types.YLeaf{"QosGroup", match.QosGroup})
match.EntityData.Leafs.Append("traffic-class", types.YLeaf{"TrafficClass", match.TrafficClass})
match.EntityData.Leafs.Append("cos", types.YLeaf{"Cos", match.Cos})
match.EntityData.Leafs.Append("inner-cos", types.YLeaf{"InnerCos", match.InnerCos})
match.EntityData.Leafs.Append("dei", types.YLeaf{"Dei", match.Dei})
match.EntityData.Leafs.Append("dei-inner", types.YLeaf{"DeiInner", match.DeiInner})
match.EntityData.Leafs.Append("protocol", types.YLeaf{"Protocol", match.Protocol})
match.EntityData.Leafs.Append("ipv4-acl", types.YLeaf{"Ipv4Acl", match.Ipv4Acl})
match.EntityData.Leafs.Append("ipv6-acl", types.YLeaf{"Ipv6Acl", match.Ipv6Acl})
match.EntityData.Leafs.Append("ethernet-services-acl", types.YLeaf{"EthernetServicesAcl", match.EthernetServicesAcl})
match.EntityData.Leafs.Append("mpls-experimental-topmost", types.YLeaf{"MplsExperimentalTopmost", match.MplsExperimentalTopmost})
match.EntityData.Leafs.Append("mpls-experimental-imposition", types.YLeaf{"MplsExperimentalImposition", match.MplsExperimentalImposition})
match.EntityData.Leafs.Append("discard-class", types.YLeaf{"DiscardClass", match.DiscardClass})
match.EntityData.Leafs.Append("ipv4-packet-length", types.YLeaf{"Ipv4PacketLength", match.Ipv4PacketLength})
match.EntityData.Leafs.Append("ipv6-packet-length", types.YLeaf{"Ipv6PacketLength", match.Ipv6PacketLength})
match.EntityData.Leafs.Append("packet-length", types.YLeaf{"PacketLength", match.PacketLength})
match.EntityData.Leafs.Append("mpls-disposition-ipv4-access-list", types.YLeaf{"MplsDispositionIpv4AccessList", match.MplsDispositionIpv4AccessList})
match.EntityData.Leafs.Append("mpls-disposition-ipv6-access-list", types.YLeaf{"MplsDispositionIpv6AccessList", match.MplsDispositionIpv6AccessList})
match.EntityData.Leafs.Append("vlan", types.YLeaf{"Vlan", match.Vlan})
match.EntityData.Leafs.Append("inner-vlan", types.YLeaf{"InnerVlan", match.InnerVlan})
match.EntityData.Leafs.Append("flow-tag", types.YLeaf{"FlowTag", match.FlowTag})
match.EntityData.Leafs.Append("ethertype", types.YLeaf{"Ethertype", match.Ethertype})
match.EntityData.Leafs.Append("destination-port", types.YLeaf{"DestinationPort", match.DestinationPort})
match.EntityData.Leafs.Append("fragment-type", types.YLeaf{"FragmentType", match.FragmentType})
match.EntityData.Leafs.Append("frame-relay-dlci", types.YLeaf{"FrameRelayDlci", match.FrameRelayDlci})
match.EntityData.Leafs.Append("fr-de", types.YLeaf{"FrDe", match.FrDe})
match.EntityData.Leafs.Append("icmpv4-code", types.YLeaf{"Icmpv4Code", match.Icmpv4Code})
match.EntityData.Leafs.Append("icmpv4-type", types.YLeaf{"Icmpv4Type", match.Icmpv4Type})
match.EntityData.Leafs.Append("icmpv6-code", types.YLeaf{"Icmpv6Code", match.Icmpv6Code})
match.EntityData.Leafs.Append("icmpv6-type", types.YLeaf{"Icmpv6Type", match.Icmpv6Type})
match.EntityData.Leafs.Append("source-port", types.YLeaf{"SourcePort", match.SourcePort})
match.EntityData.Leafs.Append("tcp-flag", types.YLeaf{"TcpFlag", match.TcpFlag})
match.EntityData.Leafs.Append("authen-status", types.YLeaf{"AuthenStatus", match.AuthenStatus})
match.EntityData.Leafs.Append("circuit-id", types.YLeaf{"CircuitId", match.CircuitId})
match.EntityData.Leafs.Append("circuit-id-regex", types.YLeaf{"CircuitIdRegex", match.CircuitIdRegex})
match.EntityData.Leafs.Append("remote-id", types.YLeaf{"RemoteId", match.RemoteId})
match.EntityData.Leafs.Append("remote-id-regex", types.YLeaf{"RemoteIdRegex", match.RemoteIdRegex})
match.EntityData.Leafs.Append("service-name", types.YLeaf{"ServiceName", match.ServiceName})
match.EntityData.Leafs.Append("service-name-regex", types.YLeaf{"ServiceNameRegex", match.ServiceNameRegex})
match.EntityData.Leafs.Append("timer", types.YLeaf{"Timer", match.Timer})
match.EntityData.Leafs.Append("timer-regex", types.YLeaf{"TimerRegex", match.TimerRegex})
match.EntityData.Leafs.Append("user-name", types.YLeaf{"UserName", match.UserName})
match.EntityData.Leafs.Append("user-name-regex", types.YLeaf{"UserNameRegex", match.UserNameRegex})
match.EntityData.Leafs.Append("source-mac", types.YLeaf{"SourceMac", match.SourceMac})
match.EntityData.Leafs.Append("destination-mac", types.YLeaf{"DestinationMac", match.DestinationMac})
match.EntityData.Leafs.Append("vpls-control", types.YLeaf{"VplsControl", match.VplsControl})
match.EntityData.Leafs.Append("vpls-broadcast", types.YLeaf{"VplsBroadcast", match.VplsBroadcast})
match.EntityData.Leafs.Append("vpls-multicast", types.YLeaf{"VplsMulticast", match.VplsMulticast})
match.EntityData.Leafs.Append("vpls-known", types.YLeaf{"VplsKnown", match.VplsKnown})
match.EntityData.Leafs.Append("vpls-unknown", types.YLeaf{"VplsUnknown", match.VplsUnknown})
match.EntityData.Leafs.Append("atm-clp", types.YLeaf{"AtmClp", match.AtmClp})
match.EntityData.Leafs.Append("atm-oam", types.YLeaf{"AtmOam", match.AtmOam})
match.EntityData.Leafs.Append("cac-admit", types.YLeaf{"CacAdmit", match.CacAdmit})
match.EntityData.Leafs.Append("cac-unadmit", types.YLeaf{"CacUnadmit", match.CacUnadmit})
match.EntityData.YListKeys = []string {}
return &(match.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv4
// Match destination IPv4 address.
type PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv4 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. IPv4 address. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Address interface{}
// This attribute is a key. IPv4 netmask. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Netmask interface{}
}
func (destinationAddressIpv4 *PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv4) GetEntityData() *types.CommonEntityData {
destinationAddressIpv4.EntityData.YFilter = destinationAddressIpv4.YFilter
destinationAddressIpv4.EntityData.YangName = "destination-address-ipv4"
destinationAddressIpv4.EntityData.BundleName = "cisco_ios_xr"
destinationAddressIpv4.EntityData.ParentYangName = "match"
destinationAddressIpv4.EntityData.SegmentPath = "destination-address-ipv4" + types.AddKeyToken(destinationAddressIpv4.Address, "address") + types.AddKeyToken(destinationAddressIpv4.Netmask, "netmask")
destinationAddressIpv4.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + destinationAddressIpv4.EntityData.SegmentPath
destinationAddressIpv4.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destinationAddressIpv4.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destinationAddressIpv4.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destinationAddressIpv4.EntityData.Children = types.NewOrderedMap()
destinationAddressIpv4.EntityData.Leafs = types.NewOrderedMap()
destinationAddressIpv4.EntityData.Leafs.Append("address", types.YLeaf{"Address", destinationAddressIpv4.Address})
destinationAddressIpv4.EntityData.Leafs.Append("netmask", types.YLeaf{"Netmask", destinationAddressIpv4.Netmask})
destinationAddressIpv4.EntityData.YListKeys = []string {"Address", "Netmask"}
return &(destinationAddressIpv4.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv6
// Match destination IPv6 address.
type PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv6 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. IPv6 address. The type is 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}]+)?.
Address interface{}
// This attribute is a key. IPv6 prefix length. The type is interface{} with
// range: 0..128.
PrefixLength interface{}
}
func (destinationAddressIpv6 *PolicyManager_ClassMaps_ClassMap_Match_DestinationAddressIpv6) GetEntityData() *types.CommonEntityData {
destinationAddressIpv6.EntityData.YFilter = destinationAddressIpv6.YFilter
destinationAddressIpv6.EntityData.YangName = "destination-address-ipv6"
destinationAddressIpv6.EntityData.BundleName = "cisco_ios_xr"
destinationAddressIpv6.EntityData.ParentYangName = "match"
destinationAddressIpv6.EntityData.SegmentPath = "destination-address-ipv6" + types.AddKeyToken(destinationAddressIpv6.Address, "address") + types.AddKeyToken(destinationAddressIpv6.PrefixLength, "prefix-length")
destinationAddressIpv6.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + destinationAddressIpv6.EntityData.SegmentPath
destinationAddressIpv6.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destinationAddressIpv6.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destinationAddressIpv6.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destinationAddressIpv6.EntityData.Children = types.NewOrderedMap()
destinationAddressIpv6.EntityData.Leafs = types.NewOrderedMap()
destinationAddressIpv6.EntityData.Leafs.Append("address", types.YLeaf{"Address", destinationAddressIpv6.Address})
destinationAddressIpv6.EntityData.Leafs.Append("prefix-length", types.YLeaf{"PrefixLength", destinationAddressIpv6.PrefixLength})
destinationAddressIpv6.EntityData.YListKeys = []string {"Address", "PrefixLength"}
return &(destinationAddressIpv6.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv4
// Match source IPv4 address.
type PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv4 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. IPv4 address. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Address interface{}
// This attribute is a key. IPv4 netmask. The type is string with pattern:
// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
Netmask interface{}
}
func (sourceAddressIpv4 *PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv4) GetEntityData() *types.CommonEntityData {
sourceAddressIpv4.EntityData.YFilter = sourceAddressIpv4.YFilter
sourceAddressIpv4.EntityData.YangName = "source-address-ipv4"
sourceAddressIpv4.EntityData.BundleName = "cisco_ios_xr"
sourceAddressIpv4.EntityData.ParentYangName = "match"
sourceAddressIpv4.EntityData.SegmentPath = "source-address-ipv4" + types.AddKeyToken(sourceAddressIpv4.Address, "address") + types.AddKeyToken(sourceAddressIpv4.Netmask, "netmask")
sourceAddressIpv4.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + sourceAddressIpv4.EntityData.SegmentPath
sourceAddressIpv4.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sourceAddressIpv4.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sourceAddressIpv4.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sourceAddressIpv4.EntityData.Children = types.NewOrderedMap()
sourceAddressIpv4.EntityData.Leafs = types.NewOrderedMap()
sourceAddressIpv4.EntityData.Leafs.Append("address", types.YLeaf{"Address", sourceAddressIpv4.Address})
sourceAddressIpv4.EntityData.Leafs.Append("netmask", types.YLeaf{"Netmask", sourceAddressIpv4.Netmask})
sourceAddressIpv4.EntityData.YListKeys = []string {"Address", "Netmask"}
return &(sourceAddressIpv4.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv6
// Match source IPv6 address.
type PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv6 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. IPv6 address. The type is 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}]+)?.
Address interface{}
// This attribute is a key. IPv6 prefix length. The type is interface{} with
// range: 0..128.
PrefixLength interface{}
}
func (sourceAddressIpv6 *PolicyManager_ClassMaps_ClassMap_Match_SourceAddressIpv6) GetEntityData() *types.CommonEntityData {
sourceAddressIpv6.EntityData.YFilter = sourceAddressIpv6.YFilter
sourceAddressIpv6.EntityData.YangName = "source-address-ipv6"
sourceAddressIpv6.EntityData.BundleName = "cisco_ios_xr"
sourceAddressIpv6.EntityData.ParentYangName = "match"
sourceAddressIpv6.EntityData.SegmentPath = "source-address-ipv6" + types.AddKeyToken(sourceAddressIpv6.Address, "address") + types.AddKeyToken(sourceAddressIpv6.PrefixLength, "prefix-length")
sourceAddressIpv6.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + sourceAddressIpv6.EntityData.SegmentPath
sourceAddressIpv6.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
sourceAddressIpv6.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
sourceAddressIpv6.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
sourceAddressIpv6.EntityData.Children = types.NewOrderedMap()
sourceAddressIpv6.EntityData.Leafs = types.NewOrderedMap()
sourceAddressIpv6.EntityData.Leafs.Append("address", types.YLeaf{"Address", sourceAddressIpv6.Address})
sourceAddressIpv6.EntityData.Leafs.Append("prefix-length", types.YLeaf{"PrefixLength", sourceAddressIpv6.PrefixLength})
sourceAddressIpv6.EntityData.YListKeys = []string {"Address", "PrefixLength"}
return &(sourceAddressIpv6.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_DhcpClientId
// Match dhcp client ID.
type PolicyManager_ClassMaps_ClassMap_Match_DhcpClientId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Dhcp client Id. The type is string with length:
// 1..32.
Value interface{}
// This attribute is a key. Dhcp client id Ascii/Hex. The type is string with
// pattern: (none)|(ascii)|(hex).
Flag interface{}
}
func (dhcpClientId *PolicyManager_ClassMaps_ClassMap_Match_DhcpClientId) GetEntityData() *types.CommonEntityData {
dhcpClientId.EntityData.YFilter = dhcpClientId.YFilter
dhcpClientId.EntityData.YangName = "dhcp-client-id"
dhcpClientId.EntityData.BundleName = "cisco_ios_xr"
dhcpClientId.EntityData.ParentYangName = "match"
dhcpClientId.EntityData.SegmentPath = "dhcp-client-id" + types.AddKeyToken(dhcpClientId.Value, "value") + types.AddKeyToken(dhcpClientId.Flag, "flag")
dhcpClientId.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + dhcpClientId.EntityData.SegmentPath
dhcpClientId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
dhcpClientId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
dhcpClientId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
dhcpClientId.EntityData.Children = types.NewOrderedMap()
dhcpClientId.EntityData.Leafs = types.NewOrderedMap()
dhcpClientId.EntityData.Leafs.Append("value", types.YLeaf{"Value", dhcpClientId.Value})
dhcpClientId.EntityData.Leafs.Append("flag", types.YLeaf{"Flag", dhcpClientId.Flag})
dhcpClientId.EntityData.YListKeys = []string {"Value", "Flag"}
return &(dhcpClientId.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_DhcpClientIdRegex
// Match dhcp client id regex.
type PolicyManager_ClassMaps_ClassMap_Match_DhcpClientIdRegex struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Dhcp client id regular expression. The type is
// string with length: 1..32.
Value interface{}
// This attribute is a key. Dhcp client Id regex Ascii/Hex. The type is string
// with pattern: (none)|(ascii)|(hex).
Flag interface{}
}
func (dhcpClientIdRegex *PolicyManager_ClassMaps_ClassMap_Match_DhcpClientIdRegex) GetEntityData() *types.CommonEntityData {
dhcpClientIdRegex.EntityData.YFilter = dhcpClientIdRegex.YFilter
dhcpClientIdRegex.EntityData.YangName = "dhcp-client-id-regex"
dhcpClientIdRegex.EntityData.BundleName = "cisco_ios_xr"
dhcpClientIdRegex.EntityData.ParentYangName = "match"
dhcpClientIdRegex.EntityData.SegmentPath = "dhcp-client-id-regex" + types.AddKeyToken(dhcpClientIdRegex.Value, "value") + types.AddKeyToken(dhcpClientIdRegex.Flag, "flag")
dhcpClientIdRegex.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + dhcpClientIdRegex.EntityData.SegmentPath
dhcpClientIdRegex.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
dhcpClientIdRegex.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
dhcpClientIdRegex.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
dhcpClientIdRegex.EntityData.Children = types.NewOrderedMap()
dhcpClientIdRegex.EntityData.Leafs = types.NewOrderedMap()
dhcpClientIdRegex.EntityData.Leafs.Append("value", types.YLeaf{"Value", dhcpClientIdRegex.Value})
dhcpClientIdRegex.EntityData.Leafs.Append("flag", types.YLeaf{"Flag", dhcpClientIdRegex.Flag})
dhcpClientIdRegex.EntityData.YListKeys = []string {"Value", "Flag"}
return &(dhcpClientIdRegex.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_DomainName
// Match domain name.
type PolicyManager_ClassMaps_ClassMap_Match_DomainName struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Domain name or regular expression. The type is
// string with length: 1..32.
Name interface{}
// This attribute is a key. Domain-format name. The type is string with
// length: 1..32.
Format interface{}
}
func (domainName *PolicyManager_ClassMaps_ClassMap_Match_DomainName) GetEntityData() *types.CommonEntityData {
domainName.EntityData.YFilter = domainName.YFilter
domainName.EntityData.YangName = "domain-name"
domainName.EntityData.BundleName = "cisco_ios_xr"
domainName.EntityData.ParentYangName = "match"
domainName.EntityData.SegmentPath = "domain-name" + types.AddKeyToken(domainName.Name, "name") + types.AddKeyToken(domainName.Format, "format")
domainName.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + domainName.EntityData.SegmentPath
domainName.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
domainName.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
domainName.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
domainName.EntityData.Children = types.NewOrderedMap()
domainName.EntityData.Leafs = types.NewOrderedMap()
domainName.EntityData.Leafs.Append("name", types.YLeaf{"Name", domainName.Name})
domainName.EntityData.Leafs.Append("format", types.YLeaf{"Format", domainName.Format})
domainName.EntityData.YListKeys = []string {"Name", "Format"}
return &(domainName.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_DomainNameRegex
// Match domain name.
type PolicyManager_ClassMaps_ClassMap_Match_DomainNameRegex struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Domain name or regular expression. The type is
// string with length: 1..32.
Regex interface{}
// This attribute is a key. Domain-format name. The type is string with
// length: 1..32.
Format interface{}
}
func (domainNameRegex *PolicyManager_ClassMaps_ClassMap_Match_DomainNameRegex) GetEntityData() *types.CommonEntityData {
domainNameRegex.EntityData.YFilter = domainNameRegex.YFilter
domainNameRegex.EntityData.YangName = "domain-name-regex"
domainNameRegex.EntityData.BundleName = "cisco_ios_xr"
domainNameRegex.EntityData.ParentYangName = "match"
domainNameRegex.EntityData.SegmentPath = "domain-name-regex" + types.AddKeyToken(domainNameRegex.Regex, "regex") + types.AddKeyToken(domainNameRegex.Format, "format")
domainNameRegex.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + domainNameRegex.EntityData.SegmentPath
domainNameRegex.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
domainNameRegex.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
domainNameRegex.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
domainNameRegex.EntityData.Children = types.NewOrderedMap()
domainNameRegex.EntityData.Leafs = types.NewOrderedMap()
domainNameRegex.EntityData.Leafs.Append("regex", types.YLeaf{"Regex", domainNameRegex.Regex})
domainNameRegex.EntityData.Leafs.Append("format", types.YLeaf{"Format", domainNameRegex.Format})
domainNameRegex.EntityData.YListKeys = []string {"Regex", "Format"}
return &(domainNameRegex.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_Flow
// Match flow.
type PolicyManager_ClassMaps_ClassMap_Match_Flow struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure the flow-key parameters. The type is slice of string with
// pattern: (SourceIP)|(DestinationIP)|(5Tuple).
FlowKey []interface{}
// Configure the flow-cache parameters.
FlowCache PolicyManager_ClassMaps_ClassMap_Match_Flow_FlowCache
}
func (flow *PolicyManager_ClassMaps_ClassMap_Match_Flow) GetEntityData() *types.CommonEntityData {
flow.EntityData.YFilter = flow.YFilter
flow.EntityData.YangName = "flow"
flow.EntityData.BundleName = "cisco_ios_xr"
flow.EntityData.ParentYangName = "match"
flow.EntityData.SegmentPath = "flow"
flow.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-policymgr-cfg:policy-manager/class-maps/class-map/match/" + flow.EntityData.SegmentPath
flow.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flow.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flow.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flow.EntityData.Children = types.NewOrderedMap()
flow.EntityData.Children.Append("flow-cache", types.YChild{"FlowCache", &flow.FlowCache})
flow.EntityData.Leafs = types.NewOrderedMap()
flow.EntityData.Leafs.Append("flow-key", types.YLeaf{"FlowKey", flow.FlowKey})
flow.EntityData.YListKeys = []string {}
return &(flow.EntityData)
}
// PolicyManager_ClassMaps_ClassMap_Match_Flow_FlowCache
// Configure the flow-cache parameters
type PolicyManager_ClassMaps_ClassMap_Match_Flow_FlowCache struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Maximum time of inactivity for a flow. The type is one of the following
// types: int with range: 10..2550, or string with pattern: (None)|(none).
IdleTimeout interface{}
}