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
/
traffmon_netflow_cfg.go
1012 lines (819 loc) · 48.8 KB
/
traffmon_netflow_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 traffmon-netflow package configuration.
//
// This module contains definitions
// for the following management objects:
// net-flow: NetFlow Configuration
//
// This YANG module augments the
// Cisco-IOS-XR-ifmgr-cfg
// module with configuration data.
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package traffmon_netflow_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 traffmon_netflow_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-traffmon-netflow-cfg net-flow}", reflect.TypeOf(NetFlow{}))
ydk.RegisterEntity("Cisco-IOS-XR-traffmon-netflow-cfg:net-flow", reflect.TypeOf(NetFlow{}))
}
// NfSamplingMode represents Nf sampling mode
type NfSamplingMode string
const (
// Random sampling
NfSamplingMode_random NfSamplingMode = "random"
)
// NfCacheAgingMode represents Nf cache aging mode
type NfCacheAgingMode string
const (
// Normal, caches age
NfCacheAgingMode_normal NfCacheAgingMode = "normal"
// Permanent, caches never age
NfCacheAgingMode_permanent NfCacheAgingMode = "permanent"
// Immediate, caches age immediately
NfCacheAgingMode_immediate NfCacheAgingMode = "immediate"
)
// NetFlow
// NetFlow Configuration
type NetFlow struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure a flow exporter map.
FlowExporterMaps NetFlow_FlowExporterMaps
// Flow sampler map configuration.
FlowSamplerMaps NetFlow_FlowSamplerMaps
// Flow monitor map configuration.
FlowMonitorMapTable NetFlow_FlowMonitorMapTable
// Configure a performance traffic flow monitor map.
FlowMonitorMapPerformanceTable NetFlow_FlowMonitorMapPerformanceTable
}
func (netFlow *NetFlow) GetEntityData() *types.CommonEntityData {
netFlow.EntityData.YFilter = netFlow.YFilter
netFlow.EntityData.YangName = "net-flow"
netFlow.EntityData.BundleName = "cisco_ios_xr"
netFlow.EntityData.ParentYangName = "Cisco-IOS-XR-traffmon-netflow-cfg"
netFlow.EntityData.SegmentPath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow"
netFlow.EntityData.AbsolutePath = netFlow.EntityData.SegmentPath
netFlow.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
netFlow.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
netFlow.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
netFlow.EntityData.Children = types.NewOrderedMap()
netFlow.EntityData.Children.Append("flow-exporter-maps", types.YChild{"FlowExporterMaps", &netFlow.FlowExporterMaps})
netFlow.EntityData.Children.Append("flow-sampler-maps", types.YChild{"FlowSamplerMaps", &netFlow.FlowSamplerMaps})
netFlow.EntityData.Children.Append("flow-monitor-map-table", types.YChild{"FlowMonitorMapTable", &netFlow.FlowMonitorMapTable})
netFlow.EntityData.Children.Append("flow-monitor-map-performance-table", types.YChild{"FlowMonitorMapPerformanceTable", &netFlow.FlowMonitorMapPerformanceTable})
netFlow.EntityData.Leafs = types.NewOrderedMap()
netFlow.EntityData.YListKeys = []string {}
return &(netFlow.EntityData)
}
// NetFlow_FlowExporterMaps
// Configure a flow exporter map
type NetFlow_FlowExporterMaps struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Exporter map name. The type is slice of
// NetFlow_FlowExporterMaps_FlowExporterMap.
FlowExporterMap []*NetFlow_FlowExporterMaps_FlowExporterMap
}
func (flowExporterMaps *NetFlow_FlowExporterMaps) GetEntityData() *types.CommonEntityData {
flowExporterMaps.EntityData.YFilter = flowExporterMaps.YFilter
flowExporterMaps.EntityData.YangName = "flow-exporter-maps"
flowExporterMaps.EntityData.BundleName = "cisco_ios_xr"
flowExporterMaps.EntityData.ParentYangName = "net-flow"
flowExporterMaps.EntityData.SegmentPath = "flow-exporter-maps"
flowExporterMaps.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/" + flowExporterMaps.EntityData.SegmentPath
flowExporterMaps.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowExporterMaps.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowExporterMaps.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowExporterMaps.EntityData.Children = types.NewOrderedMap()
flowExporterMaps.EntityData.Children.Append("flow-exporter-map", types.YChild{"FlowExporterMap", nil})
for i := range flowExporterMaps.FlowExporterMap {
flowExporterMaps.EntityData.Children.Append(types.GetSegmentPath(flowExporterMaps.FlowExporterMap[i]), types.YChild{"FlowExporterMap", flowExporterMaps.FlowExporterMap[i]})
}
flowExporterMaps.EntityData.Leafs = types.NewOrderedMap()
flowExporterMaps.EntityData.YListKeys = []string {}
return &(flowExporterMaps.EntityData)
}
// NetFlow_FlowExporterMaps_FlowExporterMap
// Exporter map name
type NetFlow_FlowExporterMaps_FlowExporterMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Exporter map name. The type is string with length:
// 1..32.
ExporterMapName interface{}
// Configure source interface for collector. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
SourceInterface interface{}
// Specify DSCP value for export packets. The type is interface{} with range:
// 0..63.
Dscp interface{}
// Configure Maximum Value for Export Packet size. The type is interface{}
// with range: 512..1468.
PacketLength interface{}
// Use UDP as transport protocol.
Udp NetFlow_FlowExporterMaps_FlowExporterMap_Udp
// Configure export destination (collector).
Destination NetFlow_FlowExporterMaps_FlowExporterMap_Destination
// Specify export version parameters.
Version NetFlow_FlowExporterMaps_FlowExporterMap_Version
}
func (flowExporterMap *NetFlow_FlowExporterMaps_FlowExporterMap) GetEntityData() *types.CommonEntityData {
flowExporterMap.EntityData.YFilter = flowExporterMap.YFilter
flowExporterMap.EntityData.YangName = "flow-exporter-map"
flowExporterMap.EntityData.BundleName = "cisco_ios_xr"
flowExporterMap.EntityData.ParentYangName = "flow-exporter-maps"
flowExporterMap.EntityData.SegmentPath = "flow-exporter-map" + types.AddKeyToken(flowExporterMap.ExporterMapName, "exporter-map-name")
flowExporterMap.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-exporter-maps/" + flowExporterMap.EntityData.SegmentPath
flowExporterMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowExporterMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowExporterMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowExporterMap.EntityData.Children = types.NewOrderedMap()
flowExporterMap.EntityData.Children.Append("udp", types.YChild{"Udp", &flowExporterMap.Udp})
flowExporterMap.EntityData.Children.Append("destination", types.YChild{"Destination", &flowExporterMap.Destination})
flowExporterMap.EntityData.Children.Append("version", types.YChild{"Version", &flowExporterMap.Version})
flowExporterMap.EntityData.Leafs = types.NewOrderedMap()
flowExporterMap.EntityData.Leafs.Append("exporter-map-name", types.YLeaf{"ExporterMapName", flowExporterMap.ExporterMapName})
flowExporterMap.EntityData.Leafs.Append("source-interface", types.YLeaf{"SourceInterface", flowExporterMap.SourceInterface})
flowExporterMap.EntityData.Leafs.Append("dscp", types.YLeaf{"Dscp", flowExporterMap.Dscp})
flowExporterMap.EntityData.Leafs.Append("packet-length", types.YLeaf{"PacketLength", flowExporterMap.PacketLength})
flowExporterMap.EntityData.YListKeys = []string {"ExporterMapName"}
return &(flowExporterMap.EntityData)
}
// NetFlow_FlowExporterMaps_FlowExporterMap_Udp
// Use UDP as transport protocol
type NetFlow_FlowExporterMaps_FlowExporterMap_Udp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure Destination UDP port. The type is interface{} with range:
// 1024..65535.
DestinationPort interface{}
}
func (udp *NetFlow_FlowExporterMaps_FlowExporterMap_Udp) GetEntityData() *types.CommonEntityData {
udp.EntityData.YFilter = udp.YFilter
udp.EntityData.YangName = "udp"
udp.EntityData.BundleName = "cisco_ios_xr"
udp.EntityData.ParentYangName = "flow-exporter-map"
udp.EntityData.SegmentPath = "udp"
udp.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-exporter-maps/flow-exporter-map/" + udp.EntityData.SegmentPath
udp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
udp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
udp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
udp.EntityData.Children = types.NewOrderedMap()
udp.EntityData.Leafs = types.NewOrderedMap()
udp.EntityData.Leafs.Append("destination-port", types.YLeaf{"DestinationPort", udp.DestinationPort})
udp.EntityData.YListKeys = []string {}
return &(udp.EntityData)
}
// NetFlow_FlowExporterMaps_FlowExporterMap_Destination
// Configure export destination (collector)
type NetFlow_FlowExporterMaps_FlowExporterMap_Destination struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Destination 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}]+)?.
IpAddress interface{}
// IPV6 address of the tunnel destination. The type is string.
Ipv6Address interface{}
// VRF name. The type is string.
VrfName interface{}
}
func (destination *NetFlow_FlowExporterMaps_FlowExporterMap_Destination) GetEntityData() *types.CommonEntityData {
destination.EntityData.YFilter = destination.YFilter
destination.EntityData.YangName = "destination"
destination.EntityData.BundleName = "cisco_ios_xr"
destination.EntityData.ParentYangName = "flow-exporter-map"
destination.EntityData.SegmentPath = "destination"
destination.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-exporter-maps/flow-exporter-map/" + destination.EntityData.SegmentPath
destination.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
destination.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
destination.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
destination.EntityData.Children = types.NewOrderedMap()
destination.EntityData.Leafs = types.NewOrderedMap()
destination.EntityData.Leafs.Append("ip-address", types.YLeaf{"IpAddress", destination.IpAddress})
destination.EntityData.Leafs.Append("ipv6-address", types.YLeaf{"Ipv6Address", destination.Ipv6Address})
destination.EntityData.Leafs.Append("vrf-name", types.YLeaf{"VrfName", destination.VrfName})
destination.EntityData.YListKeys = []string {}
return &(destination.EntityData)
}
// NetFlow_FlowExporterMaps_FlowExporterMap_Version
// Specify export version parameters
type NetFlow_FlowExporterMaps_FlowExporterMap_Version struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Export version number. The type is interface{} with range: 9..10.
VersionType interface{}
// Option template configuration options. The type is interface{} with range:
// 1..604800. Units are second. The default value is 1800.
OptionsTemplateTimeout interface{}
// Specify custom timeout for the template. The type is interface{} with
// range: 1..604800. Units are second. The default value is 1800.
CommonTemplateTimeout interface{}
// Data template configuration options. The type is interface{} with range:
// 1..604800. Units are second. The default value is 1800.
DataTemplateTimeout interface{}
// Specify options for exporting templates.
Options NetFlow_FlowExporterMaps_FlowExporterMap_Version_Options
}
func (version *NetFlow_FlowExporterMaps_FlowExporterMap_Version) GetEntityData() *types.CommonEntityData {
version.EntityData.YFilter = version.YFilter
version.EntityData.YangName = "version"
version.EntityData.BundleName = "cisco_ios_xr"
version.EntityData.ParentYangName = "flow-exporter-map"
version.EntityData.SegmentPath = "version"
version.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-exporter-maps/flow-exporter-map/" + version.EntityData.SegmentPath
version.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
version.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
version.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
version.EntityData.Children = types.NewOrderedMap()
version.EntityData.Children.Append("options", types.YChild{"Options", &version.Options})
version.EntityData.Leafs = types.NewOrderedMap()
version.EntityData.Leafs.Append("version-type", types.YLeaf{"VersionType", version.VersionType})
version.EntityData.Leafs.Append("options-template-timeout", types.YLeaf{"OptionsTemplateTimeout", version.OptionsTemplateTimeout})
version.EntityData.Leafs.Append("common-template-timeout", types.YLeaf{"CommonTemplateTimeout", version.CommonTemplateTimeout})
version.EntityData.Leafs.Append("data-template-timeout", types.YLeaf{"DataTemplateTimeout", version.DataTemplateTimeout})
version.EntityData.YListKeys = []string {}
return &(version.EntityData)
}
// NetFlow_FlowExporterMaps_FlowExporterMap_Version_Options
// Specify options for exporting templates
type NetFlow_FlowExporterMaps_FlowExporterMap_Version_Options struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify timeout for exporting interface table. The type is interface{} with
// range: 0..604800. Units are second.
InterfaceTableExportTimeout interface{}
// Specify timeout for exporting sampler table. The type is interface{} with
// range: 0..604800. Units are second.
SamplerTableExportTimeout interface{}
// Specify timeout for exporting vrf table. The type is interface{} with
// range: 0..604800. Units are second.
VrfTableExportTimeout interface{}
}
func (options *NetFlow_FlowExporterMaps_FlowExporterMap_Version_Options) GetEntityData() *types.CommonEntityData {
options.EntityData.YFilter = options.YFilter
options.EntityData.YangName = "options"
options.EntityData.BundleName = "cisco_ios_xr"
options.EntityData.ParentYangName = "version"
options.EntityData.SegmentPath = "options"
options.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-exporter-maps/flow-exporter-map/version/" + options.EntityData.SegmentPath
options.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
options.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
options.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
options.EntityData.Children = types.NewOrderedMap()
options.EntityData.Leafs = types.NewOrderedMap()
options.EntityData.Leafs.Append("interface-table-export-timeout", types.YLeaf{"InterfaceTableExportTimeout", options.InterfaceTableExportTimeout})
options.EntityData.Leafs.Append("sampler-table-export-timeout", types.YLeaf{"SamplerTableExportTimeout", options.SamplerTableExportTimeout})
options.EntityData.Leafs.Append("vrf-table-export-timeout", types.YLeaf{"VrfTableExportTimeout", options.VrfTableExportTimeout})
options.EntityData.YListKeys = []string {}
return &(options.EntityData)
}
// NetFlow_FlowSamplerMaps
// Flow sampler map configuration
type NetFlow_FlowSamplerMaps struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Sampler map name. The type is slice of
// NetFlow_FlowSamplerMaps_FlowSamplerMap.
FlowSamplerMap []*NetFlow_FlowSamplerMaps_FlowSamplerMap
}
func (flowSamplerMaps *NetFlow_FlowSamplerMaps) GetEntityData() *types.CommonEntityData {
flowSamplerMaps.EntityData.YFilter = flowSamplerMaps.YFilter
flowSamplerMaps.EntityData.YangName = "flow-sampler-maps"
flowSamplerMaps.EntityData.BundleName = "cisco_ios_xr"
flowSamplerMaps.EntityData.ParentYangName = "net-flow"
flowSamplerMaps.EntityData.SegmentPath = "flow-sampler-maps"
flowSamplerMaps.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/" + flowSamplerMaps.EntityData.SegmentPath
flowSamplerMaps.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowSamplerMaps.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowSamplerMaps.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowSamplerMaps.EntityData.Children = types.NewOrderedMap()
flowSamplerMaps.EntityData.Children.Append("flow-sampler-map", types.YChild{"FlowSamplerMap", nil})
for i := range flowSamplerMaps.FlowSamplerMap {
flowSamplerMaps.EntityData.Children.Append(types.GetSegmentPath(flowSamplerMaps.FlowSamplerMap[i]), types.YChild{"FlowSamplerMap", flowSamplerMaps.FlowSamplerMap[i]})
}
flowSamplerMaps.EntityData.Leafs = types.NewOrderedMap()
flowSamplerMaps.EntityData.YListKeys = []string {}
return &(flowSamplerMaps.EntityData)
}
// NetFlow_FlowSamplerMaps_FlowSamplerMap
// Sampler map name
type NetFlow_FlowSamplerMaps_FlowSamplerMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Sampler map name. The type is string with length:
// 1..32.
SamplerMapName interface{}
// Configure packet sampling mode.
SamplingModes NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes
}
func (flowSamplerMap *NetFlow_FlowSamplerMaps_FlowSamplerMap) GetEntityData() *types.CommonEntityData {
flowSamplerMap.EntityData.YFilter = flowSamplerMap.YFilter
flowSamplerMap.EntityData.YangName = "flow-sampler-map"
flowSamplerMap.EntityData.BundleName = "cisco_ios_xr"
flowSamplerMap.EntityData.ParentYangName = "flow-sampler-maps"
flowSamplerMap.EntityData.SegmentPath = "flow-sampler-map" + types.AddKeyToken(flowSamplerMap.SamplerMapName, "sampler-map-name")
flowSamplerMap.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-sampler-maps/" + flowSamplerMap.EntityData.SegmentPath
flowSamplerMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowSamplerMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowSamplerMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowSamplerMap.EntityData.Children = types.NewOrderedMap()
flowSamplerMap.EntityData.Children.Append("sampling-modes", types.YChild{"SamplingModes", &flowSamplerMap.SamplingModes})
flowSamplerMap.EntityData.Leafs = types.NewOrderedMap()
flowSamplerMap.EntityData.Leafs.Append("sampler-map-name", types.YLeaf{"SamplerMapName", flowSamplerMap.SamplerMapName})
flowSamplerMap.EntityData.YListKeys = []string {"SamplerMapName"}
return &(flowSamplerMap.EntityData)
}
// NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes
// Configure packet sampling mode
type NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure sampling mode. The type is slice of
// NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes_SamplingMode.
SamplingMode []*NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes_SamplingMode
}
func (samplingModes *NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes) GetEntityData() *types.CommonEntityData {
samplingModes.EntityData.YFilter = samplingModes.YFilter
samplingModes.EntityData.YangName = "sampling-modes"
samplingModes.EntityData.BundleName = "cisco_ios_xr"
samplingModes.EntityData.ParentYangName = "flow-sampler-map"
samplingModes.EntityData.SegmentPath = "sampling-modes"
samplingModes.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-sampler-maps/flow-sampler-map/" + samplingModes.EntityData.SegmentPath
samplingModes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
samplingModes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
samplingModes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
samplingModes.EntityData.Children = types.NewOrderedMap()
samplingModes.EntityData.Children.Append("sampling-mode", types.YChild{"SamplingMode", nil})
for i := range samplingModes.SamplingMode {
samplingModes.EntityData.Children.Append(types.GetSegmentPath(samplingModes.SamplingMode[i]), types.YChild{"SamplingMode", samplingModes.SamplingMode[i]})
}
samplingModes.EntityData.Leafs = types.NewOrderedMap()
samplingModes.EntityData.YListKeys = []string {}
return &(samplingModes.EntityData)
}
// NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes_SamplingMode
// Configure sampling mode
type NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes_SamplingMode struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Sampling mode. The type is NfSamplingMode.
Mode interface{}
// Number of packets to be sampled in the sampling interval. The type is
// interface{} with range: 0..4294967295. This attribute is mandatory.
SampleNumber interface{}
// Sampling interval in units of packets. The type is interface{} with range:
// 1..65535. This attribute is mandatory.
Interval interface{}
}
func (samplingMode *NetFlow_FlowSamplerMaps_FlowSamplerMap_SamplingModes_SamplingMode) GetEntityData() *types.CommonEntityData {
samplingMode.EntityData.YFilter = samplingMode.YFilter
samplingMode.EntityData.YangName = "sampling-mode"
samplingMode.EntityData.BundleName = "cisco_ios_xr"
samplingMode.EntityData.ParentYangName = "sampling-modes"
samplingMode.EntityData.SegmentPath = "sampling-mode" + types.AddKeyToken(samplingMode.Mode, "mode")
samplingMode.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-sampler-maps/flow-sampler-map/sampling-modes/" + samplingMode.EntityData.SegmentPath
samplingMode.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
samplingMode.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
samplingMode.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
samplingMode.EntityData.Children = types.NewOrderedMap()
samplingMode.EntityData.Leafs = types.NewOrderedMap()
samplingMode.EntityData.Leafs.Append("mode", types.YLeaf{"Mode", samplingMode.Mode})
samplingMode.EntityData.Leafs.Append("sample-number", types.YLeaf{"SampleNumber", samplingMode.SampleNumber})
samplingMode.EntityData.Leafs.Append("interval", types.YLeaf{"Interval", samplingMode.Interval})
samplingMode.EntityData.YListKeys = []string {"Mode"}
return &(samplingMode.EntityData)
}
// NetFlow_FlowMonitorMapTable
// Flow monitor map configuration
type NetFlow_FlowMonitorMapTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Monitor map name. The type is slice of
// NetFlow_FlowMonitorMapTable_FlowMonitorMap.
FlowMonitorMap []*NetFlow_FlowMonitorMapTable_FlowMonitorMap
}
func (flowMonitorMapTable *NetFlow_FlowMonitorMapTable) GetEntityData() *types.CommonEntityData {
flowMonitorMapTable.EntityData.YFilter = flowMonitorMapTable.YFilter
flowMonitorMapTable.EntityData.YangName = "flow-monitor-map-table"
flowMonitorMapTable.EntityData.BundleName = "cisco_ios_xr"
flowMonitorMapTable.EntityData.ParentYangName = "net-flow"
flowMonitorMapTable.EntityData.SegmentPath = "flow-monitor-map-table"
flowMonitorMapTable.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/" + flowMonitorMapTable.EntityData.SegmentPath
flowMonitorMapTable.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowMonitorMapTable.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowMonitorMapTable.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowMonitorMapTable.EntityData.Children = types.NewOrderedMap()
flowMonitorMapTable.EntityData.Children.Append("flow-monitor-map", types.YChild{"FlowMonitorMap", nil})
for i := range flowMonitorMapTable.FlowMonitorMap {
flowMonitorMapTable.EntityData.Children.Append(types.GetSegmentPath(flowMonitorMapTable.FlowMonitorMap[i]), types.YChild{"FlowMonitorMap", flowMonitorMapTable.FlowMonitorMap[i]})
}
flowMonitorMapTable.EntityData.Leafs = types.NewOrderedMap()
flowMonitorMapTable.EntityData.YListKeys = []string {}
return &(flowMonitorMapTable.EntityData)
}
// NetFlow_FlowMonitorMapTable_FlowMonitorMap
// Monitor map name
type NetFlow_FlowMonitorMapTable_FlowMonitorMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Monitor map name. The type is string with length:
// 1..32.
MonitorMapName interface{}
// Specify the update flow cache aging timeout. The type is interface{} with
// range: 1..604800. Units are second. The default value is 1800.
CacheUpdateAgingTimeout interface{}
// Specify the number of entries in the flow cache. The type is interface{}
// with range: 4096..1000000. The default value is 65535.
CacheEntries interface{}
// Specify the inactive flow cache aging timeout. The type is interface{} with
// range: 0..604800. Units are second. The default value is 15.
CacheInactiveAgingTimeout interface{}
// Specify the active flow cache aging timeout. The type is interface{} with
// range: 1..604800. Units are second. The default value is 1800.
CacheActiveAgingTimeout interface{}
// Specify the maximum number of entries to age each second. The type is
// interface{} with range: 1..1000000. The default value is 2000.
CacheTimeoutRateLimit interface{}
// Specify the flow cache aging mode. The type is NfCacheAgingMode. The
// default value is normal.
CacheAgingMode interface{}
// Specify an option for the flow cache.
Option NetFlow_FlowMonitorMapTable_FlowMonitorMap_Option
// Configure exporters to be used by the monitor-map.
Exporters NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters
// Specify a flow record format.
Record NetFlow_FlowMonitorMapTable_FlowMonitorMap_Record
}
func (flowMonitorMap *NetFlow_FlowMonitorMapTable_FlowMonitorMap) GetEntityData() *types.CommonEntityData {
flowMonitorMap.EntityData.YFilter = flowMonitorMap.YFilter
flowMonitorMap.EntityData.YangName = "flow-monitor-map"
flowMonitorMap.EntityData.BundleName = "cisco_ios_xr"
flowMonitorMap.EntityData.ParentYangName = "flow-monitor-map-table"
flowMonitorMap.EntityData.SegmentPath = "flow-monitor-map" + types.AddKeyToken(flowMonitorMap.MonitorMapName, "monitor-map-name")
flowMonitorMap.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-table/" + flowMonitorMap.EntityData.SegmentPath
flowMonitorMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowMonitorMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowMonitorMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowMonitorMap.EntityData.Children = types.NewOrderedMap()
flowMonitorMap.EntityData.Children.Append("option", types.YChild{"Option", &flowMonitorMap.Option})
flowMonitorMap.EntityData.Children.Append("exporters", types.YChild{"Exporters", &flowMonitorMap.Exporters})
flowMonitorMap.EntityData.Children.Append("record", types.YChild{"Record", &flowMonitorMap.Record})
flowMonitorMap.EntityData.Leafs = types.NewOrderedMap()
flowMonitorMap.EntityData.Leafs.Append("monitor-map-name", types.YLeaf{"MonitorMapName", flowMonitorMap.MonitorMapName})
flowMonitorMap.EntityData.Leafs.Append("cache-update-aging-timeout", types.YLeaf{"CacheUpdateAgingTimeout", flowMonitorMap.CacheUpdateAgingTimeout})
flowMonitorMap.EntityData.Leafs.Append("cache-entries", types.YLeaf{"CacheEntries", flowMonitorMap.CacheEntries})
flowMonitorMap.EntityData.Leafs.Append("cache-inactive-aging-timeout", types.YLeaf{"CacheInactiveAgingTimeout", flowMonitorMap.CacheInactiveAgingTimeout})
flowMonitorMap.EntityData.Leafs.Append("cache-active-aging-timeout", types.YLeaf{"CacheActiveAgingTimeout", flowMonitorMap.CacheActiveAgingTimeout})
flowMonitorMap.EntityData.Leafs.Append("cache-timeout-rate-limit", types.YLeaf{"CacheTimeoutRateLimit", flowMonitorMap.CacheTimeoutRateLimit})
flowMonitorMap.EntityData.Leafs.Append("cache-aging-mode", types.YLeaf{"CacheAgingMode", flowMonitorMap.CacheAgingMode})
flowMonitorMap.EntityData.YListKeys = []string {"MonitorMapName"}
return &(flowMonitorMap.EntityData)
}
// NetFlow_FlowMonitorMapTable_FlowMonitorMap_Option
// Specify an option for the flow cache
type NetFlow_FlowMonitorMapTable_FlowMonitorMap_Option struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify whether data should be filtered. The type is interface{}.
Filtered interface{}
// Specify whether to export physical ifh for bundle interface. The type is
// interface{}.
OutBundleMember interface{}
// Specify whether it exports the physical output interface. The type is
// interface{}.
OutPhysInt interface{}
// Specify if BGP Attributes AS_PATH STD_COMM should be exported. The type is
// interface{}.
BgpAttr interface{}
}
func (option *NetFlow_FlowMonitorMapTable_FlowMonitorMap_Option) GetEntityData() *types.CommonEntityData {
option.EntityData.YFilter = option.YFilter
option.EntityData.YangName = "option"
option.EntityData.BundleName = "cisco_ios_xr"
option.EntityData.ParentYangName = "flow-monitor-map"
option.EntityData.SegmentPath = "option"
option.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-table/flow-monitor-map/" + option.EntityData.SegmentPath
option.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
option.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
option.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
option.EntityData.Children = types.NewOrderedMap()
option.EntityData.Leafs = types.NewOrderedMap()
option.EntityData.Leafs.Append("filtered", types.YLeaf{"Filtered", option.Filtered})
option.EntityData.Leafs.Append("out-bundle-member", types.YLeaf{"OutBundleMember", option.OutBundleMember})
option.EntityData.Leafs.Append("out-phys-int", types.YLeaf{"OutPhysInt", option.OutPhysInt})
option.EntityData.Leafs.Append("bgp-attr", types.YLeaf{"BgpAttr", option.BgpAttr})
option.EntityData.YListKeys = []string {}
return &(option.EntityData)
}
// NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters
// Configure exporters to be used by the
// monitor-map
type NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure exporter to be used by the monitor-map. The type is slice of
// NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters_Exporter.
Exporter []*NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters_Exporter
}
func (exporters *NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters) GetEntityData() *types.CommonEntityData {
exporters.EntityData.YFilter = exporters.YFilter
exporters.EntityData.YangName = "exporters"
exporters.EntityData.BundleName = "cisco_ios_xr"
exporters.EntityData.ParentYangName = "flow-monitor-map"
exporters.EntityData.SegmentPath = "exporters"
exporters.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-table/flow-monitor-map/" + exporters.EntityData.SegmentPath
exporters.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exporters.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exporters.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exporters.EntityData.Children = types.NewOrderedMap()
exporters.EntityData.Children.Append("exporter", types.YChild{"Exporter", nil})
for i := range exporters.Exporter {
exporters.EntityData.Children.Append(types.GetSegmentPath(exporters.Exporter[i]), types.YChild{"Exporter", exporters.Exporter[i]})
}
exporters.EntityData.Leafs = types.NewOrderedMap()
exporters.EntityData.YListKeys = []string {}
return &(exporters.EntityData)
}
// NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters_Exporter
// Configure exporter to be used by the
// monitor-map
type NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters_Exporter struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Exporter name. The type is string with length:
// 1..32.
ExporterName interface{}
}
func (exporter *NetFlow_FlowMonitorMapTable_FlowMonitorMap_Exporters_Exporter) GetEntityData() *types.CommonEntityData {
exporter.EntityData.YFilter = exporter.YFilter
exporter.EntityData.YangName = "exporter"
exporter.EntityData.BundleName = "cisco_ios_xr"
exporter.EntityData.ParentYangName = "exporters"
exporter.EntityData.SegmentPath = "exporter" + types.AddKeyToken(exporter.ExporterName, "exporter-name")
exporter.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-table/flow-monitor-map/exporters/" + exporter.EntityData.SegmentPath
exporter.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exporter.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exporter.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exporter.EntityData.Children = types.NewOrderedMap()
exporter.EntityData.Leafs = types.NewOrderedMap()
exporter.EntityData.Leafs.Append("exporter-name", types.YLeaf{"ExporterName", exporter.ExporterName})
exporter.EntityData.YListKeys = []string {"ExporterName"}
return &(exporter.EntityData)
}
// NetFlow_FlowMonitorMapTable_FlowMonitorMap_Record
// Specify a flow record format
// This type is a presence type.
type NetFlow_FlowMonitorMapTable_FlowMonitorMap_Record struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Flow record format (Either 'ipv4-raw' ,'ipv4-peer-as', 'ipv6', 'mpls',
// 'mpls-ipv4', 'mpls-ipv6', 'mpls-ipv4-ipv6', 'ipv6-peer-as'). The type is
// string with length: 1..32. This attribute is mandatory.
RecordName interface{}
// Enter label value for MPLS record type. The type is interface{} with range:
// 1..6.
Label interface{}
}
func (record *NetFlow_FlowMonitorMapTable_FlowMonitorMap_Record) GetEntityData() *types.CommonEntityData {
record.EntityData.YFilter = record.YFilter
record.EntityData.YangName = "record"
record.EntityData.BundleName = "cisco_ios_xr"
record.EntityData.ParentYangName = "flow-monitor-map"
record.EntityData.SegmentPath = "record"
record.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-table/flow-monitor-map/" + record.EntityData.SegmentPath
record.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
record.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
record.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
record.EntityData.Children = types.NewOrderedMap()
record.EntityData.Leafs = types.NewOrderedMap()
record.EntityData.Leafs.Append("record-name", types.YLeaf{"RecordName", record.RecordName})
record.EntityData.Leafs.Append("label", types.YLeaf{"Label", record.Label})
record.EntityData.YListKeys = []string {}
return &(record.EntityData)
}
// NetFlow_FlowMonitorMapPerformanceTable
// Configure a performance traffic flow monitor map
type NetFlow_FlowMonitorMapPerformanceTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Monitor map name. The type is slice of
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap.
FlowMonitorMap []*NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap
}
func (flowMonitorMapPerformanceTable *NetFlow_FlowMonitorMapPerformanceTable) GetEntityData() *types.CommonEntityData {
flowMonitorMapPerformanceTable.EntityData.YFilter = flowMonitorMapPerformanceTable.YFilter
flowMonitorMapPerformanceTable.EntityData.YangName = "flow-monitor-map-performance-table"
flowMonitorMapPerformanceTable.EntityData.BundleName = "cisco_ios_xr"
flowMonitorMapPerformanceTable.EntityData.ParentYangName = "net-flow"
flowMonitorMapPerformanceTable.EntityData.SegmentPath = "flow-monitor-map-performance-table"
flowMonitorMapPerformanceTable.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/" + flowMonitorMapPerformanceTable.EntityData.SegmentPath
flowMonitorMapPerformanceTable.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowMonitorMapPerformanceTable.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowMonitorMapPerformanceTable.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowMonitorMapPerformanceTable.EntityData.Children = types.NewOrderedMap()
flowMonitorMapPerformanceTable.EntityData.Children.Append("flow-monitor-map", types.YChild{"FlowMonitorMap", nil})
for i := range flowMonitorMapPerformanceTable.FlowMonitorMap {
flowMonitorMapPerformanceTable.EntityData.Children.Append(types.GetSegmentPath(flowMonitorMapPerformanceTable.FlowMonitorMap[i]), types.YChild{"FlowMonitorMap", flowMonitorMapPerformanceTable.FlowMonitorMap[i]})
}
flowMonitorMapPerformanceTable.EntityData.Leafs = types.NewOrderedMap()
flowMonitorMapPerformanceTable.EntityData.YListKeys = []string {}
return &(flowMonitorMapPerformanceTable.EntityData)
}
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap
// Monitor map name
type NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Monitor map name. The type is string with length:
// 1..32.
MonitorMapName interface{}
// Specify the update flow cache aging timeout. The type is interface{} with
// range: 1..604800. Units are second. The default value is 1800.
CacheUpdateAgingTimeout interface{}
// Specify the number of entries in the flow cache. The type is interface{}
// with range: 4096..1000000. The default value is 65535.
CacheEntries interface{}
// Specify the inactive flow cache aging timeout. The type is interface{} with
// range: 0..604800. Units are second. The default value is 15.
CacheInactiveAgingTimeout interface{}
// Specify the active flow cache aging timeout. The type is interface{} with
// range: 1..604800. Units are second. The default value is 1800.
CacheActiveAgingTimeout interface{}
// Specify the maximum number of entries to age each second. The type is
// interface{} with range: 1..1000000. The default value is 2000.
CacheTimeoutRateLimit interface{}
// Specify the flow cache aging mode. The type is NfCacheAgingMode. The
// default value is normal.
CacheAgingMode interface{}
// Specify an option for the flow cache.
Option NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Option
// Configure exporters to be used by the monitor-map.
Exporters NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters
// Specify a flow record format.
Record NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Record
}
func (flowMonitorMap *NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap) GetEntityData() *types.CommonEntityData {
flowMonitorMap.EntityData.YFilter = flowMonitorMap.YFilter
flowMonitorMap.EntityData.YangName = "flow-monitor-map"
flowMonitorMap.EntityData.BundleName = "cisco_ios_xr"
flowMonitorMap.EntityData.ParentYangName = "flow-monitor-map-performance-table"
flowMonitorMap.EntityData.SegmentPath = "flow-monitor-map" + types.AddKeyToken(flowMonitorMap.MonitorMapName, "monitor-map-name")
flowMonitorMap.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-performance-table/" + flowMonitorMap.EntityData.SegmentPath
flowMonitorMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
flowMonitorMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
flowMonitorMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
flowMonitorMap.EntityData.Children = types.NewOrderedMap()
flowMonitorMap.EntityData.Children.Append("option", types.YChild{"Option", &flowMonitorMap.Option})
flowMonitorMap.EntityData.Children.Append("exporters", types.YChild{"Exporters", &flowMonitorMap.Exporters})
flowMonitorMap.EntityData.Children.Append("record", types.YChild{"Record", &flowMonitorMap.Record})
flowMonitorMap.EntityData.Leafs = types.NewOrderedMap()
flowMonitorMap.EntityData.Leafs.Append("monitor-map-name", types.YLeaf{"MonitorMapName", flowMonitorMap.MonitorMapName})
flowMonitorMap.EntityData.Leafs.Append("cache-update-aging-timeout", types.YLeaf{"CacheUpdateAgingTimeout", flowMonitorMap.CacheUpdateAgingTimeout})
flowMonitorMap.EntityData.Leafs.Append("cache-entries", types.YLeaf{"CacheEntries", flowMonitorMap.CacheEntries})
flowMonitorMap.EntityData.Leafs.Append("cache-inactive-aging-timeout", types.YLeaf{"CacheInactiveAgingTimeout", flowMonitorMap.CacheInactiveAgingTimeout})
flowMonitorMap.EntityData.Leafs.Append("cache-active-aging-timeout", types.YLeaf{"CacheActiveAgingTimeout", flowMonitorMap.CacheActiveAgingTimeout})
flowMonitorMap.EntityData.Leafs.Append("cache-timeout-rate-limit", types.YLeaf{"CacheTimeoutRateLimit", flowMonitorMap.CacheTimeoutRateLimit})
flowMonitorMap.EntityData.Leafs.Append("cache-aging-mode", types.YLeaf{"CacheAgingMode", flowMonitorMap.CacheAgingMode})
flowMonitorMap.EntityData.YListKeys = []string {"MonitorMapName"}
return &(flowMonitorMap.EntityData)
}
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Option
// Specify an option for the flow cache
type NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Option struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Specify whether data should be filtered. The type is interface{}.
Filtered interface{}
// Specify whether to export physical ifh for bundle interface. The type is
// interface{}.
OutBundleMember interface{}
// Specify whether it exports the physical output interface. The type is
// interface{}.
OutPhysInt interface{}
// Specify if BGP Attributes AS_PATH STD_COMM should be exported. The type is
// interface{}.
BgpAttr interface{}
}
func (option *NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Option) GetEntityData() *types.CommonEntityData {
option.EntityData.YFilter = option.YFilter
option.EntityData.YangName = "option"
option.EntityData.BundleName = "cisco_ios_xr"
option.EntityData.ParentYangName = "flow-monitor-map"
option.EntityData.SegmentPath = "option"
option.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-performance-table/flow-monitor-map/" + option.EntityData.SegmentPath
option.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
option.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
option.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
option.EntityData.Children = types.NewOrderedMap()
option.EntityData.Leafs = types.NewOrderedMap()
option.EntityData.Leafs.Append("filtered", types.YLeaf{"Filtered", option.Filtered})
option.EntityData.Leafs.Append("out-bundle-member", types.YLeaf{"OutBundleMember", option.OutBundleMember})
option.EntityData.Leafs.Append("out-phys-int", types.YLeaf{"OutPhysInt", option.OutPhysInt})
option.EntityData.Leafs.Append("bgp-attr", types.YLeaf{"BgpAttr", option.BgpAttr})
option.EntityData.YListKeys = []string {}
return &(option.EntityData)
}
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters
// Configure exporters to be used by the
// monitor-map
type NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure exporter to be used by the monitor-map. The type is slice of
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters_Exporter.
Exporter []*NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters_Exporter
}
func (exporters *NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters) GetEntityData() *types.CommonEntityData {
exporters.EntityData.YFilter = exporters.YFilter
exporters.EntityData.YangName = "exporters"
exporters.EntityData.BundleName = "cisco_ios_xr"
exporters.EntityData.ParentYangName = "flow-monitor-map"
exporters.EntityData.SegmentPath = "exporters"
exporters.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-performance-table/flow-monitor-map/" + exporters.EntityData.SegmentPath
exporters.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exporters.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exporters.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exporters.EntityData.Children = types.NewOrderedMap()
exporters.EntityData.Children.Append("exporter", types.YChild{"Exporter", nil})
for i := range exporters.Exporter {
exporters.EntityData.Children.Append(types.GetSegmentPath(exporters.Exporter[i]), types.YChild{"Exporter", exporters.Exporter[i]})
}
exporters.EntityData.Leafs = types.NewOrderedMap()
exporters.EntityData.YListKeys = []string {}
return &(exporters.EntityData)
}
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters_Exporter
// Configure exporter to be used by the
// monitor-map
type NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters_Exporter struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Exporter name. The type is string with length:
// 1..32.
ExporterName interface{}
}
func (exporter *NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Exporters_Exporter) GetEntityData() *types.CommonEntityData {
exporter.EntityData.YFilter = exporter.YFilter
exporter.EntityData.YangName = "exporter"
exporter.EntityData.BundleName = "cisco_ios_xr"
exporter.EntityData.ParentYangName = "exporters"
exporter.EntityData.SegmentPath = "exporter" + types.AddKeyToken(exporter.ExporterName, "exporter-name")
exporter.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-performance-table/flow-monitor-map/exporters/" + exporter.EntityData.SegmentPath
exporter.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exporter.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exporter.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exporter.EntityData.Children = types.NewOrderedMap()
exporter.EntityData.Leafs = types.NewOrderedMap()
exporter.EntityData.Leafs.Append("exporter-name", types.YLeaf{"ExporterName", exporter.ExporterName})
exporter.EntityData.YListKeys = []string {"ExporterName"}
return &(exporter.EntityData)
}
// NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Record
// Specify a flow record format
// This type is a presence type.
type NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Record struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// Flow record format (Either 'ipv4-raw' ,'ipv4-peer-as', 'ipv6', 'mpls',
// 'mpls-ipv4', 'mpls-ipv6', 'mpls-ipv4-ipv6', 'ipv6-peer-as'). The type is
// string with length: 1..32. This attribute is mandatory.
RecordName interface{}
// Enter label value for MPLS record type. The type is interface{} with range:
// 1..6.
Label interface{}
}
func (record *NetFlow_FlowMonitorMapPerformanceTable_FlowMonitorMap_Record) GetEntityData() *types.CommonEntityData {
record.EntityData.YFilter = record.YFilter
record.EntityData.YangName = "record"
record.EntityData.BundleName = "cisco_ios_xr"
record.EntityData.ParentYangName = "flow-monitor-map"
record.EntityData.SegmentPath = "record"
record.EntityData.AbsolutePath = "Cisco-IOS-XR-traffmon-netflow-cfg:net-flow/flow-monitor-map-performance-table/flow-monitor-map/" + record.EntityData.SegmentPath
record.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
record.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()