blob: 922553e099acd1cf11dd9d548182c0363332dda4 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const PseudowireMaintenanceProfileClassId ClassID = ClassID(284)
25
26var pseudowiremaintenanceprofileBME *ManagedEntityDefinition
27
28// PseudowireMaintenanceProfile (class ID #284)
29// The pseudowire maintenance profile permits the configuration of pseudowire service exception
30// handling. It is created and deleted by the OLT.
31//
32// The settings, and indeed existence, of a pseudowire maintenance profile affect the behaviour of
33// the pseudowire PM history data ME only in establishing criteria for counting SESs, but in no
34// other way. The pseudowire maintenance profile primarily affects the alarms declared by the
35// subscribing pseudowire TP.
36//
37// Relationships
38// One or more instances of the pseudowire TP may point to an instance of the pseudowire
39// maintenance profile. If the pseudowire TP does not refer to a pseudowire maintenance profile,
40// the ONU's default exception handling is implied.
41//
42// Attributes
43// Managed Entity Id
44// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is
45// reserved. (R, setbycreate) (mandatory) (2 bytes)
46//
47// Jitter Buffer Maximum Depth
48// Jitter buffer maximum depth: This attribute specifies the desired maximum depth of the playout
49// buffer in the PSN to the TDM direction. The value is expressed as a multiple of the 125 μs frame
50// rate. The default value 0 selects the ONU's internal policy. (R, W, setbycreate) (optional)
51// (2 bytes)
52//
53// Jitter Buffer Desired Depth
54// Jitter buffer desired depth: This attribute specifies the desired nominal fill depth of the
55// playout buffer in the PSN to the TDM direction. The value is expressed as a multiple of the
56// 125 μs frame rate. The default value 0 selects the ONU's internal policy. (R, W, setbycreate)
57// (optional) (2 bytes)
58//
59// Fill Policy
60// (R, W, setbycreate) (optional) (1 byte)
61//
62// Misconnected Packets Declaration Policy
63// Misconnected packets declaration policy: (R, W, setbycreate) (optional) (1 byte)
64//
65// Misconnected Packets Clear Policy
66// Misconnected packets clear policy: (R, W, setbycreate) (optional) (1 byte)
67//
68// Loss Of Packets Declaration Policy
69// Loss of packets declaration policy: (R, W, setbycreate) (optional) (1 byte)
70//
71// Loss Of Packets Clear Policy
72// Loss of packets clear policy: (R, W, setbycreate) (optional) (1 byte)
73//
74// Buffer Overrun_Underrun Declaration Policy
75// Buffer overrun/underrun declaration policy: (R, W, setbycreate) (optional) (1 byte)
76//
77// Buffer Overrun_Underrun Clear Policy
78// Buffer overrun/underrun clear policy: (R, W, setbycreate) (optional) (1 byte)
79//
80// Malformed Packets Declaration Policy
81// Malformed packets declaration policy: (R, W, setbycreate) (optional) (1 byte)
82//
83// Malformed Packets Clear Policy
84// Malformed packets clear policy: (R, W, setbycreate) (optional) (1 byte)
85//
86// R_Bit Transmit Set Policy
87// R-bit transmit set policy: This attribute defines the number of consecutive lost packets that
88// causes the transmitted R bit to be set in the TDM to the PSN direction, indicating lost packets
89// to the far end. The default value 0 selects the ONU's internal policy. (R, W, setbycreate)
90// (optional) (1 byte)
91//
92// R_Bit Transmit Clear Policy
93// R-bit transmit clear policy: This attribute defines the number of consecutive valid packets that
94// causes the transmitted R bit to be cleared in the TDM to the PSN direction, removing the remote
95// failure indication to the far end. The default value 0 selects the ONU's internal policy. (R, W,
96// setbycreate) (optional) (1 byte)
97//
98// R_Bit Receive Policy
99// (R, W, setbycreate) (optional) (1 byte)
100//
101// L Bit Receive Policy
102// (R, W, setbycreate) (optional) (1 byte)
103//
104// Ses Threshold
105// SES threshold: Number of lost, malformed or otherwise unusable packets expected in the PSN to
106// the TDM direction within a 1 s interval that causes an SES to be counted. Stray packets do not
107// count towards an SES, nor do packets whose L bit is set at the far end. The value 0 specifies
108// that the ONU uses its internal default, which is not necessarily the same as the recommended
109// default value 3. (R, W, set-by-create) (optional) (2 bytes)
110//
111type PseudowireMaintenanceProfile struct {
112 ManagedEntityDefinition
113 Attributes AttributeValueMap
114}
115
116func init() {
117 pseudowiremaintenanceprofileBME = &ManagedEntityDefinition{
118 Name: "PseudowireMaintenanceProfile",
119 ClassID: 284,
120 MessageTypes: mapset.NewSetWith(
121 Create,
122 Delete,
123 Get,
124 Set,
125 ),
126 AllowedAttributeMask: 0XFFFF,
127 AttributeDefinitions: AttributeDefinitionMap{
128 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
129 1: Uint16Field("JitterBufferMaximumDepth", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 1),
130 2: Uint16Field("JitterBufferDesiredDepth", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 2),
131 3: ByteField("FillPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 3),
132 4: ByteField("MisconnectedPacketsDeclarationPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 4),
133 5: ByteField("MisconnectedPacketsClearPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 5),
134 6: ByteField("LossOfPacketsDeclarationPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 6),
135 7: ByteField("LossOfPacketsClearPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 7),
136 8: ByteField("BufferOverrunUnderrunDeclarationPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 8),
137 9: ByteField("BufferOverrunUnderrunClearPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 9),
138 10: ByteField("MalformedPacketsDeclarationPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 10),
139 11: ByteField("MalformedPacketsClearPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 11),
140 12: ByteField("RBitTransmitSetPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 12),
141 13: ByteField("RBitTransmitClearPolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 13),
142 14: ByteField("RBitReceivePolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 14),
143 15: ByteField("LBitReceivePolicy", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 15),
144 16: Uint16Field("SesThreshold", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, false, 16),
145 },
146 }
147}
148
149// NewPseudowireMaintenanceProfile (class ID 284 creates the basic
150// Managed Entity definition that is used to validate an ME of this type that
151// is received from the wire, about to be sent on the wire.
152func NewPseudowireMaintenanceProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
153 return NewManagedEntity(pseudowiremaintenanceprofileBME, params...)
154}