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
/
asr9k_prm_cfg.go
1276 lines (1021 loc) · 56 KB
/
asr9k_prm_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-prm package configuration.
//
// This module contains definitions
// for the following management objects:
// hardware-module-qos-mode: QoS mode in hardware module port(s)
// hardware-module-tcp-mss-adjust: hardware module tcp mss adjust
// hardware-module-tcam: hardware module tcam
// hardware-module-efd: hardware module efd
// hardware-module-all-qos-mode: hardware module all qos mode
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package asr9k_prm_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 asr9k_prm_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-asr9k-prm-cfg hardware-module-qos-mode}", reflect.TypeOf(HardwareModuleQosMode{}))
ydk.RegisterEntity("Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-qos-mode", reflect.TypeOf(HardwareModuleQosMode{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-asr9k-prm-cfg hardware-module-tcp-mss-adjust}", reflect.TypeOf(HardwareModuleTcpMssAdjust{}))
ydk.RegisterEntity("Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcp-mss-adjust", reflect.TypeOf(HardwareModuleTcpMssAdjust{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-asr9k-prm-cfg hardware-module-tcam}", reflect.TypeOf(HardwareModuleTcam{}))
ydk.RegisterEntity("Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcam", reflect.TypeOf(HardwareModuleTcam{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-asr9k-prm-cfg hardware-module-efd}", reflect.TypeOf(HardwareModuleEfd{}))
ydk.RegisterEntity("Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd", reflect.TypeOf(HardwareModuleEfd{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-asr9k-prm-cfg hardware-module-all-qos-mode}", reflect.TypeOf(HardwareModuleAllQosMode{}))
ydk.RegisterEntity("Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-all-qos-mode", reflect.TypeOf(HardwareModuleAllQosMode{}))
}
// Asr9kEfdMode represents Asr9k efd mode
type Asr9kEfdMode string
const (
// Only check outer encap
Asr9kEfdMode_only_outer_encap Asr9kEfdMode = "only-outer-encap"
// Check outer and inner encap
Asr9kEfdMode_include_inner_encap Asr9kEfdMode = "include-inner-encap"
)
// Asr9kEfdOperation represents Asr9k efd operation
type Asr9kEfdOperation string
const (
// Less than
Asr9kEfdOperation_less_than Asr9kEfdOperation = "less-than"
// Greater than or equal
Asr9kEfdOperation_greater_than_or_equal Asr9kEfdOperation = "greater-than-or-equal"
)
// PrmTcamProfile represents Prm tcam profile
type PrmTcamProfile string
const (
// Profile 0
PrmTcamProfile_profile0 PrmTcamProfile = "profile0"
// Profile 1
PrmTcamProfile_profile1 PrmTcamProfile = "profile1"
// Profile 2
PrmTcamProfile_profile2 PrmTcamProfile = "profile2"
)
// HardwareModuleQosMode
// QoS mode in hardware module port(s)
type HardwareModuleQosMode struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// QoS applicable nodes.
Nodes HardwareModuleQosMode_Nodes
}
func (hardwareModuleQosMode *HardwareModuleQosMode) GetEntityData() *types.CommonEntityData {
hardwareModuleQosMode.EntityData.YFilter = hardwareModuleQosMode.YFilter
hardwareModuleQosMode.EntityData.YangName = "hardware-module-qos-mode"
hardwareModuleQosMode.EntityData.BundleName = "cisco_ios_xr"
hardwareModuleQosMode.EntityData.ParentYangName = "Cisco-IOS-XR-asr9k-prm-cfg"
hardwareModuleQosMode.EntityData.SegmentPath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-qos-mode"
hardwareModuleQosMode.EntityData.AbsolutePath = hardwareModuleQosMode.EntityData.SegmentPath
hardwareModuleQosMode.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hardwareModuleQosMode.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hardwareModuleQosMode.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hardwareModuleQosMode.EntityData.Children = types.NewOrderedMap()
hardwareModuleQosMode.EntityData.Children.Append("nodes", types.YChild{"Nodes", &hardwareModuleQosMode.Nodes})
hardwareModuleQosMode.EntityData.Leafs = types.NewOrderedMap()
hardwareModuleQosMode.EntityData.YListKeys = []string {}
return &(hardwareModuleQosMode.EntityData)
}
// HardwareModuleQosMode_Nodes
// QoS applicable nodes
type HardwareModuleQosMode_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A node. The type is slice of HardwareModuleQosMode_Nodes_Node.
Node []*HardwareModuleQosMode_Nodes_Node
}
func (nodes *HardwareModuleQosMode_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "hardware-module-qos-mode"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-qos-mode/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// HardwareModuleQosMode_Nodes_Node
// A node
type HardwareModuleQosMode_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node ID. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Disable child level/flat policy shaping. The type is interface{}.
ChildShapingDisable interface{}
// Enable low burst mode for TM entity. The type is interface{}.
LowburstEnable interface{}
}
func (node *HardwareModuleQosMode_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-qos-mode/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.Leafs.Append("child-shaping-disable", types.YLeaf{"ChildShapingDisable", node.ChildShapingDisable})
node.EntityData.Leafs.Append("lowburst-enable", types.YLeaf{"LowburstEnable", node.LowburstEnable})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// HardwareModuleTcpMssAdjust
// hardware module tcp mss adjust
type HardwareModuleTcpMssAdjust struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TCP MSS Adjust applicable nodes.
Nodes HardwareModuleTcpMssAdjust_Nodes
}
func (hardwareModuleTcpMssAdjust *HardwareModuleTcpMssAdjust) GetEntityData() *types.CommonEntityData {
hardwareModuleTcpMssAdjust.EntityData.YFilter = hardwareModuleTcpMssAdjust.YFilter
hardwareModuleTcpMssAdjust.EntityData.YangName = "hardware-module-tcp-mss-adjust"
hardwareModuleTcpMssAdjust.EntityData.BundleName = "cisco_ios_xr"
hardwareModuleTcpMssAdjust.EntityData.ParentYangName = "Cisco-IOS-XR-asr9k-prm-cfg"
hardwareModuleTcpMssAdjust.EntityData.SegmentPath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcp-mss-adjust"
hardwareModuleTcpMssAdjust.EntityData.AbsolutePath = hardwareModuleTcpMssAdjust.EntityData.SegmentPath
hardwareModuleTcpMssAdjust.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hardwareModuleTcpMssAdjust.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hardwareModuleTcpMssAdjust.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hardwareModuleTcpMssAdjust.EntityData.Children = types.NewOrderedMap()
hardwareModuleTcpMssAdjust.EntityData.Children.Append("nodes", types.YChild{"Nodes", &hardwareModuleTcpMssAdjust.Nodes})
hardwareModuleTcpMssAdjust.EntityData.Leafs = types.NewOrderedMap()
hardwareModuleTcpMssAdjust.EntityData.YListKeys = []string {}
return &(hardwareModuleTcpMssAdjust.EntityData)
}
// HardwareModuleTcpMssAdjust_Nodes
// TCP MSS Adjust applicable nodes
type HardwareModuleTcpMssAdjust_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A node. The type is slice of HardwareModuleTcpMssAdjust_Nodes_Node.
Node []*HardwareModuleTcpMssAdjust_Nodes_Node
}
func (nodes *HardwareModuleTcpMssAdjust_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "hardware-module-tcp-mss-adjust"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcp-mss-adjust/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// HardwareModuleTcpMssAdjust_Nodes_Node
// A node
type HardwareModuleTcpMssAdjust_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node ID. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// TCP MSS Adjust NPs.
Nps HardwareModuleTcpMssAdjust_Nodes_Node_Nps
}
func (node *HardwareModuleTcpMssAdjust_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcp-mss-adjust/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Children.Append("nps", types.YChild{"Nps", &node.Nps})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// HardwareModuleTcpMssAdjust_Nodes_Node_Nps
// TCP MSS Adjust NPs
type HardwareModuleTcpMssAdjust_Nodes_Node_Nps struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// NP number. The type is slice of
// HardwareModuleTcpMssAdjust_Nodes_Node_Nps_Np.
Np []*HardwareModuleTcpMssAdjust_Nodes_Node_Nps_Np
}
func (nps *HardwareModuleTcpMssAdjust_Nodes_Node_Nps) GetEntityData() *types.CommonEntityData {
nps.EntityData.YFilter = nps.YFilter
nps.EntityData.YangName = "nps"
nps.EntityData.BundleName = "cisco_ios_xr"
nps.EntityData.ParentYangName = "node"
nps.EntityData.SegmentPath = "nps"
nps.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcp-mss-adjust/nodes/node/" + nps.EntityData.SegmentPath
nps.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nps.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nps.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nps.EntityData.Children = types.NewOrderedMap()
nps.EntityData.Children.Append("np", types.YChild{"Np", nil})
for i := range nps.Np {
nps.EntityData.Children.Append(types.GetSegmentPath(nps.Np[i]), types.YChild{"Np", nps.Np[i]})
}
nps.EntityData.Leafs = types.NewOrderedMap()
nps.EntityData.YListKeys = []string {}
return &(nps.EntityData)
}
// HardwareModuleTcpMssAdjust_Nodes_Node_Nps_Np
// NP number
type HardwareModuleTcpMssAdjust_Nodes_Node_Nps_Np struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Number between 0-7. The type is interface{} with
// range: 0..7.
NpId interface{}
// TCP MSS Adjust value. The type is interface{} with range: 1280..1535. Units
// are byte.
AdjustValue interface{}
}
func (np *HardwareModuleTcpMssAdjust_Nodes_Node_Nps_Np) GetEntityData() *types.CommonEntityData {
np.EntityData.YFilter = np.YFilter
np.EntityData.YangName = "np"
np.EntityData.BundleName = "cisco_ios_xr"
np.EntityData.ParentYangName = "nps"
np.EntityData.SegmentPath = "np" + types.AddKeyToken(np.NpId, "np-id")
np.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcp-mss-adjust/nodes/node/nps/" + np.EntityData.SegmentPath
np.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
np.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
np.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
np.EntityData.Children = types.NewOrderedMap()
np.EntityData.Leafs = types.NewOrderedMap()
np.EntityData.Leafs.Append("np-id", types.YLeaf{"NpId", np.NpId})
np.EntityData.Leafs.Append("adjust-value", types.YLeaf{"AdjustValue", np.AdjustValue})
np.EntityData.YListKeys = []string {"NpId"}
return &(np.EntityData)
}
// HardwareModuleTcam
// hardware module tcam
type HardwareModuleTcam struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Global TCAM partition profile for all TCAM applicable nodes. The type is
// PrmTcamProfile. The default value is profile0.
GlobalProfile interface{}
// TCAM applicable nodes.
Nodes HardwareModuleTcam_Nodes
}
func (hardwareModuleTcam *HardwareModuleTcam) GetEntityData() *types.CommonEntityData {
hardwareModuleTcam.EntityData.YFilter = hardwareModuleTcam.YFilter
hardwareModuleTcam.EntityData.YangName = "hardware-module-tcam"
hardwareModuleTcam.EntityData.BundleName = "cisco_ios_xr"
hardwareModuleTcam.EntityData.ParentYangName = "Cisco-IOS-XR-asr9k-prm-cfg"
hardwareModuleTcam.EntityData.SegmentPath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcam"
hardwareModuleTcam.EntityData.AbsolutePath = hardwareModuleTcam.EntityData.SegmentPath
hardwareModuleTcam.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hardwareModuleTcam.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hardwareModuleTcam.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hardwareModuleTcam.EntityData.Children = types.NewOrderedMap()
hardwareModuleTcam.EntityData.Children.Append("nodes", types.YChild{"Nodes", &hardwareModuleTcam.Nodes})
hardwareModuleTcam.EntityData.Leafs = types.NewOrderedMap()
hardwareModuleTcam.EntityData.Leafs.Append("global-profile", types.YLeaf{"GlobalProfile", hardwareModuleTcam.GlobalProfile})
hardwareModuleTcam.EntityData.YListKeys = []string {}
return &(hardwareModuleTcam.EntityData)
}
// HardwareModuleTcam_Nodes
// TCAM applicable nodes
type HardwareModuleTcam_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A TCAM applicable node. The type is slice of HardwareModuleTcam_Nodes_Node.
Node []*HardwareModuleTcam_Nodes_Node
}
func (nodes *HardwareModuleTcam_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "hardware-module-tcam"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcam/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// HardwareModuleTcam_Nodes_Node
// A TCAM applicable node
type HardwareModuleTcam_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node ID. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// A TCAM partition profile. The type is PrmTcamProfile. The default value is
// profile0.
Profile interface{}
}
func (node *HardwareModuleTcam_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-tcam/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.Leafs.Append("profile", types.YLeaf{"Profile", node.Profile})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// HardwareModuleEfd
// hardware module efd
type HardwareModuleEfd struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// All nodes.
NodeAll HardwareModuleEfd_NodeAll
// EFD applicable nodes.
Nodes HardwareModuleEfd_Nodes
}
func (hardwareModuleEfd *HardwareModuleEfd) GetEntityData() *types.CommonEntityData {
hardwareModuleEfd.EntityData.YFilter = hardwareModuleEfd.YFilter
hardwareModuleEfd.EntityData.YangName = "hardware-module-efd"
hardwareModuleEfd.EntityData.BundleName = "cisco_ios_xr"
hardwareModuleEfd.EntityData.ParentYangName = "Cisco-IOS-XR-asr9k-prm-cfg"
hardwareModuleEfd.EntityData.SegmentPath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd"
hardwareModuleEfd.EntityData.AbsolutePath = hardwareModuleEfd.EntityData.SegmentPath
hardwareModuleEfd.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hardwareModuleEfd.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hardwareModuleEfd.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hardwareModuleEfd.EntityData.Children = types.NewOrderedMap()
hardwareModuleEfd.EntityData.Children.Append("node-all", types.YChild{"NodeAll", &hardwareModuleEfd.NodeAll})
hardwareModuleEfd.EntityData.Children.Append("nodes", types.YChild{"Nodes", &hardwareModuleEfd.Nodes})
hardwareModuleEfd.EntityData.Leafs = types.NewOrderedMap()
hardwareModuleEfd.EntityData.YListKeys = []string {}
return &(hardwareModuleEfd.EntityData)
}
// HardwareModuleEfd_NodeAll
// All nodes
type HardwareModuleEfd_NodeAll struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enable EFD for this node. The type is interface{}.
Enable interface{}
// EFD mode parameter. The type is Asr9kEfdMode.
Mode interface{}
// VLAN Priority Mask.
VlanPriorityMask HardwareModuleEfd_NodeAll_VlanPriorityMask
// EFD IP parameters.
IpPrecedence HardwareModuleEfd_NodeAll_IpPrecedence
// EFD VLAN parameters.
VlanCos HardwareModuleEfd_NodeAll_VlanCos
// IP Priority Mask.
IpPriorityMask HardwareModuleEfd_NodeAll_IpPriorityMask
// MPLS Priority Mask.
MplsPriorityMask HardwareModuleEfd_NodeAll_MplsPriorityMask
// EFD MPLS parameters.
MplsExp HardwareModuleEfd_NodeAll_MplsExp
}
func (nodeAll *HardwareModuleEfd_NodeAll) GetEntityData() *types.CommonEntityData {
nodeAll.EntityData.YFilter = nodeAll.YFilter
nodeAll.EntityData.YangName = "node-all"
nodeAll.EntityData.BundleName = "cisco_ios_xr"
nodeAll.EntityData.ParentYangName = "hardware-module-efd"
nodeAll.EntityData.SegmentPath = "node-all"
nodeAll.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/" + nodeAll.EntityData.SegmentPath
nodeAll.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodeAll.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodeAll.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodeAll.EntityData.Children = types.NewOrderedMap()
nodeAll.EntityData.Children.Append("vlan-priority-mask", types.YChild{"VlanPriorityMask", &nodeAll.VlanPriorityMask})
nodeAll.EntityData.Children.Append("ip-precedence", types.YChild{"IpPrecedence", &nodeAll.IpPrecedence})
nodeAll.EntityData.Children.Append("vlan-cos", types.YChild{"VlanCos", &nodeAll.VlanCos})
nodeAll.EntityData.Children.Append("ip-priority-mask", types.YChild{"IpPriorityMask", &nodeAll.IpPriorityMask})
nodeAll.EntityData.Children.Append("mpls-priority-mask", types.YChild{"MplsPriorityMask", &nodeAll.MplsPriorityMask})
nodeAll.EntityData.Children.Append("mpls-exp", types.YChild{"MplsExp", &nodeAll.MplsExp})
nodeAll.EntityData.Leafs = types.NewOrderedMap()
nodeAll.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", nodeAll.Enable})
nodeAll.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", nodeAll.Mode})
nodeAll.EntityData.YListKeys = []string {}
return &(nodeAll.EntityData)
}
// HardwareModuleEfd_NodeAll_VlanPriorityMask
// VLAN Priority Mask
// This type is a presence type.
type HardwareModuleEfd_NodeAll_VlanPriorityMask struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec0 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec1 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec2 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec3 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec4 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec5 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec6 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec7 interface{}
}
func (vlanPriorityMask *HardwareModuleEfd_NodeAll_VlanPriorityMask) GetEntityData() *types.CommonEntityData {
vlanPriorityMask.EntityData.YFilter = vlanPriorityMask.YFilter
vlanPriorityMask.EntityData.YangName = "vlan-priority-mask"
vlanPriorityMask.EntityData.BundleName = "cisco_ios_xr"
vlanPriorityMask.EntityData.ParentYangName = "node-all"
vlanPriorityMask.EntityData.SegmentPath = "vlan-priority-mask"
vlanPriorityMask.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/node-all/" + vlanPriorityMask.EntityData.SegmentPath
vlanPriorityMask.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vlanPriorityMask.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vlanPriorityMask.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vlanPriorityMask.EntityData.Children = types.NewOrderedMap()
vlanPriorityMask.EntityData.Leafs = types.NewOrderedMap()
vlanPriorityMask.EntityData.Leafs.Append("prec0", types.YLeaf{"Prec0", vlanPriorityMask.Prec0})
vlanPriorityMask.EntityData.Leafs.Append("prec1", types.YLeaf{"Prec1", vlanPriorityMask.Prec1})
vlanPriorityMask.EntityData.Leafs.Append("prec2", types.YLeaf{"Prec2", vlanPriorityMask.Prec2})
vlanPriorityMask.EntityData.Leafs.Append("prec3", types.YLeaf{"Prec3", vlanPriorityMask.Prec3})
vlanPriorityMask.EntityData.Leafs.Append("prec4", types.YLeaf{"Prec4", vlanPriorityMask.Prec4})
vlanPriorityMask.EntityData.Leafs.Append("prec5", types.YLeaf{"Prec5", vlanPriorityMask.Prec5})
vlanPriorityMask.EntityData.Leafs.Append("prec6", types.YLeaf{"Prec6", vlanPriorityMask.Prec6})
vlanPriorityMask.EntityData.Leafs.Append("prec7", types.YLeaf{"Prec7", vlanPriorityMask.Prec7})
vlanPriorityMask.EntityData.YListKeys = []string {}
return &(vlanPriorityMask.EntityData)
}
// HardwareModuleEfd_NodeAll_IpPrecedence
// EFD IP parameters
// This type is a presence type.
type HardwareModuleEfd_NodeAll_IpPrecedence struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// IP TOS precedence threshold. The type is interface{} with range: 0..7. This
// attribute is mandatory.
Precedence interface{}
// IP operation. The type is Asr9kEfdOperation. The default value is
// greater-than-or-equal.
Operation interface{}
}
func (ipPrecedence *HardwareModuleEfd_NodeAll_IpPrecedence) GetEntityData() *types.CommonEntityData {
ipPrecedence.EntityData.YFilter = ipPrecedence.YFilter
ipPrecedence.EntityData.YangName = "ip-precedence"
ipPrecedence.EntityData.BundleName = "cisco_ios_xr"
ipPrecedence.EntityData.ParentYangName = "node-all"
ipPrecedence.EntityData.SegmentPath = "ip-precedence"
ipPrecedence.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/node-all/" + ipPrecedence.EntityData.SegmentPath
ipPrecedence.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipPrecedence.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipPrecedence.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipPrecedence.EntityData.Children = types.NewOrderedMap()
ipPrecedence.EntityData.Leafs = types.NewOrderedMap()
ipPrecedence.EntityData.Leafs.Append("precedence", types.YLeaf{"Precedence", ipPrecedence.Precedence})
ipPrecedence.EntityData.Leafs.Append("operation", types.YLeaf{"Operation", ipPrecedence.Operation})
ipPrecedence.EntityData.YListKeys = []string {}
return &(ipPrecedence.EntityData)
}
// HardwareModuleEfd_NodeAll_VlanCos
// EFD VLAN parameters
// This type is a presence type.
type HardwareModuleEfd_NodeAll_VlanCos struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// VLAN COS threshold. The type is interface{} with range: 0..7. This
// attribute is mandatory.
Cos interface{}
// VLAN operation. The type is Asr9kEfdOperation. The default value is
// greater-than-or-equal.
Operation interface{}
}
func (vlanCos *HardwareModuleEfd_NodeAll_VlanCos) GetEntityData() *types.CommonEntityData {
vlanCos.EntityData.YFilter = vlanCos.YFilter
vlanCos.EntityData.YangName = "vlan-cos"
vlanCos.EntityData.BundleName = "cisco_ios_xr"
vlanCos.EntityData.ParentYangName = "node-all"
vlanCos.EntityData.SegmentPath = "vlan-cos"
vlanCos.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/node-all/" + vlanCos.EntityData.SegmentPath
vlanCos.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vlanCos.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vlanCos.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vlanCos.EntityData.Children = types.NewOrderedMap()
vlanCos.EntityData.Leafs = types.NewOrderedMap()
vlanCos.EntityData.Leafs.Append("cos", types.YLeaf{"Cos", vlanCos.Cos})
vlanCos.EntityData.Leafs.Append("operation", types.YLeaf{"Operation", vlanCos.Operation})
vlanCos.EntityData.YListKeys = []string {}
return &(vlanCos.EntityData)
}
// HardwareModuleEfd_NodeAll_IpPriorityMask
// IP Priority Mask
// This type is a presence type.
type HardwareModuleEfd_NodeAll_IpPriorityMask struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec0 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec1 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec2 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec3 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec4 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec5 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec6 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec7 interface{}
}
func (ipPriorityMask *HardwareModuleEfd_NodeAll_IpPriorityMask) GetEntityData() *types.CommonEntityData {
ipPriorityMask.EntityData.YFilter = ipPriorityMask.YFilter
ipPriorityMask.EntityData.YangName = "ip-priority-mask"
ipPriorityMask.EntityData.BundleName = "cisco_ios_xr"
ipPriorityMask.EntityData.ParentYangName = "node-all"
ipPriorityMask.EntityData.SegmentPath = "ip-priority-mask"
ipPriorityMask.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/node-all/" + ipPriorityMask.EntityData.SegmentPath
ipPriorityMask.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipPriorityMask.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipPriorityMask.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipPriorityMask.EntityData.Children = types.NewOrderedMap()
ipPriorityMask.EntityData.Leafs = types.NewOrderedMap()
ipPriorityMask.EntityData.Leafs.Append("prec0", types.YLeaf{"Prec0", ipPriorityMask.Prec0})
ipPriorityMask.EntityData.Leafs.Append("prec1", types.YLeaf{"Prec1", ipPriorityMask.Prec1})
ipPriorityMask.EntityData.Leafs.Append("prec2", types.YLeaf{"Prec2", ipPriorityMask.Prec2})
ipPriorityMask.EntityData.Leafs.Append("prec3", types.YLeaf{"Prec3", ipPriorityMask.Prec3})
ipPriorityMask.EntityData.Leafs.Append("prec4", types.YLeaf{"Prec4", ipPriorityMask.Prec4})
ipPriorityMask.EntityData.Leafs.Append("prec5", types.YLeaf{"Prec5", ipPriorityMask.Prec5})
ipPriorityMask.EntityData.Leafs.Append("prec6", types.YLeaf{"Prec6", ipPriorityMask.Prec6})
ipPriorityMask.EntityData.Leafs.Append("prec7", types.YLeaf{"Prec7", ipPriorityMask.Prec7})
ipPriorityMask.EntityData.YListKeys = []string {}
return &(ipPriorityMask.EntityData)
}
// HardwareModuleEfd_NodeAll_MplsPriorityMask
// MPLS Priority Mask
// This type is a presence type.
type HardwareModuleEfd_NodeAll_MplsPriorityMask struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec0 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec1 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec2 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec3 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec4 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec5 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec6 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec7 interface{}
}
func (mplsPriorityMask *HardwareModuleEfd_NodeAll_MplsPriorityMask) GetEntityData() *types.CommonEntityData {
mplsPriorityMask.EntityData.YFilter = mplsPriorityMask.YFilter
mplsPriorityMask.EntityData.YangName = "mpls-priority-mask"
mplsPriorityMask.EntityData.BundleName = "cisco_ios_xr"
mplsPriorityMask.EntityData.ParentYangName = "node-all"
mplsPriorityMask.EntityData.SegmentPath = "mpls-priority-mask"
mplsPriorityMask.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/node-all/" + mplsPriorityMask.EntityData.SegmentPath
mplsPriorityMask.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
mplsPriorityMask.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
mplsPriorityMask.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
mplsPriorityMask.EntityData.Children = types.NewOrderedMap()
mplsPriorityMask.EntityData.Leafs = types.NewOrderedMap()
mplsPriorityMask.EntityData.Leafs.Append("prec0", types.YLeaf{"Prec0", mplsPriorityMask.Prec0})
mplsPriorityMask.EntityData.Leafs.Append("prec1", types.YLeaf{"Prec1", mplsPriorityMask.Prec1})
mplsPriorityMask.EntityData.Leafs.Append("prec2", types.YLeaf{"Prec2", mplsPriorityMask.Prec2})
mplsPriorityMask.EntityData.Leafs.Append("prec3", types.YLeaf{"Prec3", mplsPriorityMask.Prec3})
mplsPriorityMask.EntityData.Leafs.Append("prec4", types.YLeaf{"Prec4", mplsPriorityMask.Prec4})
mplsPriorityMask.EntityData.Leafs.Append("prec5", types.YLeaf{"Prec5", mplsPriorityMask.Prec5})
mplsPriorityMask.EntityData.Leafs.Append("prec6", types.YLeaf{"Prec6", mplsPriorityMask.Prec6})
mplsPriorityMask.EntityData.Leafs.Append("prec7", types.YLeaf{"Prec7", mplsPriorityMask.Prec7})
mplsPriorityMask.EntityData.YListKeys = []string {}
return &(mplsPriorityMask.EntityData)
}
// HardwareModuleEfd_NodeAll_MplsExp
// EFD MPLS parameters
// This type is a presence type.
type HardwareModuleEfd_NodeAll_MplsExp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// MPLS EXP threshold. The type is interface{} with range: 0..7. This
// attribute is mandatory.
Exp interface{}
// MPLS operation. The type is Asr9kEfdOperation. The default value is
// greater-than-or-equal.
Operation interface{}
}
func (mplsExp *HardwareModuleEfd_NodeAll_MplsExp) GetEntityData() *types.CommonEntityData {
mplsExp.EntityData.YFilter = mplsExp.YFilter
mplsExp.EntityData.YangName = "mpls-exp"
mplsExp.EntityData.BundleName = "cisco_ios_xr"
mplsExp.EntityData.ParentYangName = "node-all"
mplsExp.EntityData.SegmentPath = "mpls-exp"
mplsExp.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/node-all/" + mplsExp.EntityData.SegmentPath
mplsExp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
mplsExp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
mplsExp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
mplsExp.EntityData.Children = types.NewOrderedMap()
mplsExp.EntityData.Leafs = types.NewOrderedMap()
mplsExp.EntityData.Leafs.Append("exp", types.YLeaf{"Exp", mplsExp.Exp})
mplsExp.EntityData.Leafs.Append("operation", types.YLeaf{"Operation", mplsExp.Operation})
mplsExp.EntityData.YListKeys = []string {}
return &(mplsExp.EntityData)
}
// HardwareModuleEfd_Nodes
// EFD applicable nodes
type HardwareModuleEfd_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// A node. The type is slice of HardwareModuleEfd_Nodes_Node.
Node []*HardwareModuleEfd_Nodes_Node
}
func (nodes *HardwareModuleEfd_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "hardware-module-efd"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// HardwareModuleEfd_Nodes_Node
// A node
type HardwareModuleEfd_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node Name. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Enable EFD for this node. The type is interface{}.
Enable interface{}
// EFD mode parameter. The type is Asr9kEfdMode.
Mode interface{}
// VLAN Priority Mask.
VlanPriorityMask HardwareModuleEfd_Nodes_Node_VlanPriorityMask
// EFD IP parameters.
IpPrecedence HardwareModuleEfd_Nodes_Node_IpPrecedence
// EFD VLAN parameters.
VlanCos HardwareModuleEfd_Nodes_Node_VlanCos
// IP Priority Mask.
IpPriorityMask HardwareModuleEfd_Nodes_Node_IpPriorityMask
// MPLS Priority Mask.
MplsPriorityMask HardwareModuleEfd_Nodes_Node_MplsPriorityMask
// EFD MPLS parameters.
MplsExp HardwareModuleEfd_Nodes_Node_MplsExp
}
func (node *HardwareModuleEfd_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Children.Append("vlan-priority-mask", types.YChild{"VlanPriorityMask", &node.VlanPriorityMask})
node.EntityData.Children.Append("ip-precedence", types.YChild{"IpPrecedence", &node.IpPrecedence})
node.EntityData.Children.Append("vlan-cos", types.YChild{"VlanCos", &node.VlanCos})
node.EntityData.Children.Append("ip-priority-mask", types.YChild{"IpPriorityMask", &node.IpPriorityMask})
node.EntityData.Children.Append("mpls-priority-mask", types.YChild{"MplsPriorityMask", &node.MplsPriorityMask})
node.EntityData.Children.Append("mpls-exp", types.YChild{"MplsExp", &node.MplsExp})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", node.Enable})
node.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", node.Mode})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// HardwareModuleEfd_Nodes_Node_VlanPriorityMask
// VLAN Priority Mask
// This type is a presence type.
type HardwareModuleEfd_Nodes_Node_VlanPriorityMask struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec0 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec1 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec2 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec3 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec4 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec5 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec6 interface{}
// Prec. The type is interface{} with range: 0..1. The default value is 0.
Prec7 interface{}
}
func (vlanPriorityMask *HardwareModuleEfd_Nodes_Node_VlanPriorityMask) GetEntityData() *types.CommonEntityData {
vlanPriorityMask.EntityData.YFilter = vlanPriorityMask.YFilter
vlanPriorityMask.EntityData.YangName = "vlan-priority-mask"
vlanPriorityMask.EntityData.BundleName = "cisco_ios_xr"
vlanPriorityMask.EntityData.ParentYangName = "node"
vlanPriorityMask.EntityData.SegmentPath = "vlan-priority-mask"
vlanPriorityMask.EntityData.AbsolutePath = "Cisco-IOS-XR-asr9k-prm-cfg:hardware-module-efd/nodes/node/" + vlanPriorityMask.EntityData.SegmentPath
vlanPriorityMask.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
vlanPriorityMask.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
vlanPriorityMask.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
vlanPriorityMask.EntityData.Children = types.NewOrderedMap()
vlanPriorityMask.EntityData.Leafs = types.NewOrderedMap()
vlanPriorityMask.EntityData.Leafs.Append("prec0", types.YLeaf{"Prec0", vlanPriorityMask.Prec0})
vlanPriorityMask.EntityData.Leafs.Append("prec1", types.YLeaf{"Prec1", vlanPriorityMask.Prec1})
vlanPriorityMask.EntityData.Leafs.Append("prec2", types.YLeaf{"Prec2", vlanPriorityMask.Prec2})
vlanPriorityMask.EntityData.Leafs.Append("prec3", types.YLeaf{"Prec3", vlanPriorityMask.Prec3})
vlanPriorityMask.EntityData.Leafs.Append("prec4", types.YLeaf{"Prec4", vlanPriorityMask.Prec4})
vlanPriorityMask.EntityData.Leafs.Append("prec5", types.YLeaf{"Prec5", vlanPriorityMask.Prec5})
vlanPriorityMask.EntityData.Leafs.Append("prec6", types.YLeaf{"Prec6", vlanPriorityMask.Prec6})
vlanPriorityMask.EntityData.Leafs.Append("prec7", types.YLeaf{"Prec7", vlanPriorityMask.Prec7})
vlanPriorityMask.EntityData.YListKeys = []string {}
return &(vlanPriorityMask.EntityData)
}
// HardwareModuleEfd_Nodes_Node_IpPrecedence
// EFD IP parameters
// This type is a presence type.
type HardwareModuleEfd_Nodes_Node_IpPrecedence struct {
EntityData types.CommonEntityData