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
/
cisco_sonet_mib.go
1788 lines (1457 loc) · 98.3 KB
/
cisco_sonet_mib.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
// The MIB module to describe SONET/SDH interfaces
// objects. This is an extension to the standard SONET
// MIB(RFC 2558).
package cisco_sonet_mib
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_xe"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package cisco_sonet_mib"))
ydk.RegisterEntity("{urn:ietf:params:xml:ns:yang:smiv2:CISCO-SONET-MIB CISCO-SONET-MIB}", reflect.TypeOf(CISCOSONETMIB{}))
ydk.RegisterEntity("CISCO-SONET-MIB:CISCO-SONET-MIB", reflect.TypeOf(CISCOSONETMIB{}))
}
// CsApsLineSwitchReason represents csApsNoSwitch : This is a state when no switch happens.
type CsApsLineSwitchReason string
const (
CsApsLineSwitchReason_csApsOther CsApsLineSwitchReason = "csApsOther"
CsApsLineSwitchReason_csApsRevertive CsApsLineSwitchReason = "csApsRevertive"
CsApsLineSwitchReason_csApsManual CsApsLineSwitchReason = "csApsManual"
CsApsLineSwitchReason_csApsSignalDefectLow CsApsLineSwitchReason = "csApsSignalDefectLow"
CsApsLineSwitchReason_csApsSignalDefectHigh CsApsLineSwitchReason = "csApsSignalDefectHigh"
CsApsLineSwitchReason_csApsSignalFailureLow CsApsLineSwitchReason = "csApsSignalFailureLow"
CsApsLineSwitchReason_csApsSignalFailureHigh CsApsLineSwitchReason = "csApsSignalFailureHigh"
CsApsLineSwitchReason_csApsForceSwitch CsApsLineSwitchReason = "csApsForceSwitch"
CsApsLineSwitchReason_csApsLockOut CsApsLineSwitchReason = "csApsLockOut"
CsApsLineSwitchReason_csApsNoSwitch CsApsLineSwitchReason = "csApsNoSwitch"
)
// CsApsLineFailureCode represents csApsModeMismatch: APS architecture mode mismatch.
type CsApsLineFailureCode string
const (
CsApsLineFailureCode_csApsChannelMismatch CsApsLineFailureCode = "csApsChannelMismatch"
CsApsLineFailureCode_csApsProtectionByteFail CsApsLineFailureCode = "csApsProtectionByteFail"
CsApsLineFailureCode_csApsFEProtectionFailure CsApsLineFailureCode = "csApsFEProtectionFailure"
CsApsLineFailureCode_csApsModeMismatch CsApsLineFailureCode = "csApsModeMismatch"
)
// CISCOSONETMIB
type CISCOSONETMIB struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
CsApsConfig CISCOSONETMIB_CsApsConfig
CsNotifications CISCOSONETMIB_CsNotifications
// The SONET/SDH configuration table. This table has objects for configuring
// sonet lines.
CsConfigTable CISCOSONETMIB_CsConfigTable
// This table contains objects to configure APS (Automatic Protection
// Switching) feature in a SONET Line. APS is the ability to configure a pair
// of SONET lines for redundancy so that the hardware will automatically
// switch the active line from working line to the protection line or vice
// versa, within 60ms, when the active line fails.
CsApsConfigTable CISCOSONETMIB_CsApsConfigTable
// The SONET/SDH Section Total table. It contains the cumulative sum of the
// various statistics for the 24 hour period preceding the current interval.
// The object 'sonetMediumValidIntervals' from RFC2558 contains the number of
// 15 minute intervals that have elapsed since the line is enabled. .
CssTotalTable CISCOSONETMIB_CssTotalTable
// The SONET/SDH Section Trace table. This table contains objects for tracing
// the sonet section.
CssTraceTable CISCOSONETMIB_CssTraceTable
// The SONET/SDH Line Total table. It contains the cumulative sum of the
// various statistics for the 24 hour period preceding the current interval.
// The object 'sonetMediumValidIntervals' from RFC2558 contains the number
// of 15 minute intervals that have elapsed since the line is enabled.
CslTotalTable CISCOSONETMIB_CslTotalTable
// The SONET/SDH Far End Line Total table. It contains the cumulative sum of
// the various statistics for the 24 hour period preceding the current
// interval. The object 'sonetMediumValidIntervals' from RFC2558 contains the
// number of 15 minute intervals that have elapsed since the line is enabled.
CslFarEndTotalTable CISCOSONETMIB_CslFarEndTotalTable
// The SONET/SDH Path Total table. It contains the cumulative sum of the
// various statistics for the 24 hour period preceding the current
// interval.The object 'sonetMediumValidIntervals' from RFC2558 contains the
// number of 15 minute intervals that have elapsed since the line is enabled.
CspTotalTable CISCOSONETMIB_CspTotalTable
// The SONET/SDH Far End Path Total table. Far End is the remote end of the
// line. The table contains the cumulative sum of the various statistics for
// the 24 hour period preceding the current interval. The object
// 'sonetMediumValidIntervals' from RFC2558 contains the number of 15 minute
// intervals that have elapsed since the line is enabled. .
CspFarEndTotalTable CISCOSONETMIB_CspFarEndTotalTable
// The SONET/SDH Path Trace table. This table contains objects for tracing
// the sonet path.
CspTraceTable CISCOSONETMIB_CspTraceTable
// The SONET/SDH Section statistics table. This table maintains the number of
// times the line encountered Loss of Signal(LOS), Loss of frame(LOF), Alarm
// Indication signals(AISs), Remote failure indications(RFIs).
CsStatsTable CISCOSONETMIB_CsStatsTable
// This table contains objects to configure the VC( Virtual Container) related
// properties of a TUG-3 within a AU-4 paths. This table allows creation of
// following multiplexing structure: STM-1/AU-4/TUG-3/TU-3/DS3
// STM-1/AU-4/TUG-3/TU-3/E3 STM-1/AU-4/TUG-3/TUG-2/TU-11/DS1
// STM-1/AU-4/TUG-3/TUG-2/TU-12/E1 Three entries are created in this table
// for a given AU-4 path when cspSonetPathPayload object is set to one of the
// following: vt15vc11(4), vt2vc12(5), ds3(3), e3(8),
// vtStructured(9).
CsAu4Tug3ConfigTable CISCOSONETMIB_CsAu4Tug3ConfigTable
}
func (cISCOSONETMIB *CISCOSONETMIB) GetEntityData() *types.CommonEntityData {
cISCOSONETMIB.EntityData.YFilter = cISCOSONETMIB.YFilter
cISCOSONETMIB.EntityData.YangName = "CISCO-SONET-MIB"
cISCOSONETMIB.EntityData.BundleName = "cisco_ios_xe"
cISCOSONETMIB.EntityData.ParentYangName = "CISCO-SONET-MIB"
cISCOSONETMIB.EntityData.SegmentPath = "CISCO-SONET-MIB:CISCO-SONET-MIB"
cISCOSONETMIB.EntityData.AbsolutePath = cISCOSONETMIB.EntityData.SegmentPath
cISCOSONETMIB.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cISCOSONETMIB.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cISCOSONETMIB.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cISCOSONETMIB.EntityData.Children = types.NewOrderedMap()
cISCOSONETMIB.EntityData.Children.Append("csApsConfig", types.YChild{"CsApsConfig", &cISCOSONETMIB.CsApsConfig})
cISCOSONETMIB.EntityData.Children.Append("csNotifications", types.YChild{"CsNotifications", &cISCOSONETMIB.CsNotifications})
cISCOSONETMIB.EntityData.Children.Append("csConfigTable", types.YChild{"CsConfigTable", &cISCOSONETMIB.CsConfigTable})
cISCOSONETMIB.EntityData.Children.Append("csApsConfigTable", types.YChild{"CsApsConfigTable", &cISCOSONETMIB.CsApsConfigTable})
cISCOSONETMIB.EntityData.Children.Append("cssTotalTable", types.YChild{"CssTotalTable", &cISCOSONETMIB.CssTotalTable})
cISCOSONETMIB.EntityData.Children.Append("cssTraceTable", types.YChild{"CssTraceTable", &cISCOSONETMIB.CssTraceTable})
cISCOSONETMIB.EntityData.Children.Append("cslTotalTable", types.YChild{"CslTotalTable", &cISCOSONETMIB.CslTotalTable})
cISCOSONETMIB.EntityData.Children.Append("cslFarEndTotalTable", types.YChild{"CslFarEndTotalTable", &cISCOSONETMIB.CslFarEndTotalTable})
cISCOSONETMIB.EntityData.Children.Append("cspTotalTable", types.YChild{"CspTotalTable", &cISCOSONETMIB.CspTotalTable})
cISCOSONETMIB.EntityData.Children.Append("cspFarEndTotalTable", types.YChild{"CspFarEndTotalTable", &cISCOSONETMIB.CspFarEndTotalTable})
cISCOSONETMIB.EntityData.Children.Append("cspTraceTable", types.YChild{"CspTraceTable", &cISCOSONETMIB.CspTraceTable})
cISCOSONETMIB.EntityData.Children.Append("csStatsTable", types.YChild{"CsStatsTable", &cISCOSONETMIB.CsStatsTable})
cISCOSONETMIB.EntityData.Children.Append("csAu4Tug3ConfigTable", types.YChild{"CsAu4Tug3ConfigTable", &cISCOSONETMIB.CsAu4Tug3ConfigTable})
cISCOSONETMIB.EntityData.Leafs = types.NewOrderedMap()
cISCOSONETMIB.EntityData.YListKeys = []string {}
return &(cISCOSONETMIB.EntityData)
}
// CISCOSONETMIB_CsApsConfig
type CISCOSONETMIB_CsApsConfig struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The object indicates the APS line failure code. This is the failure
// encountered by the APS line. Refer to CsApsLineFailureCode TC for failure
// code definitions. The object is used for notifications. The type is
// CsApsLineFailureCode.
CsApsLineFailureCode interface{}
// This object indicates the APS line switch reason. When the working line on
// one end fails, its other end is told to do an APS switch. Refer to
// CsApsLineSwitchReason TC for more information. The object is used for
// notifications. The type is CsApsLineSwitchReason.
CsApsLineSwitchReason interface{}
}
func (csApsConfig *CISCOSONETMIB_CsApsConfig) GetEntityData() *types.CommonEntityData {
csApsConfig.EntityData.YFilter = csApsConfig.YFilter
csApsConfig.EntityData.YangName = "csApsConfig"
csApsConfig.EntityData.BundleName = "cisco_ios_xe"
csApsConfig.EntityData.ParentYangName = "CISCO-SONET-MIB"
csApsConfig.EntityData.SegmentPath = "csApsConfig"
csApsConfig.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/" + csApsConfig.EntityData.SegmentPath
csApsConfig.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
csApsConfig.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
csApsConfig.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
csApsConfig.EntityData.Children = types.NewOrderedMap()
csApsConfig.EntityData.Leafs = types.NewOrderedMap()
csApsConfig.EntityData.Leafs.Append("csApsLineFailureCode", types.YLeaf{"CsApsLineFailureCode", csApsConfig.CsApsLineFailureCode})
csApsConfig.EntityData.Leafs.Append("csApsLineSwitchReason", types.YLeaf{"CsApsLineSwitchReason", csApsConfig.CsApsLineSwitchReason})
csApsConfig.EntityData.YListKeys = []string {}
return &(csApsConfig.EntityData)
}
// CISCOSONETMIB_CsNotifications
type CISCOSONETMIB_CsNotifications struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// This object controls if the generation of ciscoSonetSectionStatusChange,
// ciscoSonetLineStatusChange, ciscoSonetPathStatusChange and
// ciscoSonetVTStatusChange notifications is enabled. If the value of this
// object is 'true(1)', then all notifications in this MIB are enabled;
// otherwise they are disabled. The type is bool.
CsNotificationsEnabled interface{}
}
func (csNotifications *CISCOSONETMIB_CsNotifications) GetEntityData() *types.CommonEntityData {
csNotifications.EntityData.YFilter = csNotifications.YFilter
csNotifications.EntityData.YangName = "csNotifications"
csNotifications.EntityData.BundleName = "cisco_ios_xe"
csNotifications.EntityData.ParentYangName = "CISCO-SONET-MIB"
csNotifications.EntityData.SegmentPath = "csNotifications"
csNotifications.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/" + csNotifications.EntityData.SegmentPath
csNotifications.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
csNotifications.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
csNotifications.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
csNotifications.EntityData.Children = types.NewOrderedMap()
csNotifications.EntityData.Leafs = types.NewOrderedMap()
csNotifications.EntityData.Leafs.Append("csNotificationsEnabled", types.YLeaf{"CsNotificationsEnabled", csNotifications.CsNotificationsEnabled})
csNotifications.EntityData.YListKeys = []string {}
return &(csNotifications.EntityData)
}
// CISCOSONETMIB_CsConfigTable
// The SONET/SDH configuration table. This table has objects
// for configuring sonet lines.
type CISCOSONETMIB_CsConfigTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry in the table. There is an entry for each SONET line in the table.
// Entries are automatically created for an ifType value of sonet(39).
// 'ifAdminStatus' from the ifTable must be used to enable or disable a line.
// A line is in disabled(down) state unless provisioned 'up' using
// 'ifAdminStatus'. The type is slice of
// CISCOSONETMIB_CsConfigTable_CsConfigEntry.
CsConfigEntry []*CISCOSONETMIB_CsConfigTable_CsConfigEntry
}
func (csConfigTable *CISCOSONETMIB_CsConfigTable) GetEntityData() *types.CommonEntityData {
csConfigTable.EntityData.YFilter = csConfigTable.YFilter
csConfigTable.EntityData.YangName = "csConfigTable"
csConfigTable.EntityData.BundleName = "cisco_ios_xe"
csConfigTable.EntityData.ParentYangName = "CISCO-SONET-MIB"
csConfigTable.EntityData.SegmentPath = "csConfigTable"
csConfigTable.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/" + csConfigTable.EntityData.SegmentPath
csConfigTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
csConfigTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
csConfigTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
csConfigTable.EntityData.Children = types.NewOrderedMap()
csConfigTable.EntityData.Children.Append("csConfigEntry", types.YChild{"CsConfigEntry", nil})
for i := range csConfigTable.CsConfigEntry {
csConfigTable.EntityData.Children.Append(types.GetSegmentPath(csConfigTable.CsConfigEntry[i]), types.YChild{"CsConfigEntry", csConfigTable.CsConfigEntry[i]})
}
csConfigTable.EntityData.Leafs = types.NewOrderedMap()
csConfigTable.EntityData.YListKeys = []string {}
return &(csConfigTable.EntityData)
}
// CISCOSONETMIB_CsConfigTable_CsConfigEntry
// An entry in the table. There is an entry for each SONET line
// in the table. Entries are automatically created for an
// ifType value of sonet(39). 'ifAdminStatus' from the ifTable
// must be used to enable or disable a line. A line is in
// disabled(down) state unless provisioned 'up' using
// 'ifAdminStatus'.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with range: 1..2147483647.
// Refers to if_mib.IFMIB_IfTable_IfEntry_IfIndex
IfIndex interface{}
// This object specifies the desired loopback mode configuration of the SONET
// line. The possible values of this objects are follows: noLoopback :
// Not in the loopback state. lineLocal : The signal transmitted
// from this interface is connected to the associated incoming
// receiver. This ensures that the SONET frame transmitted from the
// interface is received back at the interface. lineRemote :
// The signal received at the interface is looped back out to the
// associated transmitter. This ensures that the remote equipment that
// originated the signal receives it back. The signal may undergo
// degradation as a result of the characteristics of the transmission
// medium. The type is CsConfigLoopbackType.
CsConfigLoopbackType interface{}
// Specifies the source of the transmit clock. loopTiming: indicates that the
// recovered receive clock is used as the transmit clock.
// localTiming: indicates that a local clock source is used or
// that an external clock is attached to the box containing the
// interface. . The type is CsConfigXmtClockSource.
CsConfigXmtClockSource interface{}
// This object is used to disable or enable the Scrambling option in SONET
// line. The type is CsConfigFrameScramble.
CsConfigFrameScramble interface{}
// This object represents the configured line type. Sts is SONET format. Stm
// is SDH format. sonetSts3c : OC3 concatenated sonetStm1 :
// European standard OC3 sonetSts12c : OC12 concatenated sonetStm4
// : European standard OC12 sonetSts48c : OC48 concatenated
// sonetStm16 : European standard OC48 sonetSts192c : OC-192
// concatenated sonetStm64 : European standard OC-192 sonetSts3 :
// OC3 (unconcatenated) . The type is CsConfigType.
CsConfigType interface{}
// This object specifies the type of RDI-V (Remote Defect Indication - Virtual
// Tributary/Container) sent by this Network Element (NE) to the remote
// Network Element. onebit : use 1 bit RDI-V threebit : use
// 3 bit enhanced RDI-V. Default is onebit. The type is CsConfigRDIVType.
CsConfigRDIVType interface{}
// This object represents the type of RDI-P (Remote Defect Indication - Path)
// sent by this Network Element (NE) to remote Network Element. onebit
// : use 1 bit RDI-P threebit : use 3 bit enhanced RDI-P. Default is
// onebit. The type is CsConfigRDIPType.
CsConfigRDIPType interface{}
// Type of the tributary carried within the SONET/SDH signal. vt15vc11 :
// carries T1 signal vt2vc12 : carries E1 signal. The type is
// CsTributaryType.
CsTributaryType interface{}
// This object represents the VT/VC mapping type. asynchronous: In this
// mode, the channel structure of DS1/E1 is neither visible
// nor preserved. byteSynchronous: In this mode, the DS0 signals inside the
// VT/VC can be found and extracted from the frame. Default
// is asynchronous(1). The type is CsTributaryMappingType.
CsTributaryMappingType interface{}
// This object represents the framing type to be assigned to the virtual
// tributaries in byte sync mapping mode. notApplicable : If VT
// mapping is not byteSynchronous(2). dsx1ESF : Extended
// Superframe Format dsx1D4 : Superframe Format Default is
// dsx1ESF(3) if csTributaryMappingType is byteSynchronous(2). For
// asynchronous(1) mapping, the default is notApplicable(1). The value
// notApplicable(1) can not be set. The type is CsTributaryFramingType.
CsTributaryFramingType interface{}
// This object represents the mode used to transport DS0 signalling
// information for T1 byteSynchronous mapping (GR253). In
// signallingTransferMode(2), the robbed-bit signalling is transferred to the
// VT header. In clearMode(3), only the framing bit is transferred to the VT
// header. Default is signallingTransferMode(2) if
// csTributaryMappingType is byteSynchronous. For asynchronous mapping, it is
// notApplicable(1). The value notApplicable(1) can not be set. The type is
// CsSignallingTransportMode.
CsSignallingTransportMode interface{}
// This object represents the method used to group VCs into an STM-1 signal.
// Applicable only to SDH. au3Grouping: STM1<-AU-3<-TUG-2<-TU-12<-VC12 or
// STM1<-AU-3<-TUG-2<-TU-11<-VC11. au4Grouping:
// STM1<-AU-4<-TUG-3<-TUG-2<-TU-12<-VC12 or
// STM1<-AU-4<-TUG-3<-TUG-2<-TU-11<-VC11. Default is au3Grouping(2) for SDH
// and notApplicable(1) for SONET. The type is CsTributaryGroupingType.
CsTributaryGroupingType interface{}
}
func (csConfigEntry *CISCOSONETMIB_CsConfigTable_CsConfigEntry) GetEntityData() *types.CommonEntityData {
csConfigEntry.EntityData.YFilter = csConfigEntry.YFilter
csConfigEntry.EntityData.YangName = "csConfigEntry"
csConfigEntry.EntityData.BundleName = "cisco_ios_xe"
csConfigEntry.EntityData.ParentYangName = "csConfigTable"
csConfigEntry.EntityData.SegmentPath = "csConfigEntry" + types.AddKeyToken(csConfigEntry.IfIndex, "ifIndex")
csConfigEntry.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/csConfigTable/" + csConfigEntry.EntityData.SegmentPath
csConfigEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
csConfigEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
csConfigEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
csConfigEntry.EntityData.Children = types.NewOrderedMap()
csConfigEntry.EntityData.Leafs = types.NewOrderedMap()
csConfigEntry.EntityData.Leafs.Append("ifIndex", types.YLeaf{"IfIndex", csConfigEntry.IfIndex})
csConfigEntry.EntityData.Leafs.Append("csConfigLoopbackType", types.YLeaf{"CsConfigLoopbackType", csConfigEntry.CsConfigLoopbackType})
csConfigEntry.EntityData.Leafs.Append("csConfigXmtClockSource", types.YLeaf{"CsConfigXmtClockSource", csConfigEntry.CsConfigXmtClockSource})
csConfigEntry.EntityData.Leafs.Append("csConfigFrameScramble", types.YLeaf{"CsConfigFrameScramble", csConfigEntry.CsConfigFrameScramble})
csConfigEntry.EntityData.Leafs.Append("csConfigType", types.YLeaf{"CsConfigType", csConfigEntry.CsConfigType})
csConfigEntry.EntityData.Leafs.Append("csConfigRDIVType", types.YLeaf{"CsConfigRDIVType", csConfigEntry.CsConfigRDIVType})
csConfigEntry.EntityData.Leafs.Append("csConfigRDIPType", types.YLeaf{"CsConfigRDIPType", csConfigEntry.CsConfigRDIPType})
csConfigEntry.EntityData.Leafs.Append("csTributaryType", types.YLeaf{"CsTributaryType", csConfigEntry.CsTributaryType})
csConfigEntry.EntityData.Leafs.Append("csTributaryMappingType", types.YLeaf{"CsTributaryMappingType", csConfigEntry.CsTributaryMappingType})
csConfigEntry.EntityData.Leafs.Append("csTributaryFramingType", types.YLeaf{"CsTributaryFramingType", csConfigEntry.CsTributaryFramingType})
csConfigEntry.EntityData.Leafs.Append("csSignallingTransportMode", types.YLeaf{"CsSignallingTransportMode", csConfigEntry.CsSignallingTransportMode})
csConfigEntry.EntityData.Leafs.Append("csTributaryGroupingType", types.YLeaf{"CsTributaryGroupingType", csConfigEntry.CsTributaryGroupingType})
csConfigEntry.EntityData.YListKeys = []string {"IfIndex"}
return &(csConfigEntry.EntityData)
}
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigFrameScramble represents option in SONET line.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigFrameScramble string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigFrameScramble_disabled CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigFrameScramble = "disabled"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigFrameScramble_enabled CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigFrameScramble = "enabled"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType represents medium.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType_noLoopback CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType = "noLoopback"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType_lineLocal CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType = "lineLocal"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType_lineRemote CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigLoopbackType = "lineRemote"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIPType represents Default is onebit.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIPType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIPType_onebit CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIPType = "onebit"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIPType_threebit CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIPType = "threebit"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIVType represents Default is onebit.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIVType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIVType_onebit CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIVType = "onebit"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIVType_threebit CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigRDIVType = "threebit"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType represents
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetSts3c CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetSts3c"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetStm1 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetStm1"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetSts12c CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetSts12c"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetStm4 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetStm4"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetSts48c CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetSts48c"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetStm16 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetStm16"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetSts192c CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetSts192c"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetStm64 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetStm64"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType_sonetSts3 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigType = "sonetSts3"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigXmtClockSource represents interface.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigXmtClockSource string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigXmtClockSource_loopTiming CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigXmtClockSource = "loopTiming"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigXmtClockSource_localTiming CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsConfigXmtClockSource = "localTiming"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode represents The value notApplicable(1) can not be set.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode_notApplicable CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode = "notApplicable"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode_signallingTransferMode CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode = "signallingTransferMode"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode_clearMode CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsSignallingTransportMode = "clearMode"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType represents The value notApplicable(1) can not be set.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType_notApplicable CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType = "notApplicable"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType_dsx1D4 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType = "dsx1D4"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType_dsx1ESF CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryFramingType = "dsx1ESF"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType represents Default is au3Grouping(2) for SDH and notApplicable(1) for SONET.
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType_notApplicable CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType = "notApplicable"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType_au3Grouping CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType = "au3Grouping"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType_au4Grouping CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryGroupingType = "au4Grouping"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryMappingType represents Default is asynchronous(1).
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryMappingType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryMappingType_asynchronous CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryMappingType = "asynchronous"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryMappingType_byteSynchronous CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryMappingType = "byteSynchronous"
)
// CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryType represents vt2vc12 : carries E1 signal
type CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryType string
const (
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryType_vt15vc11 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryType = "vt15vc11"
CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryType_vt2vc12 CISCOSONETMIB_CsConfigTable_CsConfigEntry_CsTributaryType = "vt2vc12"
)
// CISCOSONETMIB_CsApsConfigTable
// This table contains objects to configure APS
// (Automatic Protection Switching) feature in a SONET
// Line. APS is the ability to configure a pair of SONET
// lines for redundancy so that the hardware will
// automatically switch the active line from working line
// to the protection line or vice versa, within 60ms,
// when the active line fails.
type CISCOSONETMIB_CsApsConfigTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry is created when an APS pair is configured. To create an entry, the
// following objects must be specified: csApsWorkingIndex,
// csApsProtectionIndex, csApsEnable, csApsArchMode. The protection line
// must not be active, i.e, ifAdminStatus must be 'down', while configuring
// APS. An entry is created by setting the value of 'csApsEnable' to
// csApsEnabled (2) and deleted by setting it to csApsDisabled (1). Once a
// line is configured as working line or protection line, it remains in that
// role until APS is disabled on that sonet line pair. It remains in the
// working/protection role even after the card is reset. The type is slice of
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry.
CsApsConfigEntry []*CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry
}
func (csApsConfigTable *CISCOSONETMIB_CsApsConfigTable) GetEntityData() *types.CommonEntityData {
csApsConfigTable.EntityData.YFilter = csApsConfigTable.YFilter
csApsConfigTable.EntityData.YangName = "csApsConfigTable"
csApsConfigTable.EntityData.BundleName = "cisco_ios_xe"
csApsConfigTable.EntityData.ParentYangName = "CISCO-SONET-MIB"
csApsConfigTable.EntityData.SegmentPath = "csApsConfigTable"
csApsConfigTable.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/" + csApsConfigTable.EntityData.SegmentPath
csApsConfigTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
csApsConfigTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
csApsConfigTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
csApsConfigTable.EntityData.Children = types.NewOrderedMap()
csApsConfigTable.EntityData.Children.Append("csApsConfigEntry", types.YChild{"CsApsConfigEntry", nil})
for i := range csApsConfigTable.CsApsConfigEntry {
csApsConfigTable.EntityData.Children.Append(types.GetSegmentPath(csApsConfigTable.CsApsConfigEntry[i]), types.YChild{"CsApsConfigEntry", csApsConfigTable.CsApsConfigEntry[i]})
}
csApsConfigTable.EntityData.Leafs = types.NewOrderedMap()
csApsConfigTable.EntityData.YListKeys = []string {}
return &(csApsConfigTable.EntityData)
}
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry
// An entry is created when an APS pair is configured.
// To create an entry, the following objects must be
// specified:
// csApsWorkingIndex, csApsProtectionIndex, csApsEnable,
// csApsArchMode. The protection line must not be active,
// i.e, ifAdminStatus must be 'down', while configuring
// APS. An entry is created by setting the value of
// 'csApsEnable' to csApsEnabled (2) and deleted by
// setting it to csApsDisabled (1). Once a line is
// configured as working line or protection line, it
// remains in that role until APS is disabled on that
// sonet line pair. It remains in the working/protection
// role even after the card is reset.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. When a pair of APS lines is configured, one line
// has to be the working line, which is the primary line, and the other has to
// be the protection line, which is the backup line. This object refers to the
// working line in the APS pair. For G.783 AnnexB, this index refers to
// Working Section 1. The type is interface{} with range: 1..2147483647.
CsApsWorkingIndex interface{}
// The protection line indicates that it will become the active line when an
// APS switch occurs (APS switch could occur because of a failure on the
// working line). For G.783 AnnexB, This index refers to Working Section 2.
// The type is interface{} with range: 1..2147483647.
CsApsProtectionIndex interface{}
// This object is used to enable or disable the APS feature on the
// working/protection line pairs. When enabled, the hardware will
// automatically switch the active line from the working line to the
// protection line within 60ms, or vice versa. The type is CsApsEnable.
CsApsEnable interface{}
// This object is used to configure APS architecture mode on the
// working/protection line pairs. All of the following are supported on
// single slot. oneToOne(2) is not supported across 2 slots,i.e. the
// working and protection slot numbers must be the same in oneToOne(2).
// onePlusOne : This can be supported on the same card and across 2 cards.
// This mode means that the transmit and receive signals go only over the
// active line(which could be working or protection line). (straight cable
// implied) oneToOne : This is supported only on the same card This mode
// means that the transmit and receive signals go over the working and
// protection lines. (straight cable implied) anexBOnePlusOne : This can be
// supported on the same card and across 2 cards. This mode is like the
// onePlusOne mode, except that the 'csApsDirection' can only be
// bi-directional. (straight cable implied) ycableOnePlusOneNok1k2: With
// Y-cable ignore K1K2 bytes. This mode is the Y-cable redundancy mode.
// straightOnePlusOneNok1k2 : With straight cable, ignore
// K1K2 bytes. This mode is like onePlusOne, but
// with K1, K2 bytes ignored. The type is
// CsApsArchMode.
CsApsArchMode interface{}
// This object indicates which line is currently active. It could be the
// working line(Section 1 for Annex B), the protection line(Section 2 for
// Annex B) or none if neither working nor protection line is active. This
// object reflects the status of receive direction. The type is
// CsApsActiveLine.
CsApsActiveLine interface{}
// This object contains the Bit Error Rate threshold for Signal Fault
// detection on the working line. Once this threshold is exceeded, an APS
// switch will occur. This value is 10 to the -n, where n is between 3 and 5.
// The type is interface{} with range: 3..5.
CsApsSigFaultBER interface{}
// This object contains the Bit Error Rate threshold for Signal Degrade
// detection on the working line. Once this threshold is exceeded, an APS
// switch will occur. This value is 10 to -n where n is between 5 and 9. The
// type is interface{} with range: 5..9.
CsApsSigDegradeBER interface{}
// This object contains interval in minutes to wait before attempting to
// switch back to working line. Not applicable if the line is configured in
// non-revertive mode, i.e. protection line will continue to be active, even
// if failures on the working line are cleared. The framer clears the
// signal-fault and signal-degrade when APS switch occurs. Please refer to
// 'csApsRevertive' for description of non-revertive. The type is interface{}
// with range: 1..12. Units are minutes.
CsApsWaitToRestore interface{}
// This object is used to configure the switching direction which this APS
// line supports. Unidirectional : APS switch only in one direction.
// Bidirectional : APS switch in both ends of the line. The type is
// CsApsDirection.
CsApsDirection interface{}
// This object is used to configure the APS revertive or nonrevertive option.
// revertive : Will switch the working line back to active state after
// the Wait-To-restore interval has expired and the working line
// Signal-Fault/Signal-Degrade has been cleared. Please refer to
// 'csApsWaitToRestore' for description of Wait-To-Restore interval.
// nonrevertive : The protection line continues to be the active line,
// The active line does not switch to the working line. The type is
// CsApsRevertive.
CsApsRevertive interface{}
// This object shows the actual APS direction that is implemented on the Near
// End terminal. APS direction configured through csApsDirection is
// negotiated with the Far End and APS direction setting acceptable to both
// ends is operational at the Near End. The type is CsApsDirectionOperational.
CsApsDirectionOperational interface{}
// This object shows the actual APS architecture mode that is implemented on
// the Near End terminal. APS architecture mode configured through
// csApsArchMode object is negotiated with the Far End through APS channel.
// Architecture mode acceptable to both the Near End and the Far End
// terminals is then operational at the Near End. This value can be different
// than the APS Architecture mode configured. The type is
// CsApsArchModeOperational.
CsApsArchModeOperational interface{}
// This object allows to configure APS channel protocol to be implemented at
// Near End terminal. K1 and K2 overhead bytes in a SONET signal are used as
// an APS channel. This channel is used to carry APS protocol. Possible
// values: bellcore(1) : Implements APS channel protocol as defined
// in bellcore document GR-253-CORE. itu(2) : Implements APS channel protocol
// as defined in ITU document G.783. The type is
// CsApsChannelProtocol.
CsApsChannelProtocol interface{}
// This object indicates APS line failure status. The type is map[string]bool.
CsApsFailureStatus interface{}
// This object indicates APS line switch reason. The type is
// CsApsLineSwitchReason.
CsApsSwitchReason interface{}
// This object indicates which working section is the APS primary section. In
// G.783 AnnexB, the K1/K2 Bytes are received on the secondary Section. All
// the Switch Requests are for a switch from the primary section to the
// secondary section. The object csApsActiveline will indicate which section
// is currently carrying the traffic. Once the switch request clears
// normally, traffic is maintained on the section to which it was switched by
// making that section the primary section. Possible values:
// workingSection1(1): Working Section 1 is Primary Section
// workingSection2(2): Working Section 2 is Primary Section none(3)
// : none. The type is CsApsPrimarySection.
CsApsPrimarySection interface{}
}
func (csApsConfigEntry *CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry) GetEntityData() *types.CommonEntityData {
csApsConfigEntry.EntityData.YFilter = csApsConfigEntry.YFilter
csApsConfigEntry.EntityData.YangName = "csApsConfigEntry"
csApsConfigEntry.EntityData.BundleName = "cisco_ios_xe"
csApsConfigEntry.EntityData.ParentYangName = "csApsConfigTable"
csApsConfigEntry.EntityData.SegmentPath = "csApsConfigEntry" + types.AddKeyToken(csApsConfigEntry.CsApsWorkingIndex, "csApsWorkingIndex")
csApsConfigEntry.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/csApsConfigTable/" + csApsConfigEntry.EntityData.SegmentPath
csApsConfigEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
csApsConfigEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
csApsConfigEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
csApsConfigEntry.EntityData.Children = types.NewOrderedMap()
csApsConfigEntry.EntityData.Leafs = types.NewOrderedMap()
csApsConfigEntry.EntityData.Leafs.Append("csApsWorkingIndex", types.YLeaf{"CsApsWorkingIndex", csApsConfigEntry.CsApsWorkingIndex})
csApsConfigEntry.EntityData.Leafs.Append("csApsProtectionIndex", types.YLeaf{"CsApsProtectionIndex", csApsConfigEntry.CsApsProtectionIndex})
csApsConfigEntry.EntityData.Leafs.Append("csApsEnable", types.YLeaf{"CsApsEnable", csApsConfigEntry.CsApsEnable})
csApsConfigEntry.EntityData.Leafs.Append("csApsArchMode", types.YLeaf{"CsApsArchMode", csApsConfigEntry.CsApsArchMode})
csApsConfigEntry.EntityData.Leafs.Append("csApsActiveLine", types.YLeaf{"CsApsActiveLine", csApsConfigEntry.CsApsActiveLine})
csApsConfigEntry.EntityData.Leafs.Append("csApsSigFaultBER", types.YLeaf{"CsApsSigFaultBER", csApsConfigEntry.CsApsSigFaultBER})
csApsConfigEntry.EntityData.Leafs.Append("csApsSigDegradeBER", types.YLeaf{"CsApsSigDegradeBER", csApsConfigEntry.CsApsSigDegradeBER})
csApsConfigEntry.EntityData.Leafs.Append("csApsWaitToRestore", types.YLeaf{"CsApsWaitToRestore", csApsConfigEntry.CsApsWaitToRestore})
csApsConfigEntry.EntityData.Leafs.Append("csApsDirection", types.YLeaf{"CsApsDirection", csApsConfigEntry.CsApsDirection})
csApsConfigEntry.EntityData.Leafs.Append("csApsRevertive", types.YLeaf{"CsApsRevertive", csApsConfigEntry.CsApsRevertive})
csApsConfigEntry.EntityData.Leafs.Append("csApsDirectionOperational", types.YLeaf{"CsApsDirectionOperational", csApsConfigEntry.CsApsDirectionOperational})
csApsConfigEntry.EntityData.Leafs.Append("csApsArchModeOperational", types.YLeaf{"CsApsArchModeOperational", csApsConfigEntry.CsApsArchModeOperational})
csApsConfigEntry.EntityData.Leafs.Append("csApsChannelProtocol", types.YLeaf{"CsApsChannelProtocol", csApsConfigEntry.CsApsChannelProtocol})
csApsConfigEntry.EntityData.Leafs.Append("csApsFailureStatus", types.YLeaf{"CsApsFailureStatus", csApsConfigEntry.CsApsFailureStatus})
csApsConfigEntry.EntityData.Leafs.Append("csApsSwitchReason", types.YLeaf{"CsApsSwitchReason", csApsConfigEntry.CsApsSwitchReason})
csApsConfigEntry.EntityData.Leafs.Append("csApsPrimarySection", types.YLeaf{"CsApsPrimarySection", csApsConfigEntry.CsApsPrimarySection})
csApsConfigEntry.EntityData.YListKeys = []string {"CsApsWorkingIndex"}
return &(csApsConfigEntry.EntityData)
}
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine represents This object reflects the status of receive direction.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine_csApsWorkingLine CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine = "csApsWorkingLine"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine_csApsProtectionLine CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine = "csApsProtectionLine"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine_csApsNone CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsActiveLine = "csApsNone"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode represents bytes ignored.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode_onePlusOne CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode = "onePlusOne"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode_oneToOne CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode = "oneToOne"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode_anexBOnePlusOne CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode = "anexBOnePlusOne"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode_ycableOnePlusOneNok1k2 CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode = "ycableOnePlusOneNok1k2"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode_straightOnePlusOneNok1k2 CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchMode = "straightOnePlusOneNok1k2"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational represents Architecture mode configured.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational_onePlusOne CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational = "onePlusOne"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational_oneToOne CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational = "oneToOne"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational_anexBOnePlusOne CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational = "anexBOnePlusOne"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational_ycableOnePlusOneNok1k2 CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational = "ycableOnePlusOneNok1k2"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational_straightOnePlusOneNok1k2 CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsArchModeOperational = "straightOnePlusOneNok1k2"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsChannelProtocol represents ITU document G.783.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsChannelProtocol string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsChannelProtocol_bellcore CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsChannelProtocol = "bellcore"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsChannelProtocol_itu CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsChannelProtocol = "itu"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirection represents Bidirectional : APS switch in both ends of the line.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirection string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirection_uniDirectional CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirection = "uniDirectional"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirection_biDirectional CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirection = "biDirectional"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirectionOperational represents both ends is operational at the Near End.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirectionOperational string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirectionOperational_uniDirectional CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirectionOperational = "uniDirectional"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirectionOperational_biDirectional CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsDirectionOperational = "biDirectional"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsEnable represents or vice versa.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsEnable string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsEnable_csApsDisabled CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsEnable = "csApsDisabled"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsEnable_csApsEnabled CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsEnable = "csApsEnabled"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection represents none(3) : none.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection_workingSection1 CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection = "workingSection1"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection_workingSection2 CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection = "workingSection2"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection_none CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsPrimarySection = "none"
)
// CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsRevertive represents The active line does not switch to the working line.
type CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsRevertive string
const (
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsRevertive_nonrevertive CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsRevertive = "nonrevertive"
CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsRevertive_revertive CISCOSONETMIB_CsApsConfigTable_CsApsConfigEntry_CsApsRevertive = "revertive"
)
// CISCOSONETMIB_CssTotalTable
// The SONET/SDH Section Total table. It contains the
// cumulative sum of the various statistics for the 24 hour
// period preceding the current interval. The object
// 'sonetMediumValidIntervals' from RFC2558 contains the
// number of 15 minute intervals that have elapsed since
// the line is enabled.
type CISCOSONETMIB_CssTotalTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry in the SONET/SDH Section Total table. Entries are created
// automatically for sonet lines. The type is slice of
// CISCOSONETMIB_CssTotalTable_CssTotalEntry.
CssTotalEntry []*CISCOSONETMIB_CssTotalTable_CssTotalEntry
}
func (cssTotalTable *CISCOSONETMIB_CssTotalTable) GetEntityData() *types.CommonEntityData {
cssTotalTable.EntityData.YFilter = cssTotalTable.YFilter
cssTotalTable.EntityData.YangName = "cssTotalTable"
cssTotalTable.EntityData.BundleName = "cisco_ios_xe"
cssTotalTable.EntityData.ParentYangName = "CISCO-SONET-MIB"
cssTotalTable.EntityData.SegmentPath = "cssTotalTable"
cssTotalTable.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/" + cssTotalTable.EntityData.SegmentPath
cssTotalTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cssTotalTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cssTotalTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cssTotalTable.EntityData.Children = types.NewOrderedMap()
cssTotalTable.EntityData.Children.Append("cssTotalEntry", types.YChild{"CssTotalEntry", nil})
for i := range cssTotalTable.CssTotalEntry {
cssTotalTable.EntityData.Children.Append(types.GetSegmentPath(cssTotalTable.CssTotalEntry[i]), types.YChild{"CssTotalEntry", cssTotalTable.CssTotalEntry[i]})
}
cssTotalTable.EntityData.Leafs = types.NewOrderedMap()
cssTotalTable.EntityData.YListKeys = []string {}
return &(cssTotalTable.EntityData)
}
// CISCOSONETMIB_CssTotalTable_CssTotalEntry
// An entry in the SONET/SDH Section Total table. Entries
// are created automatically for sonet lines.
type CISCOSONETMIB_CssTotalTable_CssTotalEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string with range: 1..2147483647.
// Refers to if_mib.IFMIB_IfTable_IfEntry_IfIndex
IfIndex interface{}
// The number of Errored Seconds encountered by a SONET/SDH Section in the
// last 24 hours. The type is interface{} with range: 0..4294967295. Units are
// errored seconds.
CssTotalESs interface{}
// The number of Severely Errored Seconds encountered by a SONET/SDH Section
// in the last 24 hours. The type is interface{} with range: 0..4294967295.
// Units are severely errored seconds.
CssTotalSESs interface{}
// The number of Severely Errored Framing Seconds encountered by a SONET/SDH
// Section in the last 24 hours. The type is interface{} with range:
// 0..4294967295. Units are severely errored framing seconds.
CssTotalSEFSs interface{}
// The number of Coding Violations encountered by a SONET/SDH Section in the
// last 24 hours. The type is interface{} with range: 0..4294967295. Units are
// coding violations.
CssTotalCVs interface{}
}
func (cssTotalEntry *CISCOSONETMIB_CssTotalTable_CssTotalEntry) GetEntityData() *types.CommonEntityData {
cssTotalEntry.EntityData.YFilter = cssTotalEntry.YFilter
cssTotalEntry.EntityData.YangName = "cssTotalEntry"
cssTotalEntry.EntityData.BundleName = "cisco_ios_xe"
cssTotalEntry.EntityData.ParentYangName = "cssTotalTable"
cssTotalEntry.EntityData.SegmentPath = "cssTotalEntry" + types.AddKeyToken(cssTotalEntry.IfIndex, "ifIndex")
cssTotalEntry.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/cssTotalTable/" + cssTotalEntry.EntityData.SegmentPath
cssTotalEntry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cssTotalEntry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cssTotalEntry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cssTotalEntry.EntityData.Children = types.NewOrderedMap()
cssTotalEntry.EntityData.Leafs = types.NewOrderedMap()
cssTotalEntry.EntityData.Leafs.Append("ifIndex", types.YLeaf{"IfIndex", cssTotalEntry.IfIndex})
cssTotalEntry.EntityData.Leafs.Append("cssTotalESs", types.YLeaf{"CssTotalESs", cssTotalEntry.CssTotalESs})
cssTotalEntry.EntityData.Leafs.Append("cssTotalSESs", types.YLeaf{"CssTotalSESs", cssTotalEntry.CssTotalSESs})
cssTotalEntry.EntityData.Leafs.Append("cssTotalSEFSs", types.YLeaf{"CssTotalSEFSs", cssTotalEntry.CssTotalSEFSs})
cssTotalEntry.EntityData.Leafs.Append("cssTotalCVs", types.YLeaf{"CssTotalCVs", cssTotalEntry.CssTotalCVs})
cssTotalEntry.EntityData.YListKeys = []string {"IfIndex"}
return &(cssTotalEntry.EntityData)
}
// CISCOSONETMIB_CssTraceTable
// The SONET/SDH Section Trace table. This table contains
// objects for tracing the sonet section.
type CISCOSONETMIB_CssTraceTable struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// An entry in the trace table. Entries exist for active sonet lines. The
// objects in this table are used to verify continued connection between the
// two ends of the line. The type is slice of
// CISCOSONETMIB_CssTraceTable_CssTraceEntry.
CssTraceEntry []*CISCOSONETMIB_CssTraceTable_CssTraceEntry
}
func (cssTraceTable *CISCOSONETMIB_CssTraceTable) GetEntityData() *types.CommonEntityData {
cssTraceTable.EntityData.YFilter = cssTraceTable.YFilter
cssTraceTable.EntityData.YangName = "cssTraceTable"
cssTraceTable.EntityData.BundleName = "cisco_ios_xe"
cssTraceTable.EntityData.ParentYangName = "CISCO-SONET-MIB"
cssTraceTable.EntityData.SegmentPath = "cssTraceTable"
cssTraceTable.EntityData.AbsolutePath = "CISCO-SONET-MIB:CISCO-SONET-MIB/" + cssTraceTable.EntityData.SegmentPath
cssTraceTable.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
cssTraceTable.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
cssTraceTable.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
cssTraceTable.EntityData.Children = types.NewOrderedMap()
cssTraceTable.EntityData.Children.Append("cssTraceEntry", types.YChild{"CssTraceEntry", nil})
for i := range cssTraceTable.CssTraceEntry {
cssTraceTable.EntityData.Children.Append(types.GetSegmentPath(cssTraceTable.CssTraceEntry[i]), types.YChild{"CssTraceEntry", cssTraceTable.CssTraceEntry[i]})
}
cssTraceTable.EntityData.Leafs = types.NewOrderedMap()
cssTraceTable.EntityData.YListKeys = []string {}
return &(cssTraceTable.EntityData)
}
// CISCOSONETMIB_CssTraceTable_CssTraceEntry
// An entry in the trace table. Entries exist for active sonet
// lines. The objects in this table are used to verify
// continued connection between the two ends of the line.
type CISCOSONETMIB_CssTraceTable_CssTraceEntry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string