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_dhcpd_cfg.go
5198 lines (4135 loc) · 238 KB
/
ipv4_dhcpd_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-dhcpd package configuration.
//
// This module contains definitions
// for the following management objects:
// ipv4-dhcpd: DHCP IPV4 configuration
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ipv4_dhcpd_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_dhcpd_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-dhcpd-cfg ipv4-dhcpd}", reflect.TypeOf(Ipv4Dhcpd{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd", reflect.TypeOf(Ipv4Dhcpd{}))
}
// Matchaction represents Matchaction
type Matchaction string
const (
// Allow DHCP Discover
Matchaction_allow Matchaction = "allow"
// Drop DHCP Discover
Matchaction_drop Matchaction = "drop"
)
// Dhcpv4AuthUsername represents Dhcpv4 auth username
type Dhcpv4AuthUsername string
const (
// Authentication Username formating mac
Dhcpv4AuthUsername_auth_username_mac Dhcpv4AuthUsername = "auth-username-mac"
// Authentication Username formating giaddr
Dhcpv4AuthUsername_auth_username_giaddr Dhcpv4AuthUsername = "auth-username-giaddr"
)
// Policy represents Policy
type Policy string
const (
// Ignore the broadcast policy
Policy_ignore Policy = "ignore"
// Check for broadcast flag
Policy_check Policy = "check"
// Always Unicast the reply
Policy_unicastalways Policy = "unicastalways"
)
// Matchoption represents Matchoption
type Matchoption string
const (
// Match circuit id of option 82 Relay-agent
// specific class
Matchoption_circuitid Matchoption = "circuitid"
// Match remote id of option 82 Relay-agent
// specific class
Matchoption_remoteid Matchoption = "remoteid"
// Match option 60 vendor class id
Matchoption_Y_60 Matchoption = "60"
// Match option 77 user class
Matchoption_Y_77 Matchoption = "77"
// Match option 124 vendor-identifying vendor
// class
Matchoption_Y_124 Matchoption = "124"
// Match option 125 vendor-indentifying
// vendor-specific info
Matchoption_Y_125 Matchoption = "125"
)
// BaseAction represents Base action
type BaseAction string
const (
// Allow vendor specific DHCP Discover
BaseAction_allow BaseAction = "allow"
// Drop vendor specific DHCP Discover
BaseAction_drop BaseAction = "drop"
)
// Dhcpv4LimitLease1 represents Dhcpv4 limit lease1
type Dhcpv4LimitLease1 string
const (
// Interface
Dhcpv4LimitLease1_interface_ Dhcpv4LimitLease1 = "interface"
// Circuit ID
Dhcpv4LimitLease1_circuit_id Dhcpv4LimitLease1 = "circuit-id"
// Remote ID
Dhcpv4LimitLease1_remote_id Dhcpv4LimitLease1 = "remote-id"
// Circuit ID Remote ID
Dhcpv4LimitLease1_circuit_id_remote_id Dhcpv4LimitLease1 = "circuit-id-remote-id"
)
// Ipv4dhcpdLayer represents Ipv4dhcpd layer
type Ipv4dhcpdLayer string
const (
// Layer2
Ipv4dhcpdLayer_layer2 Ipv4dhcpdLayer = "layer2"
// Layer3
Ipv4dhcpdLayer_layer3 Ipv4dhcpdLayer = "layer3"
)
// Ipv4dhcpdGiaddrPolicy represents Ipv4dhcpd giaddr policy
type Ipv4dhcpdGiaddrPolicy string
const (
// Giaddr Policy Keep
Ipv4dhcpdGiaddrPolicy_giaddr_policy_keep Ipv4dhcpdGiaddrPolicy = "giaddr-policy-keep"
)
// Ipv4dhcpdMode represents Ipv4dhcpd mode
type Ipv4dhcpdMode string
const (
// Base
Ipv4dhcpdMode_base Ipv4dhcpdMode = "base"
// Relay
Ipv4dhcpdMode_relay Ipv4dhcpdMode = "relay"
// Snoop
Ipv4dhcpdMode_snoop Ipv4dhcpdMode = "snoop"
// Server
Ipv4dhcpdMode_server Ipv4dhcpdMode = "server"
// Proxy
Ipv4dhcpdMode_proxy Ipv4dhcpdMode = "proxy"
// Base2
Ipv4dhcpdMode_base2 Ipv4dhcpdMode = "base2"
)
// Ipv4dhcpdFmtSpecifier represents Ipv4dhcpd fmt specifier
type Ipv4dhcpdFmtSpecifier string
const (
// Physical chassis
Ipv4dhcpdFmtSpecifier_physical_chassis Ipv4dhcpdFmtSpecifier = "physical-chassis"
// Physical slot
Ipv4dhcpdFmtSpecifier_physical_slot Ipv4dhcpdFmtSpecifier = "physical-slot"
// Physical sub-slot
Ipv4dhcpdFmtSpecifier_physical_sub_slot Ipv4dhcpdFmtSpecifier = "physical-sub-slot"
// Physical port
Ipv4dhcpdFmtSpecifier_physical_port Ipv4dhcpdFmtSpecifier = "physical-port"
// Physical sub-port
Ipv4dhcpdFmtSpecifier_physical_sub_port Ipv4dhcpdFmtSpecifier = "physical-sub-port"
// Inner VLAN ID
Ipv4dhcpdFmtSpecifier_inner_vlan_id Ipv4dhcpdFmtSpecifier = "inner-vlan-id"
// Outer VLAN ID
Ipv4dhcpdFmtSpecifier_outer_vlan_id Ipv4dhcpdFmtSpecifier = "outer-vlan-id"
// L2 Interface
Ipv4dhcpdFmtSpecifier_l2_interface Ipv4dhcpdFmtSpecifier = "l2-interface"
// L3 Interface
Ipv4dhcpdFmtSpecifier_l3_interface Ipv4dhcpdFmtSpecifier = "l3-interface"
// Hostname
Ipv4dhcpdFmtSpecifier_host_name Ipv4dhcpdFmtSpecifier = "host-name"
)
// Ipv4dhcpdRelayInfoOptionPolicy represents Ipv4dhcpd relay info option policy
type Ipv4dhcpdRelayInfoOptionPolicy string
const (
// Replace
Ipv4dhcpdRelayInfoOptionPolicy_replace Ipv4dhcpdRelayInfoOptionPolicy = "replace"
// Keep
Ipv4dhcpdRelayInfoOptionPolicy_keep Ipv4dhcpdRelayInfoOptionPolicy = "keep"
// Drop
Ipv4dhcpdRelayInfoOptionPolicy_drop Ipv4dhcpdRelayInfoOptionPolicy = "drop"
// Encapsulate
Ipv4dhcpdRelayInfoOptionPolicy_encapsulate Ipv4dhcpdRelayInfoOptionPolicy = "encapsulate"
)
// MacMismatchAction represents Mac mismatch action
type MacMismatchAction string
const (
// Forward
MacMismatchAction_forward MacMismatchAction = "forward"
// Drop
MacMismatchAction_drop MacMismatchAction = "drop"
)
// Ipv4dhcpdBroadcastFlagPolicy represents Ipv4dhcpd broadcast flag policy
type Ipv4dhcpdBroadcastFlagPolicy string
const (
// Ignore
Ipv4dhcpdBroadcastFlagPolicy_ignore Ipv4dhcpdBroadcastFlagPolicy = "ignore"
// check
Ipv4dhcpdBroadcastFlagPolicy_check Ipv4dhcpdBroadcastFlagPolicy = "check"
// Unicast always
Ipv4dhcpdBroadcastFlagPolicy_unicast_always Ipv4dhcpdBroadcastFlagPolicy = "unicast-always"
)
// Ipv4dhcpdFmt represents Ipv4dhcpd fmt
type Ipv4dhcpdFmt string
const (
// Not a Format String
Ipv4dhcpdFmt_no_format Ipv4dhcpdFmt = "no-format"
// Hex Format String
Ipv4dhcpdFmt_hex Ipv4dhcpdFmt = "hex"
// Ascii Format String
Ipv4dhcpdFmt_ascii Ipv4dhcpdFmt = "ascii"
// Extended Format String
Ipv4dhcpdFmt_extended Ipv4dhcpdFmt = "extended"
)
// Ipv4dhcpdRelayInfoOptionvpnMode represents Ipv4dhcpd relay info optionvpn mode
type Ipv4dhcpdRelayInfoOptionvpnMode string
const (
// RFC
Ipv4dhcpdRelayInfoOptionvpnMode_rfc Ipv4dhcpdRelayInfoOptionvpnMode = "rfc"
// Cisco
Ipv4dhcpdRelayInfoOptionvpnMode_cisco Ipv4dhcpdRelayInfoOptionvpnMode = "cisco"
)
// ProxyAction represents Proxy action
type ProxyAction string
const (
// Allow vendor specific DHCP Discover
ProxyAction_allow ProxyAction = "allow"
// Drop vendor specific DHCP Discover
ProxyAction_drop ProxyAction = "drop"
// Relay vendor-id specific DHCP packets unaltered
ProxyAction_relay ProxyAction = "relay"
)
// LeaseLimitValue represents Lease limit value
type LeaseLimitValue string
const (
// Insert the limit lease type interface
LeaseLimitValue_per_interface LeaseLimitValue = "per-interface"
// Insert the limit lease type circuit-id
LeaseLimitValue_per_circuit_id LeaseLimitValue = "per-circuit-id"
// Insert the limit lease type remote-id
LeaseLimitValue_per_remote_id LeaseLimitValue = "per-remote-id"
)
// Dhcpv4MatchOption represents Dhcpv4 match option
type Dhcpv4MatchOption string
const (
// Vendor class ID
Dhcpv4MatchOption_Y_60__FWD_SLASH__60 Dhcpv4MatchOption = "60/60"
// 77 User class
Dhcpv4MatchOption_Y_77__FWD_SLASH__77 Dhcpv4MatchOption = "77/77"
// Vendor identifying class
Dhcpv4MatchOption_Y_124__FWD_SLASH__124 Dhcpv4MatchOption = "124/124"
// Vendor specific information
Dhcpv4MatchOption_Y_125__FWD_SLASH__125 Dhcpv4MatchOption = "125/125"
)
// Ipv4dhcpdRelayInfoOptionAuthenticate represents Ipv4dhcpd relay info option authenticate
type Ipv4dhcpdRelayInfoOptionAuthenticate string
const (
// Received
Ipv4dhcpdRelayInfoOptionAuthenticate_received Ipv4dhcpdRelayInfoOptionAuthenticate = "received"
// Inserted
Ipv4dhcpdRelayInfoOptionAuthenticate_inserted Ipv4dhcpdRelayInfoOptionAuthenticate = "inserted"
)
// Ipv4dhcpdRelayGiaddrPolicy represents Ipv4dhcpd relay giaddr policy
type Ipv4dhcpdRelayGiaddrPolicy string
const (
// Replace
Ipv4dhcpdRelayGiaddrPolicy_replace Ipv4dhcpdRelayGiaddrPolicy = "replace"
// Drop
Ipv4dhcpdRelayGiaddrPolicy_drop Ipv4dhcpdRelayGiaddrPolicy = "drop"
)
// Ipv4Dhcpd
// DHCP IPV4 configuration
// This type is a presence type.
type Ipv4Dhcpd struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// DHCP IPV4 configuration. The type is interface{}. This attribute is
// mandatory.
Enable interface{}
// Configure outer cos values for dhcp packets. The type is interface{} with
// range: 0..7.
OuterCos interface{}
// For BNG session, allow client id change for a client MAC. The type is
// interface{}.
AllowClientIdChange interface{}
// Configure inner cos values for dhcp packets. The type is interface{} with
// range: 0..7.
InnerCos interface{}
// VRF Table.
Vrfs Ipv4Dhcpd_Vrfs
// DHCP IPV4 Profile Table.
Profiles Ipv4Dhcpd_Profiles
// Enable DHCP binding database storage to file system.
Database Ipv4Dhcpd_Database
// DHCP IPV4 Interface Table.
Interfaces Ipv4Dhcpd_Interfaces
// Allow Duplicate MAC Address.
DuplicateMacAllowed Ipv4Dhcpd_DuplicateMacAllowed
// Rate limit ingress packets.
RateLimit Ipv4Dhcpd_RateLimit
}
func (ipv4Dhcpd *Ipv4Dhcpd) GetEntityData() *types.CommonEntityData {
ipv4Dhcpd.EntityData.YFilter = ipv4Dhcpd.YFilter
ipv4Dhcpd.EntityData.YangName = "ipv4-dhcpd"
ipv4Dhcpd.EntityData.BundleName = "cisco_ios_xr"
ipv4Dhcpd.EntityData.ParentYangName = "Cisco-IOS-XR-ipv4-dhcpd-cfg"
ipv4Dhcpd.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd"
ipv4Dhcpd.EntityData.AbsolutePath = ipv4Dhcpd.EntityData.SegmentPath
ipv4Dhcpd.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv4Dhcpd.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv4Dhcpd.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv4Dhcpd.EntityData.Children = types.NewOrderedMap()
ipv4Dhcpd.EntityData.Children.Append("vrfs", types.YChild{"Vrfs", &ipv4Dhcpd.Vrfs})
ipv4Dhcpd.EntityData.Children.Append("profiles", types.YChild{"Profiles", &ipv4Dhcpd.Profiles})
ipv4Dhcpd.EntityData.Children.Append("database", types.YChild{"Database", &ipv4Dhcpd.Database})
ipv4Dhcpd.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &ipv4Dhcpd.Interfaces})
ipv4Dhcpd.EntityData.Children.Append("duplicate-mac-allowed", types.YChild{"DuplicateMacAllowed", &ipv4Dhcpd.DuplicateMacAllowed})
ipv4Dhcpd.EntityData.Children.Append("rate-limit", types.YChild{"RateLimit", &ipv4Dhcpd.RateLimit})
ipv4Dhcpd.EntityData.Leafs = types.NewOrderedMap()
ipv4Dhcpd.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", ipv4Dhcpd.Enable})
ipv4Dhcpd.EntityData.Leafs.Append("outer-cos", types.YLeaf{"OuterCos", ipv4Dhcpd.OuterCos})
ipv4Dhcpd.EntityData.Leafs.Append("allow-client-id-change", types.YLeaf{"AllowClientIdChange", ipv4Dhcpd.AllowClientIdChange})
ipv4Dhcpd.EntityData.Leafs.Append("inner-cos", types.YLeaf{"InnerCos", ipv4Dhcpd.InnerCos})
ipv4Dhcpd.EntityData.YListKeys = []string {}
return &(ipv4Dhcpd.EntityData)
}
// Ipv4Dhcpd_Vrfs
// VRF Table
type Ipv4Dhcpd_Vrfs struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// VRF table. The type is slice of Ipv4Dhcpd_Vrfs_Vrf.
Vrf []*Ipv4Dhcpd_Vrfs_Vrf
}
func (vrfs *Ipv4Dhcpd_Vrfs) GetEntityData() *types.CommonEntityData {
vrfs.EntityData.YFilter = vrfs.YFilter
vrfs.EntityData.YangName = "vrfs"
vrfs.EntityData.BundleName = "cisco_ios_xr"
vrfs.EntityData.ParentYangName = "ipv4-dhcpd"
vrfs.EntityData.SegmentPath = "vrfs"
vrfs.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/" + vrfs.EntityData.SegmentPath
vrfs.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vrfs.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vrfs.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vrfs.EntityData.Children = types.NewOrderedMap()
vrfs.EntityData.Children.Append("vrf", types.YChild{"Vrf", nil})
for i := range vrfs.Vrf {
vrfs.EntityData.Children.Append(types.GetSegmentPath(vrfs.Vrf[i]), types.YChild{"Vrf", vrfs.Vrf[i]})
}
vrfs.EntityData.Leafs = types.NewOrderedMap()
vrfs.EntityData.YListKeys = []string {}
return &(vrfs.EntityData)
}
// Ipv4Dhcpd_Vrfs_Vrf
// VRF table
type Ipv4Dhcpd_Vrfs_Vrf struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. VRF Name. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
VrfName interface{}
// Profile name and mode.
Profile Ipv4Dhcpd_Vrfs_Vrf_Profile
}
func (vrf *Ipv4Dhcpd_Vrfs_Vrf) GetEntityData() *types.CommonEntityData {
vrf.EntityData.YFilter = vrf.YFilter
vrf.EntityData.YangName = "vrf"
vrf.EntityData.BundleName = "cisco_ios_xr"
vrf.EntityData.ParentYangName = "vrfs"
vrf.EntityData.SegmentPath = "vrf" + types.AddKeyToken(vrf.VrfName, "vrf-name")
vrf.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/vrfs/" + vrf.EntityData.SegmentPath
vrf.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vrf.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vrf.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vrf.EntityData.Children = types.NewOrderedMap()
vrf.EntityData.Children.Append("profile", types.YChild{"Profile", &vrf.Profile})
vrf.EntityData.Leafs = types.NewOrderedMap()
vrf.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", vrf.VrfName})
vrf.EntityData.YListKeys = []string {"VrfName"}
return &(vrf.EntityData)
}
// Ipv4Dhcpd_Vrfs_Vrf_Profile
// Profile name and mode
// This type is a presence type.
type Ipv4Dhcpd_Vrfs_Vrf_Profile struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Profile name. The type is string. This attribute is mandatory.
VrfProfileName interface{}
// Dhcp mode. The type is Ipv4dhcpdMode. This attribute is mandatory.
Mode interface{}
}
func (profile *Ipv4Dhcpd_Vrfs_Vrf_Profile) GetEntityData() *types.CommonEntityData {
profile.EntityData.YFilter = profile.YFilter
profile.EntityData.YangName = "profile"
profile.EntityData.BundleName = "cisco_ios_xr"
profile.EntityData.ParentYangName = "vrf"
profile.EntityData.SegmentPath = "profile"
profile.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/vrfs/vrf/" + profile.EntityData.SegmentPath
profile.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
profile.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
profile.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
profile.EntityData.Children = types.NewOrderedMap()
profile.EntityData.Leafs = types.NewOrderedMap()
profile.EntityData.Leafs.Append("vrf-profile-name", types.YLeaf{"VrfProfileName", profile.VrfProfileName})
profile.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", profile.Mode})
profile.EntityData.YListKeys = []string {}
return &(profile.EntityData)
}
// Ipv4Dhcpd_Profiles
// DHCP IPV4 Profile Table
type Ipv4Dhcpd_Profiles struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// DHCP IPV4 Profile. The type is slice of Ipv4Dhcpd_Profiles_Profile.
Profile []*Ipv4Dhcpd_Profiles_Profile
}
func (profiles *Ipv4Dhcpd_Profiles) GetEntityData() *types.CommonEntityData {
profiles.EntityData.YFilter = profiles.YFilter
profiles.EntityData.YangName = "profiles"
profiles.EntityData.BundleName = "cisco_ios_xr"
profiles.EntityData.ParentYangName = "ipv4-dhcpd"
profiles.EntityData.SegmentPath = "profiles"
profiles.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/" + profiles.EntityData.SegmentPath
profiles.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
profiles.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
profiles.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
profiles.EntityData.Children = types.NewOrderedMap()
profiles.EntityData.Children.Append("profile", types.YChild{"Profile", nil})
for i := range profiles.Profile {
profiles.EntityData.Children.Append(types.GetSegmentPath(profiles.Profile[i]), types.YChild{"Profile", profiles.Profile[i]})
}
profiles.EntityData.Leafs = types.NewOrderedMap()
profiles.EntityData.YListKeys = []string {}
return &(profiles.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile
// DHCP IPV4 Profile
type Ipv4Dhcpd_Profiles_Profile struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Profile Name. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
ProfileName interface{}
// DHCP IPV4 Profile modes.
Modes Ipv4Dhcpd_Profiles_Profile_Modes
}
func (profile *Ipv4Dhcpd_Profiles_Profile) GetEntityData() *types.CommonEntityData {
profile.EntityData.YFilter = profile.YFilter
profile.EntityData.YangName = "profile"
profile.EntityData.BundleName = "cisco_ios_xr"
profile.EntityData.ParentYangName = "profiles"
profile.EntityData.SegmentPath = "profile" + types.AddKeyToken(profile.ProfileName, "profile-name")
profile.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/" + profile.EntityData.SegmentPath
profile.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
profile.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
profile.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
profile.EntityData.Children = types.NewOrderedMap()
profile.EntityData.Children.Append("modes", types.YChild{"Modes", &profile.Modes})
profile.EntityData.Leafs = types.NewOrderedMap()
profile.EntityData.Leafs.Append("profile-name", types.YLeaf{"ProfileName", profile.ProfileName})
profile.EntityData.YListKeys = []string {"ProfileName"}
return &(profile.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes
// DHCP IPV4 Profile modes
type Ipv4Dhcpd_Profiles_Profile_Modes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// DHCP IPV4 Profile mode. The type is slice of
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode.
Mode []*Ipv4Dhcpd_Profiles_Profile_Modes_Mode
}
func (modes *Ipv4Dhcpd_Profiles_Profile_Modes) GetEntityData() *types.CommonEntityData {
modes.EntityData.YFilter = modes.YFilter
modes.EntityData.YangName = "modes"
modes.EntityData.BundleName = "cisco_ios_xr"
modes.EntityData.ParentYangName = "profile"
modes.EntityData.SegmentPath = "modes"
modes.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/" + modes.EntityData.SegmentPath
modes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
modes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
modes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
modes.EntityData.Children = types.NewOrderedMap()
modes.EntityData.Children.Append("mode", types.YChild{"Mode", nil})
for i := range modes.Mode {
modes.EntityData.Children.Append(types.GetSegmentPath(modes.Mode[i]), types.YChild{"Mode", modes.Mode[i]})
}
modes.EntityData.Leafs = types.NewOrderedMap()
modes.EntityData.YListKeys = []string {}
return &(modes.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode
// DHCP IPV4 Profile mode
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. DHCP IPV4 Profile mode. The type is Ipv4dhcpdMode.
Mode interface{}
// Enable the DHCP IPV4 Profile mode. The type is interface{}.
Enable interface{}
// DHCP Snoop profile.
Snoop Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop
// DHCP Base Profile.
Base Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base
// DHCP Server profile.
Server Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Server
// DHCP Relay profile.
Relay Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Relay
// DHCP proxy profile.
Proxy Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Proxy
}
func (mode *Ipv4Dhcpd_Profiles_Profile_Modes_Mode) GetEntityData() *types.CommonEntityData {
mode.EntityData.YFilter = mode.YFilter
mode.EntityData.YangName = "mode"
mode.EntityData.BundleName = "cisco_ios_xr"
mode.EntityData.ParentYangName = "modes"
mode.EntityData.SegmentPath = "mode" + types.AddKeyToken(mode.Mode, "mode")
mode.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/" + mode.EntityData.SegmentPath
mode.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
mode.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
mode.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
mode.EntityData.Children = types.NewOrderedMap()
mode.EntityData.Children.Append("snoop", types.YChild{"Snoop", &mode.Snoop})
mode.EntityData.Children.Append("base", types.YChild{"Base", &mode.Base})
mode.EntityData.Children.Append("server", types.YChild{"Server", &mode.Server})
mode.EntityData.Children.Append("relay", types.YChild{"Relay", &mode.Relay})
mode.EntityData.Children.Append("proxy", types.YChild{"Proxy", &mode.Proxy})
mode.EntityData.Leafs = types.NewOrderedMap()
mode.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", mode.Mode})
mode.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", mode.Enable})
mode.EntityData.YListKeys = []string {"Mode"}
return &(mode.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop
// DHCP Snoop profile
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Trusted sources. The type is interface{}.
Trusted interface{}
// DHCP Snoop profile.
RelayInformationOption Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption
}
func (snoop *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop) GetEntityData() *types.CommonEntityData {
snoop.EntityData.YFilter = snoop.YFilter
snoop.EntityData.YangName = "snoop"
snoop.EntityData.BundleName = "cisco_ios_xr"
snoop.EntityData.ParentYangName = "mode"
snoop.EntityData.SegmentPath = "snoop"
snoop.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/" + snoop.EntityData.SegmentPath
snoop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
snoop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
snoop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
snoop.EntityData.Children = types.NewOrderedMap()
snoop.EntityData.Children.Append("relay-information-option", types.YChild{"RelayInformationOption", &snoop.RelayInformationOption})
snoop.EntityData.Leafs = types.NewOrderedMap()
snoop.EntityData.Leafs.Append("trusted", types.YLeaf{"Trusted", snoop.Trusted})
snoop.EntityData.YListKeys = []string {}
return &(snoop.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption
// DHCP Snoop profile
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Insert Relay Agent Information circuit ID and remote ID suboptions in
// client request. The type is interface{}.
Insert interface{}
// Forward untrusted packets. The type is interface{}.
AllowUntrusted interface{}
// Relay information option policy. The type is
// Ipv4dhcpdRelayInfoOptionPolicy.
Policy interface{}
// Enter remote-id value.
RemoteId Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption_RemoteId
}
func (relayInformationOption *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption) GetEntityData() *types.CommonEntityData {
relayInformationOption.EntityData.YFilter = relayInformationOption.YFilter
relayInformationOption.EntityData.YangName = "relay-information-option"
relayInformationOption.EntityData.BundleName = "cisco_ios_xr"
relayInformationOption.EntityData.ParentYangName = "snoop"
relayInformationOption.EntityData.SegmentPath = "relay-information-option"
relayInformationOption.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/snoop/" + relayInformationOption.EntityData.SegmentPath
relayInformationOption.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
relayInformationOption.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
relayInformationOption.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
relayInformationOption.EntityData.Children = types.NewOrderedMap()
relayInformationOption.EntityData.Children.Append("remote-id", types.YChild{"RemoteId", &relayInformationOption.RemoteId})
relayInformationOption.EntityData.Leafs = types.NewOrderedMap()
relayInformationOption.EntityData.Leafs.Append("insert", types.YLeaf{"Insert", relayInformationOption.Insert})
relayInformationOption.EntityData.Leafs.Append("allow-untrusted", types.YLeaf{"AllowUntrusted", relayInformationOption.AllowUntrusted})
relayInformationOption.EntityData.Leafs.Append("policy", types.YLeaf{"Policy", relayInformationOption.Policy})
relayInformationOption.EntityData.YListKeys = []string {}
return &(relayInformationOption.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption_RemoteId
// Enter remote-id value
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption_RemoteId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Format type, 1. Hex 2. ASCII. The type is interface{} with range: 1..2.
FormatType interface{}
// Enter remote-id value. The type is string.
RemoteIdValue interface{}
}
func (remoteId *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Snoop_RelayInformationOption_RemoteId) GetEntityData() *types.CommonEntityData {
remoteId.EntityData.YFilter = remoteId.YFilter
remoteId.EntityData.YangName = "remote-id"
remoteId.EntityData.BundleName = "cisco_ios_xr"
remoteId.EntityData.ParentYangName = "relay-information-option"
remoteId.EntityData.SegmentPath = "remote-id"
remoteId.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/snoop/relay-information-option/" + remoteId.EntityData.SegmentPath
remoteId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
remoteId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
remoteId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
remoteId.EntityData.Children = types.NewOrderedMap()
remoteId.EntityData.Leafs = types.NewOrderedMap()
remoteId.EntityData.Leafs.Append("format-type", types.YLeaf{"FormatType", remoteId.FormatType})
remoteId.EntityData.Leafs.Append("remote-id-value", types.YLeaf{"RemoteIdValue", remoteId.RemoteIdValue})
remoteId.EntityData.YListKeys = []string {}
return &(remoteId.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base
// DHCP Base Profile
// This type is a presence type.
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Enable the DHCP IPv4 Base Profile. The type is interface{}. This attribute
// is mandatory.
Enable interface{}
// Enable the default profile.
DefaultProfile Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_DefaultProfile
// Insert match keyword.
Match Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match
// Insert Relay Agent Information circuit ID and remote ID suboptions in
// client request.
BaseRelayOpt Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_BaseRelayOpt
// Insert match keyword.
BaseMatch Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_BaseMatch
}
func (base *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base) GetEntityData() *types.CommonEntityData {
base.EntityData.YFilter = base.YFilter
base.EntityData.YangName = "base"
base.EntityData.BundleName = "cisco_ios_xr"
base.EntityData.ParentYangName = "mode"
base.EntityData.SegmentPath = "base"
base.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/" + base.EntityData.SegmentPath
base.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
base.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
base.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
base.EntityData.Children = types.NewOrderedMap()
base.EntityData.Children.Append("default-profile", types.YChild{"DefaultProfile", &base.DefaultProfile})
base.EntityData.Children.Append("match", types.YChild{"Match", &base.Match})
base.EntityData.Children.Append("base-relay-opt", types.YChild{"BaseRelayOpt", &base.BaseRelayOpt})
base.EntityData.Children.Append("base-match", types.YChild{"BaseMatch", &base.BaseMatch})
base.EntityData.Leafs = types.NewOrderedMap()
base.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", base.Enable})
base.EntityData.YListKeys = []string {}
return &(base.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_DefaultProfile
// Enable the default profile
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_DefaultProfile struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Profile name. The type is string with length: 1..64.
ProfileName interface{}
// none. The type is interface{} with range: 0..4294967295.
ProfileMode interface{}
}
func (defaultProfile *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_DefaultProfile) GetEntityData() *types.CommonEntityData {
defaultProfile.EntityData.YFilter = defaultProfile.YFilter
defaultProfile.EntityData.YangName = "default-profile"
defaultProfile.EntityData.BundleName = "cisco_ios_xr"
defaultProfile.EntityData.ParentYangName = "base"
defaultProfile.EntityData.SegmentPath = "default-profile"
defaultProfile.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/base/" + defaultProfile.EntityData.SegmentPath
defaultProfile.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
defaultProfile.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
defaultProfile.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
defaultProfile.EntityData.Children = types.NewOrderedMap()
defaultProfile.EntityData.Leafs = types.NewOrderedMap()
defaultProfile.EntityData.Leafs.Append("profile-name", types.YLeaf{"ProfileName", defaultProfile.ProfileName})
defaultProfile.EntityData.Leafs.Append("profile-mode", types.YLeaf{"ProfileMode", defaultProfile.ProfileMode})
defaultProfile.EntityData.YListKeys = []string {}
return &(defaultProfile.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match
// Insert match keyword
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Table of Option.
OptionFilters Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters
// Table of Option.
DefOptions Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_DefOptions
}
func (match *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match) GetEntityData() *types.CommonEntityData {
match.EntityData.YFilter = match.YFilter
match.EntityData.YangName = "match"
match.EntityData.BundleName = "cisco_ios_xr"
match.EntityData.ParentYangName = "base"
match.EntityData.SegmentPath = "match"
match.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/base/" + 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("option-filters", types.YChild{"OptionFilters", &match.OptionFilters})
match.EntityData.Children.Append("def-options", types.YChild{"DefOptions", &match.DefOptions})
match.EntityData.Leafs = types.NewOrderedMap()
match.EntityData.YListKeys = []string {}
return &(match.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters
// Table of Option
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify match option. The type is slice of
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters_OptionFilter.
OptionFilter []*Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters_OptionFilter
}
func (optionFilters *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters) GetEntityData() *types.CommonEntityData {
optionFilters.EntityData.YFilter = optionFilters.YFilter
optionFilters.EntityData.YangName = "option-filters"
optionFilters.EntityData.BundleName = "cisco_ios_xr"
optionFilters.EntityData.ParentYangName = "match"
optionFilters.EntityData.SegmentPath = "option-filters"
optionFilters.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/base/match/" + optionFilters.EntityData.SegmentPath
optionFilters.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
optionFilters.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
optionFilters.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
optionFilters.EntityData.Children = types.NewOrderedMap()
optionFilters.EntityData.Children.Append("option-filter", types.YChild{"OptionFilter", nil})
for i := range optionFilters.OptionFilter {
optionFilters.EntityData.Children.Append(types.GetSegmentPath(optionFilters.OptionFilter[i]), types.YChild{"OptionFilter", optionFilters.OptionFilter[i]})
}
optionFilters.EntityData.Leafs = types.NewOrderedMap()
optionFilters.EntityData.YListKeys = []string {}
return &(optionFilters.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters_OptionFilter
// Specify match option
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters_OptionFilter struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Match option 60. The type is interface{} with
// range: 0..4294967295.
Matchoption interface{}
// This attribute is a key. Enter hex pattern string. The type is string with
// length: 1..64.
Pattern interface{}
// This attribute is a key. Set constant integer. The type is interface{} with
// range: 0..4294967295.
Format interface{}
// Vendor action. The type is BaseAction.
OptionAction interface{}
}
func (optionFilter *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_OptionFilters_OptionFilter) GetEntityData() *types.CommonEntityData {
optionFilter.EntityData.YFilter = optionFilter.YFilter
optionFilter.EntityData.YangName = "option-filter"
optionFilter.EntityData.BundleName = "cisco_ios_xr"
optionFilter.EntityData.ParentYangName = "option-filters"
optionFilter.EntityData.SegmentPath = "option-filter" + types.AddKeyToken(optionFilter.Matchoption, "matchoption") + types.AddKeyToken(optionFilter.Pattern, "pattern") + types.AddKeyToken(optionFilter.Format, "format")
optionFilter.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/base/match/option-filters/" + optionFilter.EntityData.SegmentPath
optionFilter.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
optionFilter.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
optionFilter.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
optionFilter.EntityData.Children = types.NewOrderedMap()
optionFilter.EntityData.Leafs = types.NewOrderedMap()
optionFilter.EntityData.Leafs.Append("matchoption", types.YLeaf{"Matchoption", optionFilter.Matchoption})
optionFilter.EntityData.Leafs.Append("pattern", types.YLeaf{"Pattern", optionFilter.Pattern})
optionFilter.EntityData.Leafs.Append("format", types.YLeaf{"Format", optionFilter.Format})
optionFilter.EntityData.Leafs.Append("option-action", types.YLeaf{"OptionAction", optionFilter.OptionAction})
optionFilter.EntityData.YListKeys = []string {"Matchoption", "Pattern", "Format"}
return &(optionFilter.EntityData)
}
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_DefOptions
// Table of Option
type Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_DefOptions struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify match option. The type is slice of
// Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_DefOptions_DefOption.
DefOption []*Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_DefOptions_DefOption
}
func (defOptions *Ipv4Dhcpd_Profiles_Profile_Modes_Mode_Base_Match_DefOptions) GetEntityData() *types.CommonEntityData {
defOptions.EntityData.YFilter = defOptions.YFilter
defOptions.EntityData.YangName = "def-options"
defOptions.EntityData.BundleName = "cisco_ios_xr"
defOptions.EntityData.ParentYangName = "match"
defOptions.EntityData.SegmentPath = "def-options"
defOptions.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-dhcpd-cfg:ipv4-dhcpd/profiles/profile/modes/mode/base/match/" + defOptions.EntityData.SegmentPath
defOptions.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
defOptions.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
defOptions.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
defOptions.EntityData.Children = types.NewOrderedMap()
defOptions.EntityData.Children.Append("def-option", types.YChild{"DefOption", nil})