This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
infra_syslog_cfg.go
4044 lines (3209 loc) · 181 KB
/
infra_syslog_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 infra-syslog package configuration.
//
// This module contains definitions
// for the following management objects:
// syslog-service: Syslog Timestamp Services
// syslog: syslog
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package infra_syslog_cfg
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"github.com/CiscoDevNet/ydk-go/ydk/types/yfilter"
"github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xr"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package infra_syslog_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-infra-syslog-cfg syslog-service}", reflect.TypeOf(SyslogService{}))
ydk.RegisterEntity("Cisco-IOS-XR-infra-syslog-cfg:syslog-service", reflect.TypeOf(SyslogService{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-infra-syslog-cfg syslog}", reflect.TypeOf(Syslog{}))
ydk.RegisterEntity("Cisco-IOS-XR-infra-syslog-cfg:syslog", reflect.TypeOf(Syslog{}))
}
// LogSeverity represents Log severity
type LogSeverity string
const (
// System is unusable (severity=0)
LogSeverity_emergency LogSeverity = "emergency"
// Immediate action needed (severity=1)
LogSeverity_alert LogSeverity = "alert"
// Critical conditions (severity=2)
LogSeverity_critical LogSeverity = "critical"
// Error conditions (severity=3)
LogSeverity_error_ LogSeverity = "error"
// Warning conditions (severity=4)
LogSeverity_warning LogSeverity = "warning"
// Normal but significant conditions (severity=5)
LogSeverity_notice LogSeverity = "notice"
// Informational messages (severity=6)
LogSeverity_informational LogSeverity = "informational"
// Debugging messages (severity=7)
LogSeverity_debug LogSeverity = "debug"
)
// Facility represents Facility
type Facility string
const (
// Kernel Facility
Facility_kern Facility = "kern"
// User Facility
Facility_user Facility = "user"
// Mail Facility
Facility_mail Facility = "mail"
// Daemon Facility
Facility_daemon Facility = "daemon"
// Auth Facility
Facility_auth Facility = "auth"
// Syslog Facility
Facility_syslog Facility = "syslog"
// Lpr Facility
Facility_lpr Facility = "lpr"
// News Facility
Facility_news Facility = "news"
// Uucp Facility
Facility_uucp Facility = "uucp"
// Cron Facility
Facility_cron Facility = "cron"
// Authpriv Facility
Facility_authpriv Facility = "authpriv"
// Ftp Facility
Facility_ftp Facility = "ftp"
// Local0 Facility
Facility_local0 Facility = "local0"
// Local1 Facility
Facility_local1 Facility = "local1"
// Local2 Facility
Facility_local2 Facility = "local2"
// Local3 Facility
Facility_local3 Facility = "local3"
// Local4 Facility
Facility_local4 Facility = "local4"
// Local5 Facility
Facility_local5 Facility = "local5"
// Local6 Facility
Facility_local6 Facility = "local6"
// Local7 Facility
Facility_local7 Facility = "local7"
// System9 Facility
Facility_sys9 Facility = "sys9"
// System10 Facility
Facility_sys10 Facility = "sys10"
// System11 Facility
Facility_sys11 Facility = "sys11"
// System12 Facility
Facility_sys12 Facility = "sys12"
// System13 Facility
Facility_sys13 Facility = "sys13"
// System14 Facility
Facility_sys14 Facility = "sys14"
)
// LogCollectFrequency represents Log collect frequency
type LogCollectFrequency string
const (
// Collect log in files on a weekly basis
LogCollectFrequency_weekly LogCollectFrequency = "weekly"
// Collect log in files on a daily basis
LogCollectFrequency_daily LogCollectFrequency = "daily"
)
// LoggingPrecedenceValue represents Logging precedence value
type LoggingPrecedenceValue string
const (
// Applicable to precedence: value 0
LoggingPrecedenceValue_routine LoggingPrecedenceValue = "routine"
// Applicable to precedence: value 1
LoggingPrecedenceValue_priority LoggingPrecedenceValue = "priority"
// Applicable to precedence: value 2
LoggingPrecedenceValue_immediate LoggingPrecedenceValue = "immediate"
// Applicable to precedence: value 3
LoggingPrecedenceValue_flash LoggingPrecedenceValue = "flash"
// Applicable to precedence: value 4
LoggingPrecedenceValue_flash_override LoggingPrecedenceValue = "flash-override"
// Applicable to precedence: value 5
LoggingPrecedenceValue_critical LoggingPrecedenceValue = "critical"
// Applicable to precedence: value 6
LoggingPrecedenceValue_internet LoggingPrecedenceValue = "internet"
// Applicable to precedence: value 7
LoggingPrecedenceValue_network LoggingPrecedenceValue = "network"
)
// LoggingTos represents Logging tos
type LoggingTos string
const (
// Logging TOS type precedence
LoggingTos_precedence LoggingTos = "precedence"
// Logging TOS type DSCP
LoggingTos_dscp LoggingTos = "dscp"
)
// LoggingLevels represents Logging levels
type LoggingLevels string
const (
// Emergency Level Msg
LoggingLevels_emergency LoggingLevels = "emergency"
// Alert Level Msg
LoggingLevels_alert LoggingLevels = "alert"
// Critical Level Msg
LoggingLevels_critical LoggingLevels = "critical"
// Error Level Msg
LoggingLevels_error_ LoggingLevels = "error"
// Warning Level Msg
LoggingLevels_warning LoggingLevels = "warning"
// Notification Level Msg
LoggingLevels_notice LoggingLevels = "notice"
// Informational Level Msg
LoggingLevels_info LoggingLevels = "info"
// Debugging Level Msg
LoggingLevels_debug LoggingLevels = "debug"
// Disable logging
LoggingLevels_disable LoggingLevels = "disable"
)
// LoggingPrecedence represents Logging precedence
type LoggingPrecedence string
const (
// Logging TOS type precedence
LoggingPrecedence_precedence LoggingPrecedence = "precedence"
)
// LoggingDscpValue represents Logging dscp value
type LoggingDscpValue string
const (
// Applicable to DSCP: bits 000000
LoggingDscpValue_default_ LoggingDscpValue = "default"
// Applicable to DSCP: bits 001010
LoggingDscpValue_af11 LoggingDscpValue = "af11"
// Applicable to DSCP: bits 001100
LoggingDscpValue_af12 LoggingDscpValue = "af12"
// Applicable to DSCP: bits 001110
LoggingDscpValue_af13 LoggingDscpValue = "af13"
// Applicable to DSCP: bits 010010
LoggingDscpValue_af21 LoggingDscpValue = "af21"
// Applicable to DSCP: bits 010100
LoggingDscpValue_af22 LoggingDscpValue = "af22"
// Applicable to DSCP: bits 010110
LoggingDscpValue_af23 LoggingDscpValue = "af23"
// Applicable to DSCP: bits 011010
LoggingDscpValue_af31 LoggingDscpValue = "af31"
// Applicable to DSCP: bits 011100
LoggingDscpValue_af32 LoggingDscpValue = "af32"
// Applicable to DSCP: bits 011110
LoggingDscpValue_af33 LoggingDscpValue = "af33"
// Applicable to DSCP: bits 100010
LoggingDscpValue_af41 LoggingDscpValue = "af41"
// Applicable to DSCP: bits 100100
LoggingDscpValue_af42 LoggingDscpValue = "af42"
// Applicable to DSCP: bits 100110
LoggingDscpValue_af43 LoggingDscpValue = "af43"
// Applicable to DSCP: bits 101110
LoggingDscpValue_ef LoggingDscpValue = "ef"
// Applicable to DSCP: bits 001000
LoggingDscpValue_cs1 LoggingDscpValue = "cs1"
// Applicable to DSCP: bits 010000
LoggingDscpValue_cs2 LoggingDscpValue = "cs2"
// Applicable to DSCP: bits 011000
LoggingDscpValue_cs3 LoggingDscpValue = "cs3"
// Applicable to DSCP: bits 100000
LoggingDscpValue_cs4 LoggingDscpValue = "cs4"
// Applicable to DSCP: bits 101000
LoggingDscpValue_cs5 LoggingDscpValue = "cs5"
// Applicable to DSCP: bits 110000
LoggingDscpValue_cs6 LoggingDscpValue = "cs6"
// Applicable to DSCP: bits 111000
LoggingDscpValue_cs7 LoggingDscpValue = "cs7"
)
// LogMessageSeverity represents Log message severity
type LogMessageSeverity string
const (
// System is unusable (severity=0)
LogMessageSeverity_emergency LogMessageSeverity = "emergency"
// Immediate action needed (severity=1)
LogMessageSeverity_alert LogMessageSeverity = "alert"
// Critical conditions (severity=2)
LogMessageSeverity_critical LogMessageSeverity = "critical"
// Error conditions (severity=3)
LogMessageSeverity_error_ LogMessageSeverity = "error"
// Warning conditions (severity=4)
LogMessageSeverity_warning LogMessageSeverity = "warning"
// Normal but significant conditions (severity=5)
LogMessageSeverity_notice LogMessageSeverity = "notice"
// Informational messages (severity=6)
LogMessageSeverity_informational LogMessageSeverity = "informational"
// Debugging messages (severity=7)
LogMessageSeverity_debug LogMessageSeverity = "debug"
)
// TimeInfo represents Time info
type TimeInfo string
const (
// Exclude
TimeInfo_disable TimeInfo = "disable"
// Include
TimeInfo_enable TimeInfo = "enable"
)
// LoggingDscp represents Logging dscp
type LoggingDscp string
const (
// Logging TOS type DSCP
LoggingDscp_dscp LoggingDscp = "dscp"
)
// SyslogService
// Syslog Timestamp Services
type SyslogService struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Timestamp debug/log messages configuration.
Timestamps SyslogService_Timestamps
}
func (syslogService *SyslogService) GetEntityData() *types.CommonEntityData {
syslogService.EntityData.YFilter = syslogService.YFilter
syslogService.EntityData.YangName = "syslog-service"
syslogService.EntityData.BundleName = "cisco_ios_xr"
syslogService.EntityData.ParentYangName = "Cisco-IOS-XR-infra-syslog-cfg"
syslogService.EntityData.SegmentPath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service"
syslogService.EntityData.AbsolutePath = syslogService.EntityData.SegmentPath
syslogService.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
syslogService.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
syslogService.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
syslogService.EntityData.Children = types.NewOrderedMap()
syslogService.EntityData.Children.Append("timestamps", types.YChild{"Timestamps", &syslogService.Timestamps})
syslogService.EntityData.Leafs = types.NewOrderedMap()
syslogService.EntityData.YListKeys = []string {}
return &(syslogService.EntityData)
}
// SyslogService_Timestamps
// Timestamp debug/log messages configuration
type SyslogService_Timestamps struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enable timestamp debug/log messages. The type is interface{}.
Enable interface{}
// Timestamp log messages.
Log SyslogService_Timestamps_Log
// Timestamp debug messages.
Debug SyslogService_Timestamps_Debug
}
func (timestamps *SyslogService_Timestamps) GetEntityData() *types.CommonEntityData {
timestamps.EntityData.YFilter = timestamps.YFilter
timestamps.EntityData.YangName = "timestamps"
timestamps.EntityData.BundleName = "cisco_ios_xr"
timestamps.EntityData.ParentYangName = "syslog-service"
timestamps.EntityData.SegmentPath = "timestamps"
timestamps.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/" + timestamps.EntityData.SegmentPath
timestamps.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
timestamps.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
timestamps.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
timestamps.EntityData.Children = types.NewOrderedMap()
timestamps.EntityData.Children.Append("log", types.YChild{"Log", ×tamps.Log})
timestamps.EntityData.Children.Append("debug", types.YChild{"Debug", ×tamps.Debug})
timestamps.EntityData.Leafs = types.NewOrderedMap()
timestamps.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", timestamps.Enable})
timestamps.EntityData.YListKeys = []string {}
return &(timestamps.EntityData)
}
// SyslogService_Timestamps_Log
// Timestamp log messages
type SyslogService_Timestamps_Log struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Timestamp with systime uptime. The type is interface{}.
LogUptime interface{}
// Disable timestamp log messages. The type is interface{}.
LogTimestampDisable interface{}
// Timestamp with date and time.
LogDatetime SyslogService_Timestamps_Log_LogDatetime
}
func (log *SyslogService_Timestamps_Log) GetEntityData() *types.CommonEntityData {
log.EntityData.YFilter = log.YFilter
log.EntityData.YangName = "log"
log.EntityData.BundleName = "cisco_ios_xr"
log.EntityData.ParentYangName = "timestamps"
log.EntityData.SegmentPath = "log"
log.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/timestamps/" + log.EntityData.SegmentPath
log.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
log.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
log.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
log.EntityData.Children = types.NewOrderedMap()
log.EntityData.Children.Append("log-datetime", types.YChild{"LogDatetime", &log.LogDatetime})
log.EntityData.Leafs = types.NewOrderedMap()
log.EntityData.Leafs.Append("log-uptime", types.YLeaf{"LogUptime", log.LogUptime})
log.EntityData.Leafs.Append("log-timestamp-disable", types.YLeaf{"LogTimestampDisable", log.LogTimestampDisable})
log.EntityData.YListKeys = []string {}
return &(log.EntityData)
}
// SyslogService_Timestamps_Log_LogDatetime
// Timestamp with date and time
type SyslogService_Timestamps_Log_LogDatetime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Set timestamp for log message.
LogDatetimeValue SyslogService_Timestamps_Log_LogDatetime_LogDatetimeValue
}
func (logDatetime *SyslogService_Timestamps_Log_LogDatetime) GetEntityData() *types.CommonEntityData {
logDatetime.EntityData.YFilter = logDatetime.YFilter
logDatetime.EntityData.YangName = "log-datetime"
logDatetime.EntityData.BundleName = "cisco_ios_xr"
logDatetime.EntityData.ParentYangName = "log"
logDatetime.EntityData.SegmentPath = "log-datetime"
logDatetime.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/timestamps/log/" + logDatetime.EntityData.SegmentPath
logDatetime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
logDatetime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
logDatetime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
logDatetime.EntityData.Children = types.NewOrderedMap()
logDatetime.EntityData.Children.Append("log-datetime-value", types.YChild{"LogDatetimeValue", &logDatetime.LogDatetimeValue})
logDatetime.EntityData.Leafs = types.NewOrderedMap()
logDatetime.EntityData.YListKeys = []string {}
return &(logDatetime.EntityData)
}
// SyslogService_Timestamps_Log_LogDatetime_LogDatetimeValue
// Set timestamp for log message
type SyslogService_Timestamps_Log_LogDatetime_LogDatetimeValue struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Time. The type is TimeInfo. The default value is enable.
TimeStampValue interface{}
// Seconds. The type is TimeInfo. Units are second. The default value is
// enable.
Msec interface{}
// Timezone. The type is TimeInfo. The default value is disable.
TimeZone interface{}
// Year. The type is TimeInfo. The default value is disable.
Year interface{}
}
func (logDatetimeValue *SyslogService_Timestamps_Log_LogDatetime_LogDatetimeValue) GetEntityData() *types.CommonEntityData {
logDatetimeValue.EntityData.YFilter = logDatetimeValue.YFilter
logDatetimeValue.EntityData.YangName = "log-datetime-value"
logDatetimeValue.EntityData.BundleName = "cisco_ios_xr"
logDatetimeValue.EntityData.ParentYangName = "log-datetime"
logDatetimeValue.EntityData.SegmentPath = "log-datetime-value"
logDatetimeValue.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/timestamps/log/log-datetime/" + logDatetimeValue.EntityData.SegmentPath
logDatetimeValue.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
logDatetimeValue.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
logDatetimeValue.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
logDatetimeValue.EntityData.Children = types.NewOrderedMap()
logDatetimeValue.EntityData.Leafs = types.NewOrderedMap()
logDatetimeValue.EntityData.Leafs.Append("time-stamp-value", types.YLeaf{"TimeStampValue", logDatetimeValue.TimeStampValue})
logDatetimeValue.EntityData.Leafs.Append("msec", types.YLeaf{"Msec", logDatetimeValue.Msec})
logDatetimeValue.EntityData.Leafs.Append("time-zone", types.YLeaf{"TimeZone", logDatetimeValue.TimeZone})
logDatetimeValue.EntityData.Leafs.Append("year", types.YLeaf{"Year", logDatetimeValue.Year})
logDatetimeValue.EntityData.YListKeys = []string {}
return &(logDatetimeValue.EntityData)
}
// SyslogService_Timestamps_Debug
// Timestamp debug messages
type SyslogService_Timestamps_Debug struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Disable timestamp debug messages. The type is interface{}.
DebugTimestampDisable interface{}
// Timestamp with systime uptime. The type is interface{}.
DebugUptime interface{}
// Timestamp with date and time.
DebugDatetime SyslogService_Timestamps_Debug_DebugDatetime
}
func (debug *SyslogService_Timestamps_Debug) GetEntityData() *types.CommonEntityData {
debug.EntityData.YFilter = debug.YFilter
debug.EntityData.YangName = "debug"
debug.EntityData.BundleName = "cisco_ios_xr"
debug.EntityData.ParentYangName = "timestamps"
debug.EntityData.SegmentPath = "debug"
debug.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/timestamps/" + debug.EntityData.SegmentPath
debug.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
debug.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
debug.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
debug.EntityData.Children = types.NewOrderedMap()
debug.EntityData.Children.Append("debug-datetime", types.YChild{"DebugDatetime", &debug.DebugDatetime})
debug.EntityData.Leafs = types.NewOrderedMap()
debug.EntityData.Leafs.Append("debug-timestamp-disable", types.YLeaf{"DebugTimestampDisable", debug.DebugTimestampDisable})
debug.EntityData.Leafs.Append("debug-uptime", types.YLeaf{"DebugUptime", debug.DebugUptime})
debug.EntityData.YListKeys = []string {}
return &(debug.EntityData)
}
// SyslogService_Timestamps_Debug_DebugDatetime
// Timestamp with date and time
type SyslogService_Timestamps_Debug_DebugDatetime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Set time format for debug msg.
DatetimeValue SyslogService_Timestamps_Debug_DebugDatetime_DatetimeValue
}
func (debugDatetime *SyslogService_Timestamps_Debug_DebugDatetime) GetEntityData() *types.CommonEntityData {
debugDatetime.EntityData.YFilter = debugDatetime.YFilter
debugDatetime.EntityData.YangName = "debug-datetime"
debugDatetime.EntityData.BundleName = "cisco_ios_xr"
debugDatetime.EntityData.ParentYangName = "debug"
debugDatetime.EntityData.SegmentPath = "debug-datetime"
debugDatetime.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/timestamps/debug/" + debugDatetime.EntityData.SegmentPath
debugDatetime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
debugDatetime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
debugDatetime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
debugDatetime.EntityData.Children = types.NewOrderedMap()
debugDatetime.EntityData.Children.Append("datetime-value", types.YChild{"DatetimeValue", &debugDatetime.DatetimeValue})
debugDatetime.EntityData.Leafs = types.NewOrderedMap()
debugDatetime.EntityData.YListKeys = []string {}
return &(debugDatetime.EntityData)
}
// SyslogService_Timestamps_Debug_DebugDatetime_DatetimeValue
// Set time format for debug msg
type SyslogService_Timestamps_Debug_DebugDatetime_DatetimeValue struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Time. The type is TimeInfo. The default value is enable.
TimeStampValue interface{}
// Seconds. The type is TimeInfo. Units are second. The default value is
// enable.
Msec interface{}
// Timezone. The type is TimeInfo. The default value is disable.
TimeZone interface{}
// Year. The type is TimeInfo. The default value is disable.
Year interface{}
}
func (datetimeValue *SyslogService_Timestamps_Debug_DebugDatetime_DatetimeValue) GetEntityData() *types.CommonEntityData {
datetimeValue.EntityData.YFilter = datetimeValue.YFilter
datetimeValue.EntityData.YangName = "datetime-value"
datetimeValue.EntityData.BundleName = "cisco_ios_xr"
datetimeValue.EntityData.ParentYangName = "debug-datetime"
datetimeValue.EntityData.SegmentPath = "datetime-value"
datetimeValue.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog-service/timestamps/debug/debug-datetime/" + datetimeValue.EntityData.SegmentPath
datetimeValue.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
datetimeValue.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
datetimeValue.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
datetimeValue.EntityData.Children = types.NewOrderedMap()
datetimeValue.EntityData.Leafs = types.NewOrderedMap()
datetimeValue.EntityData.Leafs.Append("time-stamp-value", types.YLeaf{"TimeStampValue", datetimeValue.TimeStampValue})
datetimeValue.EntityData.Leafs.Append("msec", types.YLeaf{"Msec", datetimeValue.Msec})
datetimeValue.EntityData.Leafs.Append("time-zone", types.YLeaf{"TimeZone", datetimeValue.TimeZone})
datetimeValue.EntityData.Leafs.Append("year", types.YLeaf{"Year", datetimeValue.Year})
datetimeValue.EntityData.YListKeys = []string {}
return &(datetimeValue.EntityData)
}
// Syslog
// syslog
type Syslog struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Hostname prefix to add on msgs to servers. The type is string.
HostNamePrefix interface{}
// Set size of the local log file. The type is interface{} with range:
// 0..4294967295. The default value is 32768.
LocalLogFileSize interface{}
// Enabled or disabled. The type is bool.
EnableConsoleLogging interface{}
// Suppress consecutive duplicate messages. The type is interface{}.
SuppressDuplicates interface{}
// Set monitor logging.
MonitorLogging Syslog_MonitorLogging
// Set history logging.
HistoryLogging Syslog_HistoryLogging
// Modify message logging facilities.
LoggingFacilities Syslog_LoggingFacilities
// Set trap logging.
TrapLogging Syslog_TrapLogging
// Set buffered logging parameters.
BufferedLogging Syslog_BufferedLogging
// Configure logging host.
HostServer Syslog_HostServer
// Set console logging.
ConsoleLogging Syslog_ConsoleLogging
// Configure logging file destination.
Files Syslog_Files
// Syslog TOS bit for outgoing messages.
Ipv4 Syslog_Ipv4
// Archive attributes configuration.
Archive Syslog_Archive
// Syslog traffic class bit for outgoing messages.
Ipv6 Syslog_Ipv6
// Configure source interface.
SourceInterfaceTable Syslog_SourceInterfaceTable
// Alarm Logger Properties.
AlarmLogger Syslog_AlarmLogger
// Configure properties of the event correlator.
Correlator Syslog_Correlator
// Configure properties of the syslog/alarm suppression.
Suppression Syslog_Suppression
}
func (syslog *Syslog) GetEntityData() *types.CommonEntityData {
syslog.EntityData.YFilter = syslog.YFilter
syslog.EntityData.YangName = "syslog"
syslog.EntityData.BundleName = "cisco_ios_xr"
syslog.EntityData.ParentYangName = "Cisco-IOS-XR-infra-syslog-cfg"
syslog.EntityData.SegmentPath = "Cisco-IOS-XR-infra-syslog-cfg:syslog"
syslog.EntityData.AbsolutePath = syslog.EntityData.SegmentPath
syslog.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
syslog.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
syslog.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
syslog.EntityData.Children = types.NewOrderedMap()
syslog.EntityData.Children.Append("monitor-logging", types.YChild{"MonitorLogging", &syslog.MonitorLogging})
syslog.EntityData.Children.Append("history-logging", types.YChild{"HistoryLogging", &syslog.HistoryLogging})
syslog.EntityData.Children.Append("logging-facilities", types.YChild{"LoggingFacilities", &syslog.LoggingFacilities})
syslog.EntityData.Children.Append("trap-logging", types.YChild{"TrapLogging", &syslog.TrapLogging})
syslog.EntityData.Children.Append("buffered-logging", types.YChild{"BufferedLogging", &syslog.BufferedLogging})
syslog.EntityData.Children.Append("host-server", types.YChild{"HostServer", &syslog.HostServer})
syslog.EntityData.Children.Append("console-logging", types.YChild{"ConsoleLogging", &syslog.ConsoleLogging})
syslog.EntityData.Children.Append("files", types.YChild{"Files", &syslog.Files})
syslog.EntityData.Children.Append("ipv4", types.YChild{"Ipv4", &syslog.Ipv4})
syslog.EntityData.Children.Append("archive", types.YChild{"Archive", &syslog.Archive})
syslog.EntityData.Children.Append("ipv6", types.YChild{"Ipv6", &syslog.Ipv6})
syslog.EntityData.Children.Append("source-interface-table", types.YChild{"SourceInterfaceTable", &syslog.SourceInterfaceTable})
syslog.EntityData.Children.Append("Cisco-IOS-XR-infra-alarm-logger-cfg:alarm-logger", types.YChild{"AlarmLogger", &syslog.AlarmLogger})
syslog.EntityData.Children.Append("Cisco-IOS-XR-infra-correlator-cfg:correlator", types.YChild{"Correlator", &syslog.Correlator})
syslog.EntityData.Children.Append("Cisco-IOS-XR-infra-correlator-cfg:suppression", types.YChild{"Suppression", &syslog.Suppression})
syslog.EntityData.Leafs = types.NewOrderedMap()
syslog.EntityData.Leafs.Append("host-name-prefix", types.YLeaf{"HostNamePrefix", syslog.HostNamePrefix})
syslog.EntityData.Leafs.Append("local-log-file-size", types.YLeaf{"LocalLogFileSize", syslog.LocalLogFileSize})
syslog.EntityData.Leafs.Append("enable-console-logging", types.YLeaf{"EnableConsoleLogging", syslog.EnableConsoleLogging})
syslog.EntityData.Leafs.Append("suppress-duplicates", types.YLeaf{"SuppressDuplicates", syslog.SuppressDuplicates})
syslog.EntityData.YListKeys = []string {}
return &(syslog.EntityData)
}
// Syslog_MonitorLogging
// Set monitor logging
type Syslog_MonitorLogging struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Monitor Logging Level. The type is LoggingLevels. The default value is
// debug.
LoggingLevel interface{}
// Set monitor logging discriminators.
MonitorDiscriminator Syslog_MonitorLogging_MonitorDiscriminator
}
func (monitorLogging *Syslog_MonitorLogging) GetEntityData() *types.CommonEntityData {
monitorLogging.EntityData.YFilter = monitorLogging.YFilter
monitorLogging.EntityData.YangName = "monitor-logging"
monitorLogging.EntityData.BundleName = "cisco_ios_xr"
monitorLogging.EntityData.ParentYangName = "syslog"
monitorLogging.EntityData.SegmentPath = "monitor-logging"
monitorLogging.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/" + monitorLogging.EntityData.SegmentPath
monitorLogging.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
monitorLogging.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
monitorLogging.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
monitorLogging.EntityData.Children = types.NewOrderedMap()
monitorLogging.EntityData.Children.Append("monitor-discriminator", types.YChild{"MonitorDiscriminator", &monitorLogging.MonitorDiscriminator})
monitorLogging.EntityData.Leafs = types.NewOrderedMap()
monitorLogging.EntityData.Leafs.Append("logging-level", types.YLeaf{"LoggingLevel", monitorLogging.LoggingLevel})
monitorLogging.EntityData.YListKeys = []string {}
return &(monitorLogging.EntityData)
}
// Syslog_MonitorLogging_MonitorDiscriminator
// Set monitor logging discriminators
type Syslog_MonitorLogging_MonitorDiscriminator struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Set monitor logging match2 discriminator. The type is string.
Match2 interface{}
// Set monitor logging no-match1 discriminator. The type is string.
Nomatch1 interface{}
// Set monitor logging match1 discriminator. The type is string.
Match1 interface{}
// Set monitor logging no-match3 discriminator. The type is string.
Nomatch3 interface{}
// Set monitor logging match3 discriminator. The type is string.
Match3 interface{}
// Set monitor logging no-match2 discriminator. The type is string.
Nomatch2 interface{}
}
func (monitorDiscriminator *Syslog_MonitorLogging_MonitorDiscriminator) GetEntityData() *types.CommonEntityData {
monitorDiscriminator.EntityData.YFilter = monitorDiscriminator.YFilter
monitorDiscriminator.EntityData.YangName = "monitor-discriminator"
monitorDiscriminator.EntityData.BundleName = "cisco_ios_xr"
monitorDiscriminator.EntityData.ParentYangName = "monitor-logging"
monitorDiscriminator.EntityData.SegmentPath = "monitor-discriminator"
monitorDiscriminator.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/monitor-logging/" + monitorDiscriminator.EntityData.SegmentPath
monitorDiscriminator.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
monitorDiscriminator.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
monitorDiscriminator.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
monitorDiscriminator.EntityData.Children = types.NewOrderedMap()
monitorDiscriminator.EntityData.Leafs = types.NewOrderedMap()
monitorDiscriminator.EntityData.Leafs.Append("match2", types.YLeaf{"Match2", monitorDiscriminator.Match2})
monitorDiscriminator.EntityData.Leafs.Append("nomatch1", types.YLeaf{"Nomatch1", monitorDiscriminator.Nomatch1})
monitorDiscriminator.EntityData.Leafs.Append("match1", types.YLeaf{"Match1", monitorDiscriminator.Match1})
monitorDiscriminator.EntityData.Leafs.Append("nomatch3", types.YLeaf{"Nomatch3", monitorDiscriminator.Nomatch3})
monitorDiscriminator.EntityData.Leafs.Append("match3", types.YLeaf{"Match3", monitorDiscriminator.Match3})
monitorDiscriminator.EntityData.Leafs.Append("nomatch2", types.YLeaf{"Nomatch2", monitorDiscriminator.Nomatch2})
monitorDiscriminator.EntityData.YListKeys = []string {}
return &(monitorDiscriminator.EntityData)
}
// Syslog_HistoryLogging
// Set history logging
type Syslog_HistoryLogging struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Logging history size. The type is interface{} with range: 1..500. The
// default value is 1.
HistorySize interface{}
// History logging level. The type is LoggingLevels. The default value is
// warning.
LoggingLevel interface{}
}
func (historyLogging *Syslog_HistoryLogging) GetEntityData() *types.CommonEntityData {
historyLogging.EntityData.YFilter = historyLogging.YFilter
historyLogging.EntityData.YangName = "history-logging"
historyLogging.EntityData.BundleName = "cisco_ios_xr"
historyLogging.EntityData.ParentYangName = "syslog"
historyLogging.EntityData.SegmentPath = "history-logging"
historyLogging.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/" + historyLogging.EntityData.SegmentPath
historyLogging.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
historyLogging.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
historyLogging.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
historyLogging.EntityData.Children = types.NewOrderedMap()
historyLogging.EntityData.Leafs = types.NewOrderedMap()
historyLogging.EntityData.Leafs.Append("history-size", types.YLeaf{"HistorySize", historyLogging.HistorySize})
historyLogging.EntityData.Leafs.Append("logging-level", types.YLeaf{"LoggingLevel", historyLogging.LoggingLevel})
historyLogging.EntityData.YListKeys = []string {}
return &(historyLogging.EntityData)
}
// Syslog_LoggingFacilities
// Modify message logging facilities
type Syslog_LoggingFacilities struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Facility from which logging is done. The type is Facility. The default
// value is local7.
FacilityLevel interface{}
}
func (loggingFacilities *Syslog_LoggingFacilities) GetEntityData() *types.CommonEntityData {
loggingFacilities.EntityData.YFilter = loggingFacilities.YFilter
loggingFacilities.EntityData.YangName = "logging-facilities"
loggingFacilities.EntityData.BundleName = "cisco_ios_xr"
loggingFacilities.EntityData.ParentYangName = "syslog"
loggingFacilities.EntityData.SegmentPath = "logging-facilities"
loggingFacilities.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/" + loggingFacilities.EntityData.SegmentPath
loggingFacilities.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
loggingFacilities.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
loggingFacilities.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
loggingFacilities.EntityData.Children = types.NewOrderedMap()
loggingFacilities.EntityData.Leafs = types.NewOrderedMap()
loggingFacilities.EntityData.Leafs.Append("facility-level", types.YLeaf{"FacilityLevel", loggingFacilities.FacilityLevel})
loggingFacilities.EntityData.YListKeys = []string {}
return &(loggingFacilities.EntityData)
}
// Syslog_TrapLogging
// Set trap logging
type Syslog_TrapLogging struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Trap logging level. The type is LoggingLevels. The default value is info.
LoggingLevel interface{}
}
func (trapLogging *Syslog_TrapLogging) GetEntityData() *types.CommonEntityData {
trapLogging.EntityData.YFilter = trapLogging.YFilter
trapLogging.EntityData.YangName = "trap-logging"
trapLogging.EntityData.BundleName = "cisco_ios_xr"
trapLogging.EntityData.ParentYangName = "syslog"
trapLogging.EntityData.SegmentPath = "trap-logging"
trapLogging.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/" + trapLogging.EntityData.SegmentPath
trapLogging.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trapLogging.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trapLogging.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trapLogging.EntityData.Children = types.NewOrderedMap()
trapLogging.EntityData.Leafs = types.NewOrderedMap()
trapLogging.EntityData.Leafs.Append("logging-level", types.YLeaf{"LoggingLevel", trapLogging.LoggingLevel})
trapLogging.EntityData.YListKeys = []string {}
return &(trapLogging.EntityData)
}
// Syslog_BufferedLogging
// Set buffered logging parameters
type Syslog_BufferedLogging struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Logging level for Buffered logging. The type is LoggingLevels. The default
// value is debug.
LoggingLevel interface{}
// Logging buffered size. The type is interface{} with range:
// 2097152..125000000. The default value is 2097152.
BufferSize interface{}
// Set buffered logging discriminators.
BufferedDiscriminator Syslog_BufferedLogging_BufferedDiscriminator
}
func (bufferedLogging *Syslog_BufferedLogging) GetEntityData() *types.CommonEntityData {
bufferedLogging.EntityData.YFilter = bufferedLogging.YFilter
bufferedLogging.EntityData.YangName = "buffered-logging"
bufferedLogging.EntityData.BundleName = "cisco_ios_xr"
bufferedLogging.EntityData.ParentYangName = "syslog"
bufferedLogging.EntityData.SegmentPath = "buffered-logging"
bufferedLogging.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/" + bufferedLogging.EntityData.SegmentPath
bufferedLogging.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bufferedLogging.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bufferedLogging.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bufferedLogging.EntityData.Children = types.NewOrderedMap()
bufferedLogging.EntityData.Children.Append("buffered-discriminator", types.YChild{"BufferedDiscriminator", &bufferedLogging.BufferedDiscriminator})
bufferedLogging.EntityData.Leafs = types.NewOrderedMap()
bufferedLogging.EntityData.Leafs.Append("logging-level", types.YLeaf{"LoggingLevel", bufferedLogging.LoggingLevel})
bufferedLogging.EntityData.Leafs.Append("buffer-size", types.YLeaf{"BufferSize", bufferedLogging.BufferSize})
bufferedLogging.EntityData.YListKeys = []string {}
return &(bufferedLogging.EntityData)
}
// Syslog_BufferedLogging_BufferedDiscriminator
// Set buffered logging discriminators
type Syslog_BufferedLogging_BufferedDiscriminator struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Set buffered logging match2 discriminator. The type is string.
Match2 interface{}
// Set buffered logging no-match1 discriminator. The type is string.
Nomatch1 interface{}
// Set buffered logging match1 discriminator. The type is string.
Match1 interface{}
// Set buffered logging no-match3 discriminator. The type is string.
Nomatch3 interface{}
// Set buffered logging match3 discriminator. The type is string.
Match3 interface{}
// Set buffered logging no-match2 discriminator. The type is string.
Nomatch2 interface{}
}
func (bufferedDiscriminator *Syslog_BufferedLogging_BufferedDiscriminator) GetEntityData() *types.CommonEntityData {
bufferedDiscriminator.EntityData.YFilter = bufferedDiscriminator.YFilter
bufferedDiscriminator.EntityData.YangName = "buffered-discriminator"
bufferedDiscriminator.EntityData.BundleName = "cisco_ios_xr"
bufferedDiscriminator.EntityData.ParentYangName = "buffered-logging"
bufferedDiscriminator.EntityData.SegmentPath = "buffered-discriminator"
bufferedDiscriminator.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-syslog-cfg:syslog/buffered-logging/" + bufferedDiscriminator.EntityData.SegmentPath
bufferedDiscriminator.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
bufferedDiscriminator.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
bufferedDiscriminator.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
bufferedDiscriminator.EntityData.Children = types.NewOrderedMap()